CN108416824A - DWF files chart pasting method, device, computing device and medium - Google Patents

DWF files chart pasting method, device, computing device and medium Download PDF

Info

Publication number
CN108416824A
CN108416824A CN201810066085.1A CN201810066085A CN108416824A CN 108416824 A CN108416824 A CN 108416824A CN 201810066085 A CN201810066085 A CN 201810066085A CN 108416824 A CN108416824 A CN 108416824A
Authority
CN
China
Prior art keywords
file
information
new
geological information
dwf
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.)
Granted
Application number
CN201810066085.1A
Other languages
Chinese (zh)
Other versions
CN108416824B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201810066085.1A priority Critical patent/CN108416824B/en
Publication of CN108416824A publication Critical patent/CN108416824A/en
Application granted granted Critical
Publication of CN108416824B publication Critical patent/CN108416824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/32Image data format

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

Embodiments of the present invention provide a kind of DWF files chart pasting method.This method is specifically included for picture material to be inserted into drawing:The corresponding DWF files of the drawing are obtained, the DWF files include at least one geological information file, and the geological information file is used to store the geological information of the drawing;The corresponding image file of described image is obtained, according to described image file and the new DWF files of the geological information file generated, wherein the new drawing file corresponds to the drawing for inserting described image.By the way that the drawing file of the image file of image and drawing to be formed to new file, realize textures effect picture material being inserted into drawing.The method of the present invention makes when carrying out textures to DWF files, and without the software environment of Autodesk, to significantly reduce operation difficulty, better experience is brought for user.In addition, embodiments of the present invention provide a kind of DWF files textures device.

Description

DWF files chart pasting method, device, computing device and medium
Technical field
Embodiments of the present invention are related to field of computer technology, more specifically, embodiments of the present invention are related to one kind DWF files chart pasting method, device, computing device and medium.
Background technology
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein Description recognizes it is the prior art not because not being included in this part.
With the fast development of computer technology, it is many that more and more graphics softwares are applied to work and daily life etc. Scene.However, the drawing file that general graphics software generates needs specific software that could open, user wants enterprising in drawing When row mapping operations, then needing first to download specific software could realize.
Currently, having there are some applications, the drawing file of 2D or 3D can be checked, be marked, Yong Huke To open drawing file by those applications, picture is then pasted into designated position.
Invention content
But realize mapping operations, the content of drawing file and the content of picture using above-mentioned application in the prior art Be separation, then by the drawing file after textures using specific graphics software open after, can not show image content.
Thus, it is also very desirable to a kind of improved chart pasting method, so that without specific graphics software when textures, and Drawing file after textures can correctly be shown in specific software.
In the present context, embodiments of the present invention are intended to provide a kind of DWF files chart pasting method and textures device.
In the first aspect of embodiment of the present invention, a kind of DWF files chart pasting method is provided, is used for picture material It is inserted into drawing, the method includes:The corresponding DWF files of the drawing are obtained, the DWF files include at least one Geological information file, the geological information file are used to store the geological information of the drawing;Obtain the corresponding figure of described image As file, according to described image file and the new DWF files of the geological information file generated, wherein the new DWF files pair Ying Yu inserts the drawing of described image.
In one embodiment of the invention, above-mentioned new according to described image file and the geological information file generated DWF files include:Create new geological information file;It reads the content of the geological information file and is sequentially written in the new geometry Message file;And the content of described image file is written in the new geological information file.
In another embodiment of the invention, the above method further includes:Determine that described image is inserted into the position of the drawing Information;The location information is written in the new geological information file.
It is in yet another embodiment of the present invention, above-mentioned that the location information is written in the new geological information file, Including:Convert the location information to co-ordinate position information;By the co-ordinate position information write-in new geological information text In part.
It is above-mentioned to convert the location information to co-ordinate position information in yet another embodiment of the present invention, including:From The dimension information and coordinate information of the drawing are obtained in the DWF files;Determine the dimension information and the coordinate information Correspondence;It converts the location information to the co-ordinate position information according to the correspondence.
In yet another embodiment of the present invention, the above method further includes:Described in configuration information write-in by described image In new geological information file, wherein the configuration information includes the dimension information of described image.
In yet another embodiment of the present invention, the above method further includes:Verify the pass in the new geological information file It is whether consistent in the information of artwork paper part and the information in the geological information file.
In yet another embodiment of the present invention, in the above-mentioned verification new geological information file about artwork paper part Information and the information in the geological information file it is whether consistent, including:With in the new geological information file about original The ending symbol of the information of drawing part is used as delimiter, verifies the letter before the delimiter in the new geological information file Whether breath is consistent with the information in the geological information file, and the delimiter is for separating in the new geological information file The content information of geological information and the image file of said write.
In yet another embodiment of the present invention, above-mentioned geological information file includes w2d files.
In yet another embodiment of the present invention, above-mentioned at least one geological information file corresponds respectively to the drawing At least one figure layer.
In the second aspect of embodiment of the present invention, a kind of DWF files textures device is provided, is used for picture material It is inserted into drawing, described device includes acquisition module and generation module.Acquisition module obtains the corresponding DWF texts of the drawing Part, the DWF files include at least one geological information file, and the geological information file is for storing the several of the drawing What information.Generation module obtains the corresponding image file of described image, according to described image file and geological information text Part generates new DWF files, wherein the new DWF files correspond to the drawing for inserting described image.
In one embodiment of the invention, above-mentioned new according to described image file and the geological information file generated DWF files include:Create new geological information file;It reads the content of the geological information file and is sequentially written in the new geometry Message file;And the content of described image file is written in the new geological information file.
In another embodiment of the present invention, above-mentioned apparatus further includes determining module and writing module.Determining module is true Determine the location information that described image is inserted into the drawing.The new geological information file is written in the location information by writing module In.
It is in yet another embodiment of the present invention, above-mentioned that the location information is written in the new geological information file, Including:Convert the location information to co-ordinate position information;By the co-ordinate position information write-in new geological information text In part.
It is above-mentioned to convert the location information to co-ordinate position information in yet another embodiment of the present invention, including:From The dimension information and coordinate information of the drawing are obtained in the DWF files;Determine the dimension information and the coordinate information Correspondence;It converts the location information to the co-ordinate position information according to the correspondence.
In yet another embodiment of the present invention, above-mentioned apparatus further includes:Configuration module, by the configuration information of described image It is written in the new geological information file, wherein the configuration information includes the dimension information of described image.
In yet another embodiment of the present invention, above-mentioned apparatus further includes:Correction verification module, the verification new geological information text Whether the information about artwork paper part in part and the information in the geological information file are consistent.
In yet another embodiment of the present invention, in the above-mentioned verification new geological information file about artwork paper part Information and the information in the geological information file it is whether consistent, including:With in the new geological information file about original The ending symbol of the information of drawing part is used as delimiter, verifies the information before the delimiter in the geological information file Whether consistent with the information in the geological information file, the delimiter is several in the new geological information file for separating The content information of the image file of what information and said write.
In yet another embodiment of the present invention, above-mentioned geological information file includes w2d files.
In yet another embodiment of the present invention, above-mentioned at least one geological information file corresponds respectively to the drawing At least one figure layer.
In the third aspect of embodiment of the present invention, a kind of computing device is provided, including:One or more storage Device is stored with executable instruction;And one or more processors, the executable instruction is executed, to realize above-described embodiment Any one of DWF file chart pasting methods.
In the fourth aspect of embodiment of the present invention, a kind of medium is provided, is stored thereon with executable instruction, it is described The DWF file chart pasting methods of any one of above-described embodiment are realized in instruction when being executed by processor.
According to the DWF files chart pasting method of embodiment of the present invention and DWF file textures devices, by by the image of image The drawing file of file and drawing forms new file, realizes the textures effect being inserted into picture material in drawing.This hair Bright method makes when carrying out textures to DWF files, without the software environment of Autodesk, to significantly reduce Operation difficulty brings better experience for user.
Description of the drawings
Detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention are read by reference to attached drawing , feature and advantage will become prone to understand.In the accompanying drawings, if showing the present invention's by way of example rather than limitation Dry embodiment, wherein:
Fig. 1 schematically shows the applied field of DWF files chart pasting method and textures device according to the ... of the embodiment of the present invention Scape;
Fig. 2 schematically shows the flow charts of DWF files chart pasting method according to the ... of the embodiment of the present invention;
Fig. 3 schematically shows the flow chart of DWF files chart pasting method according to another embodiment of the present invention;
Fig. 4 diagrammatically illustrates the schematic diagram of computer-readable medium according to the ... of the embodiment of the present invention;
Fig. 5 diagrammatically illustrates the block diagram of DWF files textures device according to the ... of the embodiment of the present invention;
Fig. 6 diagrammatically illustrates the block diagram of DWF files textures device according to another embodiment of the present invention;And
Fig. 7 diagrammatically illustrates the schematic diagram of computing device according to the ... of the embodiment of the present invention.
In the accompanying drawings, identical or corresponding label indicates identical or corresponding part.
Specific implementation mode
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that providing this A little embodiments are used for the purpose of making those skilled in the art can better understand that realizing the present invention in turn, and be not with any Mode limits the scope of the invention.On the contrary, these embodiments are provided so that the disclosure is more thorough and complete, and energy It is enough that the scope of the present disclosure is completely communicated to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method Or computer program product.Therefore, the disclosure can be with specific implementation is as follows, i.e.,:Complete hardware, complete software The form that (including firmware, resident software, microcode etc.) or hardware and software combine.
According to the embodiment of the present invention, it is proposed that a kind of DWF files chart pasting method, medium, device and computing device.
Herein, it is to be understood that any number of elements in attached drawing is used to example and unrestricted and any Name is only used for distinguishing, without any restrictions meaning.
Below with reference to several representative embodiments of the present invention, the principle and spirit of the invention are illustrated in detail.
Summary of the invention
The inventors discovered that in order to reduce the operation difficulty of textures, the effect of textures is improved, image is inserted into drawing When, the corresponding image file of image and the corresponding drawing file composition of drawing can be generated new file, the new file In information i.e. comprising former drawing file include again insertion image information.Picture material is inserted into figure so as to realize Textures effect in paper, and when opening new file, can show drawing but also show image.
After the basic principle for describing the present invention, lower mask body introduces the various non-limiting embodiment party of the present invention Formula.
Application scenarios overview
DWF files chart pasting method and textures according to the ... of the embodiment of the present invention are schematically shown referring initially to Fig. 1, Fig. 1 The application scenarios 100 of device.
As shown in Figure 1, the application scenarios 100 include drawing 110 and multiple images 120.
According to the embodiment of the present disclosure, drawing 110 can be by AutoCAD (Computer Aided Design) software The drawing of drafting, the drawing file by AutoCAD Software Creates can be DWF (Design Web Format) files.
According to the embodiment of the present disclosure, image 120 can be the image of picture format, for example, can be TIFF, JPEG, GIF, PNG etc..
In the embodiments of the present disclosure, the specific position (as shown in Figure 1) that image 120 is inserted into drawing 110 is needed.Example Such as, the picture that furniture is inserted into drawing can be fitted up.
Illustrative methods
With reference to the application scenarios of Fig. 1, the use according to exemplary embodiment of the invention is described with reference to 2~Fig. 3 of figure In the method for DWF file textures.It should be noted that above application scene is merely for convenience of understanding the spirit and original of the present invention It manages and shows, embodiments of the present invention are unrestricted in this regard.On the contrary, embodiments of the present invention can be applied to Applicable any scene.
Fig. 2 schematically shows the flow charts of DWF files chart pasting method according to the ... of the embodiment of the present invention.
As shown in Fig. 2, this method includes operation S210~S220.This method can be used for picture material being inserted into drawing In.
In operation S210, the corresponding DWF files of drawing are obtained, DWF files include at least one geological information file, In, geological information file is used to store the geological information of drawing.
According to the embodiment of the present disclosure, drawing can be stored with the format of DWF files.Drawing in DWF files Data have passed through compression and encryption, can be to propagate rapidly and efficiently and safely distribution drawing data.
DWF files include at least one geological information file, and at least one geological information file corresponds respectively to drawing At least one figure layer.Geological information file can be in DWF files store geological information object, geological information for example including The geometric representation of the figures such as polygon, broken line, circle.In the embodiments of the present disclosure, geological information file for example can be w2d texts Part, a w2d file correspond to a figure layer of DWF files, that is, the geological information of a figure layer in DWF files is stored in In one w2d file.
In the embodiments of the present disclosure, it can download in advance and the DWF Toolkit, DWF of compiled Autodesk Toolkit is can to read and write the Open Source Code packet of DWF files, and DWF Toolkit can independently read and write 2D's or 3D DWF/DWFx files, it is not necessary to others Autodesk software environments are relied on, for example, it may not be necessary to which it is i.e. read-write to rely on AutoCAD DWF files.DWF Toolkit that can be for example compiled read the corresponding DWF files of drawing, corresponding to obtain drawing DWF files.
In operation S220, the corresponding image file of image is obtained, it is new according to image file and geological information file generated DWF files, wherein new DWF files correspond to the drawing for inserting image.
In the embodiments of the present disclosure, the corresponding image file of image can be the file of picture format, such as can be The picture file of the formats such as JPEG, PNG.The embodiment of the present disclosure can read the content in the corresponding image file of image.
According to the embodiment of the present disclosure, wherein can be wrapped according to image file and the new DWF files of geological information file generated It includes:New geological information file is created, the content of geological information file is read and is sequentially written in new geological information file, and will figure As the content of file is written in new geological information file.
For example, one embodiment of the disclosure can create one or more new geological information file, then pass through DWF Toolkit reads the content of the geological information file in the corresponding DWF files of drawing, and the content of reading is sequentially written in establishment New geological information file in, at this point, including the corresponding geological information of drawing in new geological information file.Then, by acquisition The content of image file is also written in new geological information file, at this point, both having included that drawing is corresponding in new geological information file Geological information includes the content information for the image being inserted into again.
For example, another embodiment of the disclosure can also create a new DWF file, drawing is read by DWF Toolkit The content read is simultaneously sequentially written in new DWF files by corresponding DWF files, at this point, being corresponded to comprising drawing in new DWF files All information.It is then possible to which the content of the image file of acquisition to be written to pair of the geological information file in new DWF files It answers in position, at this point, not only having included drawing content in new DWF files but also having included picture material.
For example, picture material directly can also be written to DWF by the another embodiment of the disclosure by corresponding Reading and writing instrument The corresponding position of geological information file in file.
The embodiment of the present disclosure is by the DWF files combination producing of the picture material of image and drawing that will need to be inserted into new DWF files so that not only included the content of artwork paper in new DWF files, but also has included the picture material of the image of insertion, so as to Picture material is inserted into the textures effect in drawing to realize, and without installing original graphics software or other designs are soft Part reduces user's operation difficulty, improves user experience.
The embodiment of the present disclosure is by the way that picture material to be written in corresponding geological information file, to realize specified The effect of textures in figure layer, and image becomes an entirety with drawing content, can not simply extract picture material, improve The confidentiality of picture material.
The new DWF files that the embodiment of the present disclosure generates also comply with its file format, and the new DWF files after textures can be It is correctly opened in AutoCAD, and shows the drawing content after textures.
Fig. 3 schematically shows the flow chart of DWF files chart pasting method according to another embodiment of the present invention.
As shown in figure 3, this method includes operation S210~S220 and S310~S340.Wherein, S210~S220 is operated The method described with above-mentioned reference chart 2 is same or similar, and details are not described herein.
In operation S310, determine that image is inserted into the location information of drawing.
According to the embodiment of the present disclosure, user can determine location information according to the position in the drawing that image to be inserted into.Example Such as, need the center that image is inserted into drawing, it is determined that location information can be drawing center.For example, it is desired to By 4 feet of image insert the distance drawing left margin, apart from 5 feet of position of lower boundary, it is determined that location information can be (4 Foot, 5 feet) etc..
In operation S320, location information is written in new geological information file.
According to the embodiment of the present disclosure, it location information be written in new geological information file may include:Location information is turned Co-ordinate position information is turned to, and co-ordinate position information is written in new geological information file.
Wherein, converting location information to co-ordinate position information may include:The size letter of drawing is obtained from DWF files Breath and coordinate information, determine the correspondence of dimension information and coordinate information, and convert location information according to correspondence For co-ordinate position information.
In the embodiments of the present disclosure, the full-size(d) of drawing can be obtained from DWF files, for example, true long and wide Deng.The coordinate information that the specified point of drawing can also be obtained from DWF files, for example, the lower-left angle point that can obtain drawing exists Coordinate position including coordinate position and upper right angle point in intrinsic coordinates system in portion's coordinate system.It can be according to the true of drawing Real size and corresponding coordinate information establish correspondence.Thus after the location information that image will be inserted into is determined, root According to the correspondence, the co-ordinate position information in internal coordinate system that image will be inserted into is determined.By the co-ordinate position information It is written in new geological information file, so as to the position for specifying image to be inserted into.
In operation S330, the configuration information of image is written in new geological information file, wherein configuration information includes image Dimension information.
According to the embodiment of the present disclosure, new geological information can also will be written to about to the configuration information that image configures In file, for example, can be by the new geological information file of the write-ins such as the dimension information of image or resolution information, to realize pair The configuration of image.
In operation S340, verify in the information and geological information file about artwork paper part in new geological information file Information it is whether consistent.
It in the embodiments of the present disclosure, can be with the knot of the information about artwork paper part in the new geological information file Tail symbol is used as delimiter, which is used to separate the geological information in new geological information file and the image file of write-in Content information.For example, the content in geological information file in the DWF files by reading is written in new geological information file Afterwards, it is accorded with as delimiter, is then again written to the content information of image new several using the ending of the content of the geological information file After delimiter in what message file.
According to the embodiment of the present disclosure, the information and geological information about artwork paper part in new geological information file are verified Information in file whether may include unanimously:Verify the information and geometry before the delimiter in new geological information file Whether the information in message file is consistent.
For example, in order to ensure that the content of the artwork paper before textures will not change with textures behavior, it can be to new DWF texts Part is verified, and due to only having the new geological information file in new DWF files change occur, can only be believed new geometry Breath file is verified, such as can only verify the information in new geological information file about artwork paper part.
The embodiment of the present disclosure can specify the size for the position and image that image pastes, image after stickup and artwork paper at It is integrated, even if on the drawing in file will not influence the relative position of image and drawing the operations such as rotation translation.
Exemplary media
After describing the method for exemplary embodiment of the invention, next, with reference to figure 4 to the exemplary reality of the present invention Apply mode, illustrate for realizing the computer readable storage medium of DWF file chart pasting methods, the computer-readable storage Executable instruction is stored on medium, described instruction realizes that any one of above method embodiment is above-mentioned when being executed by processor Chart pasting method.
In some possible embodiments, various aspects of the invention are also implemented as a kind of shape of program product Formula comprising program code, when described program product is run on the terminal device, said program code is for making the terminal Equipment executes the use according to the various illustrative embodiments of the present invention described in above-mentioned " illustrative methods " part of this specification Step in DWF file chart pasting methods obtains for example, the terminal device can execute operation S210 as shown in Figure 2 The corresponding DWF files of drawing, DWF files include at least one geological information file, wherein geological information file is for storing The geological information of drawing;It operates S220 and obtains the corresponding image file of image, given birth to according to image file and geological information file At new DWF files, wherein new DWF files correspond to the drawing for inserting image.
The arbitrary combination of one or more readable mediums may be used in described program product.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red The system of outside line or semiconductor, device or device, or the arbitrary above combination.The more specific example of readable storage medium storing program for executing (non exhaustive list) includes:Electrical connection, portable disc with one or more conducting wires, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
As shown in figure 4, the program product 40 of the data processing for chart according to the embodiment of the present invention is described, It may be used portable compact disc read only memory (CD-ROM) and includes program code, and can in terminal device, such as It is run on PC.However, the program product of the present invention is without being limited thereto, in this document, readable storage medium storing program for executing can be appointed What include or storage program tangible medium, the program can be commanded execution system, device either device use or and its It is used in combination.
Readable signal medium may include in a base band or as the data-signal that a carrier wave part is propagated, wherein carrying Readable program code.Diversified forms may be used in the data-signal of this propagation, including --- but being not limited to --- electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be other than readable storage medium storing program for executing it is any can Read medium, which can send, propagate either transmission for being used by instruction execution system, device or device or Program in connection.
The program code for including on readable medium can transmit with any suitable medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
It can be write with any combination of one or more programming languages for executing the program that operates of the present invention Code, described program design language include object oriented program language --- and such as Java, C++ etc. further include routine Procedural programming language --- such as " C ", language or similar programming language.Program code can fully exist It executes in user calculating equipment, partly execute on a user device, being executed, partly in user as an independent software package Part executes or is executed in remote computing device or server completely on a remote computing on computing device.It is relating to And in the situation of remote computing device, remote computing device can pass through the network of any kind --- including LAN (LAN) Or wide area network (WAN) one is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize internet Service provider is connected by internet).
Exemplary means
After describing the medium of exemplary embodiment of the invention, next, showing the present invention with reference to 5~Fig. 6 of figure The DWF file textures devices of example property embodiment illustrate.
Fig. 5 diagrammatically illustrates the block diagram of DWF files textures device 500 according to the ... of the embodiment of the present invention.
As shown in figure 5, DWF file textures device 500 may include acquisition module 510 and generation module 520.
Acquisition module 510 can obtain the corresponding DWF files of drawing, and DWF files include at least one geological information text Part, wherein geological information file is used to store the geological information of drawing.According to the embodiment of the present disclosure, acquisition module 510 for example may be used To execute the operation S210 described above with reference to Fig. 2, details are not described herein.
Generation module 520 can obtain the corresponding image file of image, be given birth to according to image file and geological information file At new DWF files, wherein new DWF files correspond to the drawing for inserting image.According to the embodiment of the present disclosure, generation module 510 Such as the operation S220 described above with reference to Fig. 2 can be executed, details are not described herein.
The embodiment of the present disclosure is by the DWF files combination producing of the picture material of image and drawing that will need to be inserted into new DWF files so that not only included the content of artwork paper in new DWF files, but also has included the picture material of the image of insertion, so as to Picture material is inserted into the textures effect in drawing to realize, and without installing original graphics software or other designs are soft Part reduces user's operation difficulty, improves user experience.
The embodiment of the present disclosure is by the way that picture material to be written in corresponding geological information file, to realize specified The effect of textures in figure layer, and image becomes an entirety with drawing content, can not simply extract picture material, improve The confidentiality of picture material.
The new DWF files that the embodiment of the present disclosure generates also comply with its file format, and the new DWF files after textures can be It is correctly opened in AutoCAD, and shows the drawing content after textures.
Fig. 6 diagrammatically illustrates the block diagram of DWF files textures device 600 according to another embodiment of the present invention.
As shown in fig. 6, DWF file textures device 600 may include acquisition module 510, generation module 520, determining module 530, writing module 540, configuration module 550 and correction verification module 560.Wherein, acquisition module 510 and generation module 520 with it is upper State that the module described with reference to figure 5 is same or like, and details are not described herein.
Determining module 530 determines that image is inserted into the location information of drawing.According to the embodiment of the present disclosure, determining module 530 As that can execute above with reference to the operation S310 described in Fig. 3, details are not described herein.
Location information is written in new geological information file writing module 540.According to the embodiment of the present disclosure, writing module 540 can for example execute the operation S320 described above with reference to Fig. 3, and details are not described herein.
The configuration information of image is written in new geological information file configuration module 550, wherein configuration information includes image Dimension information.According to the embodiment of the present disclosure, configuration module 550 can for example execute the operation S330 described above with reference to Fig. 3, Details are not described herein.
Correction verification module 560 verifies in the information and geological information file about artwork paper part in new geological information file Information it is whether consistent.According to the embodiment of the present disclosure, correction verification module 560 can for example execute the operation described above with reference to Fig. 3 S340, details are not described herein.
It is understood that acquisition module 510, generation module 520, determining module 530, writing module 540, configuration module 550 and correction verification module 560 may be incorporated in a module and realize or any one module therein can be split into Multiple modules.Alternatively, at least partly function of one or more of these modules module can be at least portion of other modules Point function is combined, and is realized in a module.According to an embodiment of the invention, acquisition module 510, generation module 520, really At least one of cover half block 530, writing module 540, configuration module 550 and correction verification module 560 can be at least by partly It is embodied as on hardware circuit, such as field programmable gate array (FPGA), programmable logic array (PLA), system on chip, substrate System, the system in encapsulation, application-specific integrated circuit (ASIC), can with to circuit carry out it is integrated or encapsulate any other The hardware such as rational method or firmware realize, or with software, three kinds of realization methods of hardware and firmware it is appropriately combined come it is real It is existing.Alternatively, acquisition module 510, generation module 520, determining module 530, writing module 540, configuration module 550 and calibration mode At least one of block 560 can at least be implemented partly as computer program module, when the program is run by computer, The function of corresponding module can be executed.
Exemplary computer device
After method, medium and the device for describing exemplary embodiment of the invention, next, with reference to figure 7 to this Invention illustrative embodiments, illustrate for realizing the computing device of DWF files chart pasting method and textures device.
The embodiment of the present invention additionally provides a kind of computing device.Person of ordinary skill in the field is it is understood that this hair Bright various aspects can be implemented as system, method or program product.Therefore, various aspects of the invention can be implemented as Following form, i.e.,:Complete hardware embodiment, complete Software Implementation (including firmware, microcode etc.) or hardware and The embodiment that software aspects combine, may be collectively referred to as circuit, " module " or " system " here.
In some possible embodiments, it is single can to include at least at least one processing for computing device according to the present invention Member and at least one storage unit.Wherein, the storage unit has program stored therein code, when said program code is described Processing unit execute when so that the processing unit execute described in above-mentioned " illustrative methods " part of this specification according to this Invent the step in the DWF file chart pasting methods of various illustrative embodiments.For example, the processing unit can be executed such as figure S210 is operated shown in 2 obtains the corresponding DWF files of drawing, DWF files include at least one geological information file, In, geological information file is used to store the geological information of drawing;It operates S220 and obtains the corresponding image file of image, according to image File and the new DWF files of geological information file generated, wherein new DWF files correspond to the drawing for inserting image.
Described referring to Fig. 7 this embodiment according to the present invention for realizing DWF file chart pasting methods Computing device 70.Computing device 70 as shown in Figure 7 is only an example, function that should not be to the embodiment of the present invention and use Range band carrys out any restrictions.
As shown in fig. 7, computing device 70 is showed in the form of universal computing device.The component of computing device 70 may include But it is not limited to:Above-mentioned at least one processing unit 701, above-mentioned at least one storage unit 702, connection different system component (packet Include storage unit 702 and processing unit 701) bus 703.
Bus 703 indicates one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.
Storage unit 702 may include the readable medium of form of volatile memory, such as random access memory (RAM) 7021 and/or cache memory 7022, it can further include read-only memory (ROM) 7023.
Storage unit 702 can also include program/utility with one group of (at least one) program module 7024 7025, such program module 7024 includes but not limited to:Operating system, one or more application program, other program moulds Block and program data may include the realization of network environment in each or certain combination in these examples.
Computing device 70 can also be with one or more external equipments 704 (such as keyboard, sensing equipment, bluetooth equipment etc.) Communication can also enable a user to the equipment interacted with computing device 70 communication with one or more, and/or be set with to calculate The standby 70 any equipment (such as router, modem etc.) that can be communicated with one or more of the other computing device are led to Letter.This communication can be carried out by input/output (I/O) interface 705.Also, computing device 70 can also be suitable by network Orchestration 706 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as because of spy Net) communication.As shown, network adapter 706 is communicated by bus 703 with other modules of computing device 70.It should be understood that Although not shown in the drawings, other hardware and/or software module can be used in conjunction with computing device 70, including but not limited to:Micro- generation Code, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup are deposited Storage system etc..
It should be noted that although being referred to several units/modules or subelement/mould of textures device in above-detailed Block, but it is this division be only exemplary it is not enforceable.In fact, according to the embodiment of the present invention, retouching above The feature and function for two or more units/modules stated can embody in a units/modules.Conversely, above description The feature and function of a units/modules can be further divided into and embodied by multiple units/modules.
In addition, although the operation of the method for the present invention is described with particular order in the accompanying drawings, this do not require that or Hint must execute these operations according to the particular order, or have to carry out shown in whole operation could realize it is desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one Step is decomposed into execution of multiple steps.
Although by reference to several spirit and principle that detailed description of the preferred embodimentsthe present invention has been described, it should be appreciated that, this It is not limited to the specific embodiments disclosed for invention, does not also mean that the feature in these aspects cannot to the division of various aspects Combination is this to divide the convenience merely to statement to be benefited.The present invention is directed to cover appended claims spirit and Included various modifications and equivalent arrangements in range.

Claims (10)

1. a kind of DWF files chart pasting method, for picture material to be inserted into drawing, the method includes:
The corresponding DWF files of the drawing are obtained, the DWF files include at least one geological information file, the geometry Message file is used to store the geological information of the drawing;
The corresponding image file of described image is obtained, according to described image file and the new DWF of geological information file generated File, wherein the new DWF files correspond to the drawing for inserting described image.
2. described to be given birth to according to described image file and the geological information file according to the method described in claim 1, wherein Include at new DWF files:
Create new geological information file;
It reads the content of the geological information file and is sequentially written in the new geological information file;And
The content of described image file is written in the new geological information file.
3. according to the method described in claim 2, further including:
Determine that described image is inserted into the location information of the drawing;
The location information is written in the new geological information file.
4. described that the new geological information file is written in the location information according to the method described in claim 3, wherein In, including:
Convert the location information to co-ordinate position information;
The co-ordinate position information is written in the new geological information file.
5. it is described to convert the location information to co-ordinate position information according to the method described in claim 4, wherein, including:
The dimension information and coordinate information of the drawing are obtained from the DWF files;
Determine the correspondence of the dimension information and the coordinate information;
It converts the location information to the co-ordinate position information according to the correspondence.
6. according to the method described in claim 1, further including:
The configuration information of described image is written in the new geological information file, wherein the configuration information includes the figure The dimension information of picture.
7. according to the method described in claim 2, further including:
Verify the information about artwork paper part in the new geological information file and the information in the geological information file It is whether consistent.
8. a kind of DWF files textures device, for picture material to be inserted into drawing, described device includes:
Acquisition module obtains the corresponding DWF files of the drawing, and the DWF files include at least one geological information file, The geological information file is used to store the geological information of the drawing;
Generation module obtains the corresponding image file of described image, according to described image file and the geological information file Generate new DWF files, wherein the new DWF files correspond to the drawing for inserting described image.
9. a kind of computing device, including:
One or more memories, are stored with executable instruction;And
One or more processors execute the executable instruction, according to any one of claims 1 to 7 to realize Method.
10. a kind of computer readable storage medium, is stored thereon with executable instruction, described instruction is real when being executed by processor Existing method according to any one of claims 1 to 7.
CN201810066085.1A 2018-01-23 2018-01-23 DWF file mapping method, device, computing equipment and medium Active CN108416824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810066085.1A CN108416824B (en) 2018-01-23 2018-01-23 DWF file mapping method, device, computing equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810066085.1A CN108416824B (en) 2018-01-23 2018-01-23 DWF file mapping method, device, computing equipment and medium

Publications (2)

Publication Number Publication Date
CN108416824A true CN108416824A (en) 2018-08-17
CN108416824B CN108416824B (en) 2022-05-03

Family

ID=63126254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810066085.1A Active CN108416824B (en) 2018-01-23 2018-01-23 DWF file mapping method, device, computing equipment and medium

Country Status (1)

Country Link
CN (1) CN108416824B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114004908A (en) * 2021-11-01 2022-02-01 中筑创联建筑科技(北京)有限公司 Implementation method for simplifying DWG two-dimensional engineering drawing

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100881346B1 (en) * 2008-05-22 2009-02-04 새한항업(주) Drawing system for composing the datum point of an aerial photograph taken by digital picture
CN102880283A (en) * 2011-07-14 2013-01-16 师源 Interaction type multimedia production and broadcast system with fusion of three-dimensional and two-dimensional data
CN103853734A (en) * 2012-11-30 2014-06-11 苏州利驰电子商务有限公司 Drawing content difference comparison method and system
CN104750913A (en) * 2015-03-05 2015-07-01 中国电建集团昆明勘测设计研究院有限公司 Method for automatically transforming DWG three-dimensional model into X three-dimensional model
CN105069226A (en) * 2015-08-03 2015-11-18 常州赞云软件科技有限公司 Three-dimensional modeling method based on template
US20160027203A1 (en) * 2014-07-22 2016-01-28 Samsung Electronics Co., Ltd. Method and apparatus for hybrid rendering
CN105334216A (en) * 2014-06-10 2016-02-17 通用电气公司 Method and system used for automatic parts inspection
CN107092354A (en) * 2017-04-01 2017-08-25 宁强 The method of Sketchup model virtuals reality transformation technology

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100881346B1 (en) * 2008-05-22 2009-02-04 새한항업(주) Drawing system for composing the datum point of an aerial photograph taken by digital picture
CN102880283A (en) * 2011-07-14 2013-01-16 师源 Interaction type multimedia production and broadcast system with fusion of three-dimensional and two-dimensional data
CN103853734A (en) * 2012-11-30 2014-06-11 苏州利驰电子商务有限公司 Drawing content difference comparison method and system
CN105334216A (en) * 2014-06-10 2016-02-17 通用电气公司 Method and system used for automatic parts inspection
US20160027203A1 (en) * 2014-07-22 2016-01-28 Samsung Electronics Co., Ltd. Method and apparatus for hybrid rendering
CN104750913A (en) * 2015-03-05 2015-07-01 中国电建集团昆明勘测设计研究院有限公司 Method for automatically transforming DWG three-dimensional model into X three-dimensional model
CN105069226A (en) * 2015-08-03 2015-11-18 常州赞云软件科技有限公司 Three-dimensional modeling method based on template
CN107092354A (en) * 2017-04-01 2017-08-25 宁强 The method of Sketchup model virtuals reality transformation technology

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
SHUSHENGZHANG等: "A review of Internet-based product information sharing and visualization", 《COMPUTERS IN INDUSTRY》 *
佚名: "DWF toolkit read-_modify-_savefile", 《HTTPS://FORUMS.AUTODESK.COM/T5/DWF/DWF-TOOLKIT-READ-GT-MODIFY-GT-SAVE-FILE/TD-P/5664078》 *
佚名: "Insert an Image into a Drawin", 《HTTPS://WWW.YOUTUBE.COM/WATCH?V=HUWA6VHP9YA》 *
汤志东等: "互联网上矢量图形文件及其浏览机制的研究", 《工程图学学报 》 *
谭赞武: "如何实现AutoCAD的图形数据交换", 《湖南工业职业技术学院学报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114004908A (en) * 2021-11-01 2022-02-01 中筑创联建筑科技(北京)有限公司 Implementation method for simplifying DWG two-dimensional engineering drawing
CN114004908B (en) * 2021-11-01 2023-01-06 中筑创联建筑科技(北京)有限公司 Implementation method for simplifying DWG two-dimensional engineering drawing

Also Published As

Publication number Publication date
CN108416824B (en) 2022-05-03

Similar Documents

Publication Publication Date Title
US10599405B2 (en) Application system having an LLVM compiler
CN102455912B (en) Expand during operation
US8274506B1 (en) System and methods for creating a three-dimensional view of a two-dimensional map
CN111402390B (en) Model rendering method, device, equipment and storage medium
ES2660434T3 (en) System and procedure to provide improved graphics pipeline
CN109087384B (en) Ray tracing system and method and ray compression method and module
CN106547681B (en) Method and device for testing data automatic loading and multiplexing simulation service
KR101625258B1 (en) Platform extensibility framework
CN101853162B (en) Method for rendering editable webpage three-dimensional (Web3D) geometric modeling
WO2004057439A2 (en) System and method for visual annotation and knowledge representation
CN108008954A (en) Page configuration method, apparatus, server and medium
US10922458B2 (en) Dynamic bridging of interface protocols
US20200410150A1 (en) Generating a template-driven schematic from a netlist of electronic circuits
KR20230154979A (en) Mapping architecture of the Immersive Technology Media Format (ITMF) specification with rendering engines
CN115618653A (en) Method, server and program product for post-processing of simulation calculation results of CAE software
CN108416824A (en) DWF files chart pasting method, device, computing device and medium
CN113495730A (en) Resource package generation and analysis method and device
CN106095241A (en) The window display method of a kind of Web application, device and the equipment of calculating
CN114969586A (en) BIM (building information modeling) graphic engine loading method and device based on WEB side
CN112214622A (en) Data processing method and device for rapidly displaying AutoCAD drawing
KR20090000651A (en) User interface providing apparatus and method for on-line game
CN105976427B (en) A kind of 3 d medical images data object plotting method for Android platform
CN114139487A (en) Layout visualization development tool and packaging and using method
EP3834080B1 (en) Static reconcilliation of application view hierarchies
US20030163604A1 (en) Method and apparatus for design and manufacturing application feature interoperability

Legal Events

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