CN104933018B - A kind of document handling method and device - Google Patents

A kind of document handling method and device Download PDF

Info

Publication number
CN104933018B
CN104933018B CN201410103233.4A CN201410103233A CN104933018B CN 104933018 B CN104933018 B CN 104933018B CN 201410103233 A CN201410103233 A CN 201410103233A CN 104933018 B CN104933018 B CN 104933018B
Authority
CN
China
Prior art keywords
3dmax
files
file
catalogue
browser
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410103233.4A
Other languages
Chinese (zh)
Other versions
CN104933018A (en
Inventor
洪晓健
夏学智
张明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Changyou Tianxia Network Technologies Co Ltd
Original Assignee
Beijing Changyou Tianxia Network Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Changyou Tianxia Network Technologies Co Ltd filed Critical Beijing Changyou Tianxia Network Technologies Co Ltd
Priority to CN201410103233.4A priority Critical patent/CN104933018B/en
Publication of CN104933018A publication Critical patent/CN104933018A/en
Application granted granted Critical
Publication of CN104933018B publication Critical patent/CN104933018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a kind of document handling method and device, wherein, document handling method includes:Receive the 3DMAX files uploaded;3DMAX files are stored in the first catalogue;When it is determined that during 3DMAX application program successful operations, calling and state the MAXScript shell scripts that 3DMAX application programs match;First catalogue is monitored according to setting time interval by MAXScript shell scripts;When monitoring that storage has 3DMAX files in the first catalogue, file translation interface in 3DMAX application programs is called by MAXScript shell scripts, so that the 3DMAX files deposited in the first catalogue to be converted into being available for the file of the form of browser resolves by file translation interface.By means of the invention it is possible to avoid blindly downloading a large amount of useless 3DMAX files, file activity is effectively improved.

Description

A kind of document handling method and device
Technical field
The present invention relates to network file processing technology field, more particularly to a kind of document handling method of 3DMAX files And device.
Background technology
Art designing worker will often be organized work based on multiple 3DMAX files at work, for example, to a certain 3DMAX files are modified so as to obtain new 3D pictures.And art designing worker is only after required 3DMAX files are selected Follow-up operation can be carried out to file according to demand.Art designing worker is merely able to lead in the 3DMAX files needed for selection 3D pictures corresponding to 3DMAX files are crossed to judge whether this document meets needs.Wherein, 3DMAX files is only can be by 3DMAX The file of software support, including but not limited to extend the file of entitled .max .fbx .3ds .model form.
A kind of method of existing selection 3DMAX files for:All 3DMAX texts that art designing worker stores server end Part is copied or downloaded to and is provided with the computer for the software that can open .max files, such as:3DMAX softwares;Then pass through again 3DMAX softwares open each 3DMAX files to select required 3DMAX files one by one.
The method of existing this selection 3DMAX files must download or copy in advance 3DMAX files, then by corresponding Software can judge whether 3DMAX files are required files after opening, and thus cause blindly to download a large amount of useless 3DMAX files, time-consuming and efficiency is low for file process.
The content of the invention
The invention provides a kind of document handling method and device, to solve the side using existing selection 3DMAX files Download a large amount of useless 3DMAX files, file process the problem of time-consuming and efficiency is low person ignorant of the law's mesh.
In order to solve the above problems, the invention discloses a kind of document handling method, including:Receive the 3DMAX texts uploaded Part;The 3DMAX files are stored in the first catalogue;When it is determined that during 3DMAX application program successful operations, call with it is described The MAXScript shell scripts that 3DMAX application programs match;By the MAXScript shell scripts according to setting time Interval monitors first catalogue;When monitoring that storage has the 3DMAX files in first catalogue, by described MAXScript shell scripts call the file translation interface in the 3DMAX application programs, to pass through the file translation interface The 3DMAX files deposited in first catalogue are converted into being available for the file of the form of browser resolves.
Preferably, in the 3DMAX files that will be deposited by the file translation interface in first catalogue After the Files step for being converted into being available for the form of browser resolves, in addition to:Generation and the lattice for being available for browser resolves The file of formula corresponding link, so that client browser user preview links the corresponding browser resolves that are available for described The file of form.
Preferably, the generation with the file of the form for being available for browser resolves is corresponding links, for visitor The browser client preview of family end with after the Files step for linking the corresponding form for being available for browser resolves, in addition to: Client browser is received when the client browser user clicks on the link, browser is available for described in the selection of transmission The instruction of the file of the form of parsing;The file for the form that browser resolves are available for described in selection is sent to the client Browser, parsed by the client browser, generate corresponding 3D preview screens.
Preferably, also include in the described 3DMAX files are stored in the first catalogue before or after step:By institute 3DMAX files are stated to be stored in the second catalogue;Wherein, browser resolves are available for after the conversion deposited in first catalogue The file of form corresponds with the 3DMAX files deposited in second catalogue;It will be available for described described in selection The file of the form of browser resolves is sent to the client browser, is parsed by the client browser, raw Into after corresponding 3D preview screens step, in addition to:The selection 3D previews that the client browser is sent are received to draw The instruction of 3DMAX files corresponding to face;Determine in first catalogue it is corresponding with the 3D preview screens of selection be available for it is clear The file of the form of device of looking at parsing;According to the text of the form for being available for browser resolves after the conversion deposited in first catalogue Part and the corresponding relation for the 3DMAX files deposited in second catalogue, it is determined that the 3DMAX files in corresponding second catalogue, 3DMAX files in second catalogue corresponding to the determination are sent to the client browser.
Preferably, it is described to be turned the 3DMAX files deposited in first catalogue by the file translation interface Changing the Files step for the form for being available for browser resolves into includes:It will be deposited by the file translation interface in first catalogue The 3DMAX files put are converted into extending the file of entitled .obj or .dae forms.
In order to solve the above problems, the invention also discloses a kind of document handling apparatus, including:Receiving module, for connecing Receive the 3DMAX files uploaded;First memory module, for the 3DMAX files to be stored in the first catalogue;First calls mould Block, for when it is determined that during 3DMAX application program successful operations, calling what is matched with the 3DMAX application programs MAXScript shell scripts;Monitoring modular, for being monitored by the MAXScript shell scripts according to setting time interval First catalogue;When monitoring that storage there are the 3DMAX files in first catalogue, pass through the MAXScript pin File translation interface in 3DMAX application programs described in this routine call, with by the file translation interface by described first The 3DMAX files deposited in catalogue are converted into being available for the file of the form of browser resolves.
Preferably, the document handling apparatus also includes:Generation module is linked, it is described for passing through in the monitoring modular The 3DMAX files deposited in first catalogue are converted into being available for the text of the form of browser resolves by file translation interface After part, generate and the file of the form for being available for browser resolves is corresponding links, for client browser user Preview and the file for linking the corresponding form for being available for browser resolves.
Preferably, the document handling apparatus also includes:First receiving module, in the link generation module generation With the file of the form for being available for browser resolves is corresponding links, for client browser user preview and the chain It is available for corresponding to connecing after the file of form of browser resolves, receives client browser in the client browser user When clicking on the link, the instruction of the file of the form of browser resolves is available for described in the selection of transmission;First sending module, use Sent in by the file that the form of browser resolves is available for described in selection to the client browser, pass through the client Browser is parsed, and generates corresponding 3D preview screens.
Preferably, the document handling apparatus also includes:Second memory module, in first memory module by institute State before or after 3DMAX files are stored in the first catalogue, the 3DMAX files are stored in the second catalogue;Wherein, institute State the file of the form for being available for browser resolves after the conversion deposited in the first catalogue and the institute deposited in second catalogue State 3DMAX files one-to-one corresponding;Second receiving module, in first sending module browser will to be available for described in selection The file of the form of parsing is sent to the client browser, is parsed by the client browser, and generation is corresponding 3D preview screens after, receive 3DMAX files corresponding to the selection 3D preview screens that the client browser is sent Instruction;Second sending module, for determine in first catalogue it is corresponding with the 3D preview screens of selection be available for it is clear The file of the form of device of looking at parsing;According to the text of the form for being available for browser resolves after the conversion deposited in first catalogue Part and the corresponding relation for the 3DMAX files deposited in second catalogue, it is determined that the 3DMAX files in corresponding second catalogue, 3DMAX files in second catalogue corresponding to the determination are sent to the client browser.
Preferably, described in the monitoring modular will be deposited in first catalogue by the file translation interface When 3DMAX files are converted into being available for the file of the form of browser resolves:By the file translation interface by first mesh The 3DMAX files deposited in record are converted into extending the file of entitled .obj or .dae forms.
Compared with prior art, the present invention has advantages below:
File process scheme provided by the invention, by uploading 3DMAX files to server, and it will upload onto the server 3DMAX files be converted into being available for browser resolves form file, can be with when art designing worker selects 3DMAX files Before 3DMAX files are downloaded, preview is carried out to 3D pictures corresponding to 3DMAX files by browser, so as to only select what is needed 3DMAX files are downloaded., can be before 3DMAX files be downloaded by clear by file process scheme provided by the invention Device of looking at carries out preview to 3D pictures corresponding to 3DMAX files, avoids blind using the method needs of existing selection 3DMAX files The problem of downloading substantial amounts of useless 3DMAX files, is effectively improved file activity mesh.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of according to embodiments of the present invention one document handling method;
Fig. 2 is a kind of step flow chart of according to embodiments of the present invention two document handling method;
Fig. 3 is a kind of step flow chart of according to embodiments of the present invention three document handling method;
Fig. 4 is a kind of structured flowchart of according to embodiments of the present invention four document handling apparatus.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is further detailed explanation.
Embodiment one
Reference picture 1, show a kind of step flow chart of according to embodiments of the present invention one document handling method.
The step of document handling method of the present embodiment, includes:
Step S102:The PHP programs of server receive the 3DMAX files uploaded.
Wherein, 3DMAX files are the file that can be only supported by 3DMAX application programs, including but not limited to extension name For the file of .max .fbx .3ds .model form.
PHP(Hypertext Preprocessor, PHP)It is a kind of programming language, PHP programs are The program write using PHP language, PHP programs can be called by open source software.Existing server typically by Open source software such as apache or nginx realize network service, and when there is user to upload file, the file of upload passes through browser It is submitted in server, text of the PHP programs in such as apache of the open source software in server meeting invoking servers to upload Part is handled.
Step S104:The 3DMAX files of reception are stored in the first catalogue by the PHP programs of server.
Step S106:The PHP programs of server are when it is determined that during 3DMAX application program successful operations, calling should with 3DMAX The MAXScript shell scripts to be matched with program.
, wherein it is desired to illustrate, the 3DMAX application programs in server can be after PHP programs be called just by PHP Program starts or opened again by PHP programs after the 3DMAX files received are stored in the first catalogue by PHP programs It is dynamic.And the setting of the running status after the startup for 3DMAX application programs, 3DMAX application programs can be arranged to one The server where as long as denier PHP programs are started 3DMAX application programs is in running status, then 3DMAX application programs Can is run always;3DMAX application programs can also be arranged to just stop fortune after having handled a 3DMAX file uploaded OK, when there are next 3DMAX files to upload onto the server, then restarted by PHP programs.To 3DMAX in the present embodiment When application program starts and the running status of 3DMAX application programs is not any limitation as, as long as disclosure satisfy that to file process Demand.
MAXScript is a kind of 3DMAX script, and 3DMAX can be called by writing MAXScript shell scripts The functional interface of application program.
Step S108:The PHP programs of server monitor first by MAXScript shell scripts according to setting time interval Catalogue.
Those skilled in the art can set prison according to the actual requirements when being write to MAXScript shell scripts The interval of survey, such as:MAXScript shell scripts can be set as once monitoring the first catalogue every 5 seconds, It can set and the first catalogue is once monitored every 10 minutes, other appropriate setting means are equally applicable, herein It will not enumerate.
Step S110:When the PHP programs of server monitor there there is storage in the first catalogue by MAXScript shell scripts During 3DMAX files, call 3DMAX application programs in file translation interface, with by file translation interface by the first catalogue The 3DMAX files of storage are converted into being available for the file of the form of browser resolves.
MAXScript shell scripts can call 3DMAX to apply when storage has 3DMAX files in monitoring the first catalogue File translation interface in program, then 3DMAX files are changed by the corresponding file translation interface in 3DMAX application programs Into the file for the form for being available for browser resolves.
The document handling method provided by the present embodiment, by uploading 3DMAX files to server, and will be uploaded to clothes 3DMAX files in business device are converted into being available for the file of the form of browser resolves, when art designing worker is that user selects 3DMAX During file, preview can be carried out to 3D pictures corresponding to 3DMAX files by browser, before 3DMAX files are downloaded so as to only The 3DMAX files that selection needs are downloaded.The document handling method provided by the present embodiment, 3DMAX texts can downloaded By carrying out preview to 3D pictures corresponding to 3DMAX files to browser before part, avoid using existing selection 3DMAX files Method the problem of needing blindly to download substantial amounts of useless 3DMAX files, be effectively improved file activity.
Embodiment two
Reference picture 2, show a kind of step flow chart of according to embodiments of the present invention two document handling method.
The present embodiment to server end by client browser to client browser user by uploading 3DMAX texts Part, server are changed the 3DMAX files of upload, and client browser user by client browser to service File after the conversion of device end storage carries out the description that these processes are downloaded in selection, to the document handling method in the application Overall flow is described.The specific file process step of the 3DMAX files of the present embodiment is as follows:
Step S202:The PHP programs of server receive the 3DMAX files uploaded.
Wherein, the 3DMAX files of upload can be uploaded by client browser user by client browser, also may be used To be uploaded by server-side browser user by server-side browser, to the side of upload 3DMAX files in the present embodiment Formula is not restricted.
Step S204:The 3DMAX files of upload are stored in the first catalogue by the PHP programs of server.
PHP programs receive and the 3DMAX files of upload are stored in into the first catalogue after the 3DMAX files to upload onto the server In.In the present embodiment, the first catalogue is mainly used in the 3DMAX files of storage upload for conversion, and deposits the file after conversion.
Step S206:The 3DMAX files of upload are stored in the second catalogue by the PHP programs of server.
In the present embodiment, the second catalogue is mainly used in the original 3DMAX files that storage uploads.That is, 3DMAX files upload After be stored in two catalogues, the 3DMAX files in one of catalogue will be converted into the form for being available for browser resolves File, and the 3DMAX files in another catalogue then be original upload file, keep it is constant.
Deposited in the file of the form for being available for browser resolves after the conversion deposited in first catalogue and the second catalogue Original 3DMAX files correspond;Those skilled in the art can be set the respective file in two catalogues when setting Into the file that file famous prime minister is same but extension name is different, the filename file different from extension name can also be arranged to.
Using a kind of preferable scheme in the present embodiment, when the 3DMAX files in the first catalogue are changed, The filename of file is not changed;That is respective file in two catalogues is arranged to filename is identical but extension name is different File, it is so more convenient that corresponding lookup is carried out with the file in the second catalogue to the first catalogue.
It should be noted that the document handling method provided in the present embodiment is only a specific example, step S206 This one kind described in the present embodiment is not limited to step S204 priority execution sequence, step S206 can also be in step Perform before rapid S204, or performed simultaneously with step S204.
Step S208:The PHP programs of server are when it is determined that during 3DMAX application program successful operations, calling should with 3DMAX The MAXScript shell scripts to be matched with program.
MAXScript shell scripts in the present embodiment are individually entered with an entitled .ms of extension file in the server Row preserves, and MAXScript shell scripts can call the functional interface of 3DMAX application programs, be exactly to pass through in the present embodiment MAXScript shell scripts call the file translation interface of 3DMAX application programs.
Step S210:The PHP programs of server monitor first by MAXScript shell scripts according to setting time interval Catalogue.
Step S212:The PHP programs of server are worked as monitors there there is storage in the first catalogue by MAXScript shell scripts During 3DMAX files, the file translation interface in 3DMAX application programs is called by MAXScript shell scripts, to pass through file The 3DMAX files deposited in first catalogue are converted into extending the file of entitled .obj or .dae forms by translation interface.
When MAXScript shell scripts monitor that storage there are 3DMAX files in the first catalogue, 3DMAX application programs are called In file translation interface, pass through this document translation interface change 3DMAX files.
The file why 3DMAX files are converted into extending to entitled .obj or .dae forms in the present embodiment, be because There is WebGL functions for current browser, WebGL is one and 3D computers are presented using JavaScript Application Program Interfaces The technology of image, the browser with WebGL functions can parse the file for extending entitled .obj or .dae forms, by it with 3D The form of preview screen is shown.
It is corresponding to realize that WebGL can write JavaScript code by JavaScript Application Program Interfaces in itself Function.But current some packaged development libraries existing on the market can also be used in order to reduce the code of exploitation, such as:This Three.js used in embodiment.It is a kind of prior art due to writing WebGL displaying codes in a browser, therefore This no longer does excessive description to WebGL writing for code of displaying, and concrete implementation code may be referred to three.js officials Demo codes.
It should be understood that the application file process scheme claimed, it is not limited to by 3DMAX files It is converted into extending the file of entitled .obj or .dae forms.As browser function is stronger and stronger, what browser can parse File format related 3D also will be more and more, then what the file process scheme of the application also can parse foundation browser File format related 3D is correspondingly improved to the format transformation of 3DMAX files.The application claimed is a kind of 3DMAX files are converted into being available for the technical scheme of the file of the form of browser resolves, therefore 3DMAX files are converted into removing The file of form outside the file of entitled .obj or .dae forms, to be available for browser resolves is extended, should also belong to the present invention Scope claimed.
Step S214:The file of form of the PHP Program Generatings of server with being available for browser resolves is corresponding to be linked, The file of the form of browser resolves is available for so that client browser user preview is corresponding with linking.
Wherein, the file of the form of browser resolves is available for as the file of the entitled .obj or .dae forms of extension.This implementation It is that the file generated of each form for being available for browser resolves links accordingly in example, the link may be displayed on the net of browser In page, when user opens related web page, by click on these links can the corresponding 3DMAX files of preview, so as to more square Client browser user carry out 3DMAX file selections.
It should be understood that the file generated link accordingly for being the form for being each available for browser resolves is one Kind preferable scheme, can also be by the file of each form for being available for browser resolves otherwise in specific implementation procedure Client browser user is presented to, such as:It is shown in the form of file, can when user clicks on a certain file It is automatic to call relative clients end browser to carry out preview to file, this is not any limitation as in the application, no matter in which way Client browser user is showed, as long as disclosure satisfy that client browser user's request.
Step S216:The PHP programs of server receive client browser in client browser user clicks on links, The selection of transmission is available for the instruction of the file of the form of browser resolves.
It should be noted that the PHP programs of server can be with the reception server end browser in server-side user point When hitting link, the selection of transmission is available for the instruction of the file of the form of browser resolves.
Step S218:The PHP programs of server send the file of the form for being available for browser resolves of selection to client Browser is held, is parsed by client browser, generates corresponding 3D preview screens.
When client browser user clicks on a certain link, the PHP programs of server will be by can corresponding to the link File for the form of browser resolves is that the file for extending entitled .obj or .dae forms is sent to client browser, client End browser is parsed by WebGL functions to the file of acquisition, is finally generated on client browser page corresponding 3D preview screens supply client browser user's preview.
Step S220:The PHP programs of server are received corresponding to the selection 3D preview screens that client browser is sent The instruction of 3DMAX files.
After client browser user's preview complete 3D preview screens, it is required 3DMAX texts to determine the 3D preview screens 3D pictures corresponding to part, then client browser user will the 3D be pre- to server end transmission download by client browser The instructions of 3DMAX files corresponding to picture, e.g., the download link or button provided in webpage clicking be provided.
Step S222:The PHP programs of server determine in the first catalogue it is corresponding with the 3D preview screens of selection be available for it is clear The file of the form of device of looking at parsing;According to the file of the form for being available for browser resolves after the conversion deposited in the first catalogue with The corresponding relation for the 3DMAX files deposited in second catalogue, it is determined that the 3DMAX files in corresponding second catalogue, by determination 3DMAX files in corresponding second catalogue are sent to client browser.
The document handling method provided by the present embodiment, PHP programs receive the 3DMAX files to upload onto the server, and 3DMAX files in uploading onto the server are converted into being available for the file of the form of browser resolves, for after each conversion can File generated link for the form of browser resolves is shown on client browser.When client browser user selects During 3DMAX files, 3D preview screens corresponding to each link can be obtained by clickthrough;When it is determined that a certain 3D preview screens are Corresponding to required 3DMAX files during 3D preview screens, the 3DMAX texts corresponding to the 3D preview screens are downloaded from server end Part.The document handling method provided by the present embodiment, client browser user can pass through visitor before 3DMAX files are downloaded Family end browser carries out preview to 3D pictures corresponding to each 3DMAX files, so as to only download required 3DMAX files;Avoid The problem of needing blindly to download substantial amounts of useless 3DMAX files using the method for existing selection 3DMAX files, effectively Improve file activity.
Embodiment three
Reference picture 3, show a kind of step flow chart of document handling method of the embodiment of the present invention three.
The present embodiment is exemplified by handling entitled car.max 3DMAX files, to the file process side of the application The detailed description that method is carried out, specific processing step are as follows:
Step S302:User passes through Web(Network)The upload function of website in browser, upload car.max files extremely Web server.
Wherein, it can also be client browser user that user, which can be server-side browser user,.
The upper transmitting file of user, it is the basic function of Website development, such as:User clicks on the upload button that website provides, and uploads File will by browser be submitted to operation PHP programs Web server.
Step S304:Web server receives the car.max files uploaded, and calls PHP programs to handle car.max texts Part.
It is typically that open source software apache or nginx realize Web service in Web server, PHP programs are by apache Or the module that ngnix is called, when the Web service software in Web server receives the file of upload, PHP can be called Program is handled(For example this file is replicated to corresponding assigned catalogue).In the present embodiment, set the PHP programs and transport at the beginning OK, the 3DMAX application programs in simultaneously runtime server are just started.
Step S306:Car.max files are transferred in storage catalogue by PHP programs, while replicate the car.max files extremely Monitor in catalogue.
Wherein, storage catalogue is the second catalogue, and monitoring catalogue is the first catalogue.
Original car.max files are deposited in storage catalogue, in order to download later.
Step S308:PHP programs start the timing of MAXScript shell scripts and supervised after 3DMAX application program successful operations Monitoring catalogue is surveyed, when monitoring there are the .max files of upload in monitoring catalogue, then calls the file format of 3DMAX application programs Translation interface enters row format conversion automatically, and .max files are converted into extending to the file of entitled .dae forms.
The .max files of upload in the present embodiment refer to car.max files, in the present embodiment when being changed to file Keep the file after conversion and the file before conversion of the same name, i.e., car.max files are converted into car.dae files, be easy to text Part is searched.
Step S310:After file converts, MAXScript shell scripts are by before the conversion for monitoring catalogue storage Car.max files are deleted, then monitor that only storage has the car.dae files of the same name after conversion in catalogue.
It is in order to avoid fixed that car.max files before the conversion that MAXScript shell scripts will monitor catalogue storage, which are deleted, When script repeat car.max files are changed.After MAXScript shell scripts convert car.max files, it can maintain Own thread timing detects to monitoring catalogue.
Step S312:When user initiates to browse the instruction of car.dae files by Web browser, Web server will Car.dae files are sent to Web browser.
Step S314:Web browser shows code by the car.dae files after conversion with 3D preview screens by WebGL Form show user.
Code is shown by editing WebGL, can also realize that user drags to 3D preview screens shown in Web browser The operation such as drag, scale, rotating.
The document handling method provided by the present embodiment, reception is uploaded to Web server .max files, and will be uploaded to .max files in Web server are converted into being available for the file of the form of browser resolves, can when user selects .max files To carry out preview to 3D pictures corresponding to .max files by browser, so as to only select the .max files needed to be downloaded. The document handling method provided by the present embodiment, avoid under being needed blindly using the method for existing selection .max files The problem of carrying substantial amounts of useless .max files, can effectively improve file activity.
Example IV
Reference picture 4, show a kind of structured flowchart of document handling apparatus in the embodiment of the present invention four.
The server attachment means based on connection pool of the present embodiment include:Receiving module 402, for receiving what is uploaded 3DMAX files;First memory module 404, for 3DMAX to be stored in the first catalogue;First calling module 406, for working as When determining the successful operation of 3DMAX application programs, the MAXScript shell scripts to match with 3DMAX application programs are called;Prison Module 408 is surveyed, for monitoring the first catalogue according to setting time interval by MAXScript shell scripts;When monitoring first When storage there are 3DMAX files in catalogue, the file conversion in 3DMAX application programs is called to connect by MAXScript shell scripts Mouthful, so that the 3DMAX files deposited in the first catalogue to be converted into being available for the form of browser resolves by file translation interface File.
Preferably, the document handling apparatus in the present embodiment also includes:Generation module 410 is linked, in monitoring modular The 3DMAX files deposited in first catalogue are converted into being available for the text of the form of browser resolves by 408 by file translation interface After part, generate it is corresponding with being available for the file of the form of browser resolves link, for client browser user's preview The file of the form for being available for browser resolves corresponding with linking.
Preferably, the document handling apparatus in the present embodiment also includes:First receiving module 412, for being generated in link The file of form of the generation of module 410 with being available for browser resolves is corresponding to be linked, for client browser user's preview After the file of the form for being available for browser resolves corresponding with linking, client browser is received in client browser user When clicking on the link, the selection of transmission is available for the instruction of the file of the form of browser resolves;First sending module 414, is used for The file of the form for being available for browser resolves of selection is sent to client browser, solved by client browser Analysis, generates corresponding 3D preview screens.
Preferably, the document handling apparatus in the present embodiment also includes:Second memory module 416, in the first storage Before or after 3DMAX files are stored in the first catalogue by module 404,3DMAX is stored in the second catalogue;Wherein, The 3DMAX files one deposited in the file of the form for being available for browser resolves after the conversion deposited in one catalogue and the second catalogue One correspondence;Second receiving module 418, in the first sending module 414 by the text of the form for being available for browser resolves of selection Part is sent to client browser, is parsed by client browser, after generating corresponding 3D preview screens, receives visitor The instruction for choosing 3DMAX files corresponding to the 3D preview screens that family end browser is sent;Second sending module 420, for true The file of the form for being available for browser resolves corresponding with the 3D preview screens of selection in fixed first catalogue;According to the first catalogue The file of the form for being available for browser resolves after the conversion of middle storage and the corresponding pass for the 3DMAX files deposited in the second catalogue System, it is determined that the 3DMAX files in corresponding second catalogue, by the 3DMAX files in the second catalogue corresponding to determination send to Client browser.
Preferably, be converted into the 3DMAX files deposited in the first catalogue by file translation interface can for monitoring modular 408 For the form of browser resolves file when:The 3DMAX files deposited in the first catalogue are converted into by file translation interface Extend the file of entitled .obj or .dae forms.
The document handling apparatus of the present embodiment is used to realize corresponding document handling method in aforesaid plurality of embodiment of the method, And the beneficial effect implemented with corresponding method, will not be repeated here.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.For device embodiment For, because it is substantially similar to embodiment of the method, so description is fairly simple, referring to the portion of embodiment of the method in place of correlation Defend oneself bright.
Document handling method provided by the present invention and device are described in detail above, it is used herein specifically Individual example is set forth to the principle and embodiment of the present invention, and the explanation of above example is only intended to help and understands the present invention Method and its core concept;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, it is being embodied There will be changes in mode and application, in summary, this specification content should not be construed as limiting the invention.

Claims (8)

  1. A kind of 1. document handling method, it is characterised in that including:
    Receive the 3DMAX files uploaded;
    The 3DMAX files are stored in the first catalogue;
    When it is determined that during 3DMAX application program successful operations, calling the MAXScript to match with the 3DMAX application programs Shell script;
    First catalogue is monitored according to setting time interval by the MAXScript shell scripts;
    When monitoring that storage there are the 3DMAX files in first catalogue, called by the MAXScript shell scripts File translation interface in the 3DMAX application programs, will be deposited by the file translation interface in first catalogue The 3DMAX files be converted into being available for browser resolves form file, including passing through the file translation interface The 3DMAX files deposited in first catalogue are converted into extending to the file of entitled .obj or .dae forms, adopted simultaneously The browser for the WebGL functions of extending entitled .obj or .dae formatted files with that can parse is to extending entitled .obj or .dae lattice The file of formula is parsed, and it is shown in the form of 3D preview screens.
  2. 2. according to the method for claim 1, it is characterised in that it is described by the file translation interface by described first After the Files step for the form that the 3DMAX files deposited in catalogue are converted into being available for browser resolves, in addition to:
    Generate and the file of the form for being available for browser resolves is corresponding links, for client browser user's preview With the file for linking the corresponding form for being available for browser resolves.
  3. 3. according to the method for claim 2, it is characterised in that in the generation and the form for being available for browser resolves The corresponding link of file, so that client browser user preview links the corresponding lattice for being available for browser resolves with described After the Files step of formula, in addition to:
    Client browser is received when the client browser user clicks on the link, sends and is available for browsing described in choosing The instruction of the file of the form of device parsing;
    The file for the form that browser resolves are available for described in selection is sent to the client browser, passes through the client End browser is parsed, and generates corresponding 3D preview screens.
  4. 4. according to the method for claim 3, it is characterised in that the 3DMAX files are stored in the first catalogue described Also include before or after middle step:The 3DMAX files are stored in the second catalogue;Wherein, deposited in first catalogue The 3DMAX files deposited in the file of the form for being available for browser resolves after the conversion put and second catalogue are one by one It is corresponding;
    Sent in the file by the form that browser resolves are available for described in selection to the client browser, pass through institute Client browser is stated to be parsed, after generating corresponding 3D preview screens step, in addition to:
    Receive the instruction of 3DMAX files corresponding to the selection 3D preview screens that the client browser is sent;
    Determine the file of the form for being available for browser resolves corresponding with the 3D preview screens of selection in first catalogue; According to the file of the form for being available for browser resolves after the conversion deposited in first catalogue with being deposited in second catalogue The corresponding relation for the 3DMAX files put, it is determined that the 3DMAX files in corresponding second catalogue, by corresponding to the determination 3DMAX files in two catalogues are sent to the client browser.
  5. A kind of 5. document handling apparatus, it is characterised in that including:
    Receiving module, for receiving the 3DMAX files uploaded;
    First memory module, for the 3DMAX files to be stored in the first catalogue;
    First calling module, for when it is determined that during 3DMAX application program successful operations, calling and the 3DMAX application programs The MAXScript shell scripts to match;
    Monitoring modular, for monitoring first catalogue according to setting time interval by the MAXScript shell scripts;When When monitoring that storage has the 3DMAX files in first catalogue, by described in MAXScript shell scripts calling File translation interface in 3DMAX application programs, with the institute that will be deposited by the file translation interface in first catalogue State the file that 3DMAX files are converted into being available for the form of browser resolves, including by the file translation interface by institute State the 3DMAX files deposited in the first catalogue and be converted into extending the file of entitled .obj or .dae forms, while use energy Enough parsings extend the browser of the WebGL functions of entitled .obj or .dae formatted files to extending entitled .obj or .dae forms File is parsed, and it is shown in the form of 3D preview screens.
  6. 6. device according to claim 5, it is characterised in that the document handling apparatus also includes:
    Generation module is linked, for will be deposited in the monitoring modular by the file translation interface in first catalogue After the file for the form that the 3DMAX files are converted into being available for browser resolves, generation and the browser resolves that are available for The corresponding link of the file of form, so that client browser user preview corresponding is available for browser resolves with described link Form file.
  7. 7. device according to claim 6, it is characterised in that the document handling apparatus also includes:
    First receiving module, in the link generation module generation and the file phase of the form for being available for browser resolves Corresponding link, for client browser user preview and the file for linking the corresponding form for being available for browser resolves Afterwards, client browser is received when the client browser user clicks on the link, is available for described in transmission selection clear The instruction of the file of the form of device of looking at parsing;
    First sending module, it is clear to the client for the file that the form of browser resolves is available for described in selection to be sent Look at device, parsed by the client browser, generate corresponding 3D preview screens.
  8. 8. device according to claim 7, it is characterised in that the document handling apparatus also includes:
    Second memory module, for before the 3DMAX files are stored in the first catalogue by first memory module or Afterwards, the 3DMAX files are stored in the second catalogue;Wherein, being available for after the conversion deposited in first catalogue is clear The file of the form of device of looking at parsing corresponds with the 3DMAX files deposited in second catalogue;
    Second receiving module, the file of the form for browser resolves will to be available for described in selection in first sending module Send to the client browser, parsed by the client browser, after generating corresponding 3D preview screens, Receive the instruction of 3DMAX files corresponding to the selection 3D preview screens that the client browser is sent;
    Second sending module, for determining corresponding with the 3D preview screens of selection in first catalogue to be available for browser The file of the form of parsing;According to the file of the form for being available for browser resolves after the conversion deposited in first catalogue with The corresponding relation for the 3DMAX files deposited in second catalogue, it is determined that the 3DMAX files in corresponding second catalogue, by institute The 3DMAX files stated in corresponding second catalogue of determination are sent to the client browser.
CN201410103233.4A 2014-03-19 2014-03-19 A kind of document handling method and device Active CN104933018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410103233.4A CN104933018B (en) 2014-03-19 2014-03-19 A kind of document handling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410103233.4A CN104933018B (en) 2014-03-19 2014-03-19 A kind of document handling method and device

Publications (2)

Publication Number Publication Date
CN104933018A CN104933018A (en) 2015-09-23
CN104933018B true CN104933018B (en) 2018-01-16

Family

ID=54120187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410103233.4A Active CN104933018B (en) 2014-03-19 2014-03-19 A kind of document handling method and device

Country Status (1)

Country Link
CN (1) CN104933018B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273345A (en) * 2017-07-10 2017-10-20 翁毅 One key imports 3Dmax light datas and the method for generating item file
CN111061686A (en) * 2019-10-24 2020-04-24 京东数字科技控股有限公司 Resource processing method, device, server and storage medium
CN112084545A (en) * 2020-09-09 2020-12-15 云工工业科技(深圳)有限公司 Online preview method and system for three-dimensional drawing files with different formats
CN115563426A (en) * 2022-11-23 2023-01-03 四川中航信创科技有限公司 System and method for analyzing and displaying 3D file by browser

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101872364A (en) * 2010-07-02 2010-10-27 苏州阔地网络科技有限公司 Method for converting document into picture on line
CN101996370A (en) * 2009-08-13 2011-03-30 茂为科技股份有限公司 Game store system with 3D (three dimensional) exhibition module
CN102063475A (en) * 2010-12-22 2011-05-18 张丛喆 Webpage user terminal presenting method of three-dimensional model
CN102662983A (en) * 2012-03-14 2012-09-12 南京新与力文化传播有限公司 A method for previewing PDF files on a remote server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100404285B1 (en) * 2000-02-09 2003-11-03 (주) 고미드 2d/3d wed browsing method and recording medium storing the method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996370A (en) * 2009-08-13 2011-03-30 茂为科技股份有限公司 Game store system with 3D (three dimensional) exhibition module
CN101872364A (en) * 2010-07-02 2010-10-27 苏州阔地网络科技有限公司 Method for converting document into picture on line
CN102063475A (en) * 2010-12-22 2011-05-18 张丛喆 Webpage user terminal presenting method of three-dimensional model
CN102662983A (en) * 2012-03-14 2012-09-12 南京新与力文化传播有限公司 A method for previewing PDF files on a remote server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
三维模型转换引擎及其应用研究;江水;《中国优秀硕士学文论文全文数据库 信息科技辑》;20070915;正文第47页第1段,第48页1-2段,第49页第1段,图4-3 *

Also Published As

Publication number Publication date
CN104933018A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
US20140380281A1 (en) Automated software testing
US20180173570A1 (en) Edge computing platform
CN104933018B (en) A kind of document handling method and device
JP4857349B2 (en) Method, system, and computer program for providing asynchronous portal pages within a portal system
CN103092581B (en) The building method of a kind of web front end this locality development environment and device
US10542123B2 (en) System and method for generating and monitoring feedback of a published webpage as implemented on a remote client
CN107766509B (en) Method and device for static backup of webpage
CN110224896A (en) A kind of network performance data acquisition method, device, server and storage medium
CN106933569B (en) A kind of webpage method for refreshing and device
CN105516261A (en) Web page loading control method and load balancer
CN109145236A (en) Page file processing method, apparatus and system
US20190163610A1 (en) Networked digital data processor log file viewer
CN104361007B (en) The processing method of browser and its collection
CN109327530B (en) Information processing method, device, electronic equipment and storage medium
CN103685498B (en) The loading method and browser device of a kind of wallpaper
CN106649581B (en) Webpage repairing method and client
CN105100230A (en) File transmission method and device
CN113014669B (en) Proxy service method, system, server and storage medium based on RPA
CN111857695A (en) Software project processing method, device, equipment and storage medium
CN103942168A (en) Method and system for performing information transmission through browser
CN113268232B (en) Page skin generation method and device and computer readable storage medium
CN111245917B (en) Katalon-based work order entry device and implementation method thereof
AU2019222873B2 (en) Method and system for providing content
CN107391132B (en) Method, device and equipment for target App to execute preset action
CN105808727A (en) Website cross-screen adaptation technology architecture and adaptation method based on HTML5 (Hypertext Markup Language 5)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant