CN109657324A - A kind of figure regeneration techniques based on DWG - Google Patents
A kind of figure regeneration techniques based on DWG Download PDFInfo
- Publication number
- CN109657324A CN109657324A CN201811527799.4A CN201811527799A CN109657324A CN 109657324 A CN109657324 A CN 109657324A CN 201811527799 A CN201811527799 A CN 201811527799A CN 109657324 A CN109657324 A CN 109657324A
- Authority
- CN
- China
- Prior art keywords
- graphic
- entity
- module
- dwg
- regeneration
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Geometry (AREA)
- Computer Graphics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of figure regeneration techniques based on DWG, graph traversal module, pattern classification module, graphic plotting module, Graphics Clipping module and figure regeneration module in regeneration treatment module are sequentially connected, all graphic entities to be treated are filtered out by pattern classification module, pass to graphic plotting module;Graphic plotting module constructs graphic style interface, and calls the public drawing interface of entity;Entity calls Graphics Clipping module and figure regeneration module in graphics rendering process, thus the simple graph entity after being regenerated.Drawing in DWG can be resolved into simple graphic entity by the present invention, realized the needs that can be browsed in the DWG reader of each version, liberated the energy of designer's later maintenance DWG file, delivered for DWG electronization and saved great amount of cost.
Description
Technical field
The present invention relates to the graph processing technique of computer field, in particular to a kind of figure regeneration techniques based on DWG.
Background technique
AutoCAD and DWG:DWG is that the software of CAD software AutoCAD and base AutoCAD saves design
A kind of proprietary file format used in data.AutoCAD is the DWG file editing machine of unique official on the market.Although at present may be used
It is many with the editing machine for opening DWG file, but be all unofficial.
Custom entities: CAD software provides powerful vector graphics editting function.It can be it is known that be applied to CAD soft
The industry of part has very much.These industries are intended to more convenient to draw in the application.It is in need in order to meet institute on the market
Using the industry for arriving CAD, Autodesk provides for a kind of custom entities technology.Such as in building trade, we may
It needs to draw the entities such as " wall ", " door ", " stair ".And for machinery industry, it may just need to provide the figure such as " screw ", " nut "
Shape entity.And this technology, it can be by having developer's complete independently of CAD ability of second development.
Design industry replaces drawing board to have a year more than ten using computer.In this more than ten years, there are all kinds of factories
Quotient is that DWG expanded many figures.But some development companies have had been moved off our visual field over time.
But it is known that design is originally lifelong responsibility system.These electronic charts are possible to leaving away with these development companies, become nothing
Method is read in more highest version CAD, or as a kind of burden of designing unit.Because they can only be in the DWG of more lowest version
It is checked in program.With the acceleration of design industry electronization paces, needed under more and more occasions using DWG electronic document
It interacts.It can show and more easily make faster since the original design intention of DWG file only considers user of service
With so some data that should be stored in DWG are not stored in file, but directly being drawn by a file path
With coming in.In addition the intervention of the expanded application manufacturer of some professionals, they are filled with more customized figures realities for DWG
Body.And these customized graphic entities bring trouble to subsequent interaction while bring convenience.DWG is if necessary to correct
These customized graphic entities are parsed to need that corresponding analysis program is correctly installed.Originally, DWG file is in designing institute
Portion uses, and externally delivers drawing, problem is not too much big.But in recent years, digital check of drawings, after electronization is delivered, the format defect of DWG
Gradually it is exposed.
The method solved these problems at present: one is DWG file is converted into pdf document or other formatted files,
Formatted file after being converted using DWG carries out subsequent work;Another kind is exactly outer what is used required in current DWG file
The program that portion's data and some third party's figures are relied on is together on strap.
All there is biggish limitation in both the above solution.Many troubles are brought to work, it is subsequent to be also possible to
Bring the loss in time and efforts.
Therefore, the prior art is primarily present following problems:
1, using PDF or other formatted files, the distinctive industrial advantages of DWG file can not be retained.Have concept of space in DWG,
And may not have in PDF and other formats.
2, using PDF or other formatted files, certain specific industries are unable to satisfy for the demand in printing.Such as railway
Design industry needs print the similar general drawing of spool, and PDF or other formats cannot achieve.
3, can have the analysis program that be relied on of display figure using DWG have version problem, need when in use by
Version installation.
4, can there is a situation where that external data is sometimes excessive using DWG, designer needs to compare lookup one by one and corresponds to
Applications, changed into internal, or directly taken applications packing together, workload can volume by certain technological means
Outer increase.
Summary of the invention
Present invention mainly solves the problem of be that complex figure entity in DWG is converted into simple graph entity, customized
Graphic entity be converted into simple graph entity, external graphic entity is converted into internal simple graph entity, and can be
Some DWG caching graphic entities carry out being converted into internal simple graph entity, so that complicated drawing is simplified, thus after reducing
Phase safeguards the energy of DWG file, delivers for DWG electronization and saves great amount of cost.
Above-mentioned purpose is implemented with the following technical solutions in the present invention.A kind of figure regeneration techniques based on DWG, including regeneration
Processing module, which is characterized in that graph traversal module, pattern classification module in the regeneration treatment module, graphic plotting mould
Block, Graphics Clipping module and figure regeneration module are sequentially connected, and its step are as follows:
1) public drawing interface is set: for being passed to inside graphic entity, the method for getting graphic plotting, and in graphic plotting side
One or more new simple graph entities are reconfigured in method, replace original complex figure entity;
2) drawing pattern interface is set: for transmitting figure layer, graphic color and figure line style information in graphic plotting;
3) setting geometry cuts interface: the clipping function of figure is realized, for realizing reduction original effect;
4) setting regeneration data-interface: graphic plotting data are reproduced as graphic entity, and are added to regeneration hereinafter
In part;
All graphic entities to be treated are filtered out by pattern classification module, pass to graphic plotting module;Figure
Drafting module constructs graphic style interface, and calls the public drawing interface of entity;Entity calling figure in graphics rendering process
Shape cuts module and figure regeneration module, thus the simple graph entity after being regenerated.
Further, the complex figure entity refers to the customized graphic entity of third company's exploitation, it may be assumed that is particular row
Industry, has expanded the graphic entity in DWG, and graphic entity requires third company by the particular technology in DWG and makes by oneself
Adopted graphic entity technology is realized.
Further, the public drawing interface includes: to draw circle, draw circular arc, draw multi-section-line, draw polygon, draw
Grid, drafting surface, drafting text, drafting straight line, drafting ray and a plurality of line segment of drafting processed.
A kind of process flow of the figure regeneration techniques based on DWG, its step are as follows: complex figure entity is passed through data
Then time after load is loaded into DWG original document in CAD program, initialization regeneration data-interface is into public drawing interface,
All graphic entities are gone through, judge whether figure needs to regenerate;If it is regenerated figure is needed, then by the regeneration data of construction
Interface is entered by graphing transmitting;Graphic entity calls the public drawing interface constructed to be redrawn, and carries out figure
Cut and handle the processing of graphic style;Then the method for needing to draw according to graphic entity, is called in public drawing interface
The method for drawing straight line;Original graphic entity is replaced by new straight line, is inserted into after DWG regenerates in file, is made former multiple
Miscellaneous graphic entity is converted into simple graphic entity.
The present invention is directed to electronics check of drawings, and there is an urgent need to propose a kind of side that can solve drawing complete view in DWG
Case is judged by graph style, filters out simple graphic entity, leave complicated entity and third company exploitation it is customized
Entity, then by the drafting interface of figure, it is incoming constructed in advance pattern drawing method (method for drafting including straight line,
Round method for drafting, etc.), allow graphic entity itself to go that the method constructed in advance is called draw certainly.It can be by drawing in DWG
Simple graphic entity is resolved into, needs can be browsed in the DWG reader of each version by realizing, and liberate designer
The energy of later maintenance DWG file is delivered for DWG electronization and saves great amount of cost.
Detailed description of the invention
Fig. 1 is function structure chart of the invention;
Fig. 2 is regeneration treatment flow chart of the invention.
Specific embodiment
Below in conjunction with drawings and examples, the invention will be further described.Referring to Fig. 1 and Fig. 2.A kind of figure based on DWG
Shape regeneration techniques, including regeneration treatment module 10, graph traversal module 1, pattern classification mould in the regeneration treatment module 10
Block 2, graphic plotting module 3, Graphics Clipping module 4 and figure regeneration module 5 are sequentially connected, and its step are as follows:
1) public drawing interface is set: for being passed to inside graphic entity, the method for getting graphic plotting, and in drawing practice
One or more new simple graph entities are reconfigured, original complex figure entity is replaced;
2) drawing pattern interface is set: for transmitting figure layer, graphic color and figure line style information in drawing;
3) setting geometry cuts interface: realizing the clipping function of figure, in the interface for realizing reduction original effect;
4) setting regeneration data-interface: graphic plotting data are reproduced as graphic entity, and are added to regeneration hereinafter
In part;
All graphic entities to be treated are filtered out by pattern classification module 2, pass to graphic plotting module 3.Figure
Shape drafting module 3 constructs graphic style interface, and calls the public drawing interface of graphic entity.Figure calls in drawing course
After Graphics Clipping module 4 and figure regeneration module 5, the simple entity after being regenerated.
The customized graphic entity of third company's exploitation: refer to that the figure expanded in DWG for specific industry is real
Body, graphic entity require third company by particular technology in DWG and customized graphic entity technology to realize.
Public drawing interface includes: to draw circle, draw circular arc, draw multi-section-line, draw polygon, draw grid, draw
Surface draws text, draws straight line, draws ray and draws a plurality of line segment.
A kind of process flow of the figure regeneration techniques based on DWG, its step are as follows:
After complex figure entity is loaded into DWG original document 22 in CAD program by data load 21, by initializing again
Raw data-interface 23 simultaneously enters public drawing interface 24, then traverses all graphic entities 25, judges whether figure 26 needs
It is regenerated.If it is regenerated figure is needed, then the regeneration data-interface of construction is entered by the transmitting of graphing 27.Figure
Entity calls the public drawing interface 24 constructed to be redrawn, and carries out Graphics Clipping and handle the processing of graphic style 28.
Then the method for needing to draw according to graphic entity, and the method for calling the drafting straight line 29 in public drawing interface.Pass through structure
New straight line is built to replace original graphic entity, being inserted into after DWG regenerates in file 30, makes the graphic entity conversion of former complexity
At simple graphic entity.
Pass through data load 21, DWG original document 22, initialization regeneration data-interface 23, public drawing interface 24, traversal
All graphic entity 25 judges whether to need that regenerated figure 26, graphing 27, figure area is cut and processing figure sample
Formula 28 is drawn after straight line 29 and DWG regeneration after the flow processing of file 30, it is seen that former complicated graphic entity, stair entity and
Window entity is converted to simple graphic entity.
Embodiment: a certain project in each electron-like check of drawings is now applied to using the present invention and is carried out specifically as case study on implementation
It is bright:
User environment: designer is mounted with all kinds of AutoCAD versions or Domestic CAD Software, and golden lattice are successfully installed and go out to scheme to insert
Part.
User demand: the designed finished product DWG drawing file of project relevant design personnel is transferred to special messenger to collect by designing institute
And it is organized into a set of project drawing.And report a part of material to a higher authorities for approval as electronic drawing, it delivers check of drawings mechanism and is examined
It looks into.
Performance specification: due to needing the figure to DWG drawing to be traversed and being calculated, can have a certain amount of time disappears
Consumption, but these consumption are low more than cost of labor.
Existing procedure: the designed finished product drawing of relevant design personnel is collected by designing institute, is packaged into project drawing file, send
Intersection graph mechanism of paper is audited.The audit crew of censorship examines DWG drawing file on its computer.
The precondition that audit crew examines is to allow for completely reading DWG drawing.
The meaning completely read includes: that 1, drawing font is wanted normally to show, cannot be shown as blank, question mark or unrest
Code;2, the outer non-economic file quoted must have, and cannot therefore lead to lack part content;3, what third side plug generated makes by oneself
Adopted physical contents must be normal as it can be seen that cannot cause content can not because of third side plug or wrongly installed third party's plug-in version is not filled
See or shows abnormal.During drawing review, often probably because having used sytlized font file, external ginseng in DWG drawing
Situations such as drawing according to file, third side plug causes drawing imperfect, results in the need for designing institute's supplement and provides the feelings of necessary file
Condition, to increase additional cost of labor.
Use the process after the present invention: designer is designed using AutoCAD software on computers.But design is completed
Afterwards, designer selects golden lattice to go out figure function on AutoCAD.Program can be automatically performed subsequent place by the method for the invention
Reason generates DWG and regenerates file.Designing institute collects the designed DWG of relevant design personnel and regenerates drawing, is packaged into project drawing text
Part is delivered Tu Shen mechanism and is audited.The audit crew of censorship installs golden lattice and sees figure plug-in unit, examines DWG on its computer
Drawing file.
Contrast on effect: the DWG file by regeneration treatment has 10% or so floating than original size.But in check of drawings
Application in, check of drawings computer is not needing to install all kinds of complicated plug-in units, can completely read original drawing.Calling construction in advance
Method while, can in method according to current calling, to regenerate new simple graph entity.And new entity
It is added in current DWG file, complex figure entity before replacing.New DWG regeneration graphic file is generated after the completion.It can be with
The maximized read integrity for ensureing DWG file during electron delivery.
Claims (4)
1. a kind of figure regeneration techniques based on DWG, including regeneration treatment module, which is characterized in that the regeneration treatment module
In graph traversal module, pattern classification module, graphic plotting module, Graphics Clipping module and figure regeneration module successively connect
It connects, its step are as follows:
1) public drawing interface is set: for being passed to inside graphic entity, the method for getting graphic plotting, and in graphic plotting side
One or more new simple graph entities are reconfigured in method, replace original complex figure entity;
2) drawing pattern interface is set: for transmitting figure layer, graphic color and figure line style information in graphic plotting;
3) setting geometry cuts interface: the clipping function of figure is realized, for realizing reduction original effect;
4) setting regeneration data-interface: graphic plotting data are reproduced as graphic entity, and are added to regeneration hereinafter
In part;
All graphic entities to be treated are filtered out by pattern classification module, pass to graphic plotting module;Figure
Drafting module constructs graphic style interface, and calls the public drawing interface of entity;Entity calling figure in graphics rendering process
Shape cuts module and figure regeneration module, thus the simple graph entity after being regenerated.
2. the figure regeneration techniques according to claim 1 based on DWG, which is characterized in that the complex figure entity is
Refer to the customized graphic entity of third company's exploitation, it may be assumed that be specific industry, expanded the graphic entity in DWG, graphic entity
Third company is required by particular technology in DWG and customized graphic entity technology to realize.
3. the figure regeneration techniques according to claim 1 based on DWG, which is characterized in that the public drawing interface packet
Include: draw circle, draw circular arc, draw multi-section-line, draw polygon, draw grid, draw surface, draw text, draw straight line,
It draws ray and draws a plurality of line segment.
4. a kind of process flow of the figure regeneration techniques based on DWG as described in claim 1, which is characterized in that its step
It is as follows: after complex figure entity is loaded into DWG original document in CAD program by data load, initialization regeneration data
Interface enters public drawing interface, then traverses all graphic entities, judges whether graphic entity needs to regenerate;If it is need
Regenerated graphic entity is wanted, then the regeneration data-interface of construction is entered by graphing transmitting;Graphic entity calls construction
Good public drawing interface is redrawn, and carries out Graphics Clipping processing and graphic style processing;Then according to graphic entity need
The method to be drawn, the method for calling the drafting Beeline solid in public drawing interface;Original is replaced by new Beeline solid
Some graphic entities, being inserted into after DWG regenerates in file, makes the graphic entity of former complexity be converted into simple graphic entity.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811527799.4A CN109657324B (en) | 2018-12-13 | 2018-12-13 | DWG-based graph regeneration technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811527799.4A CN109657324B (en) | 2018-12-13 | 2018-12-13 | DWG-based graph regeneration technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109657324A true CN109657324A (en) | 2019-04-19 |
CN109657324B CN109657324B (en) | 2023-02-03 |
Family
ID=66114396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811527799.4A Active CN109657324B (en) | 2018-12-13 | 2018-12-13 | DWG-based graph regeneration technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109657324B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114117612A (en) * | 2021-11-30 | 2022-03-01 | 广州优比建筑咨询有限公司 | Detection method, device, medium and equipment for DWG drawing and Revit model correlation |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679814A (en) * | 2014-12-05 | 2015-06-03 | 沈阳航空航天大学 | Management method of graphs based on dwg and dxf file formats |
CN104765939A (en) * | 2015-05-04 | 2015-07-08 | 上海利驰软件有限公司 | Pick-up and converting DWG format electrical diagram method and device |
CN107229687A (en) * | 2017-05-12 | 2017-10-03 | 国电南瑞科技股份有限公司 | A kind of batch is converted to dft file the system and method for DWG file |
-
2018
- 2018-12-13 CN CN201811527799.4A patent/CN109657324B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679814A (en) * | 2014-12-05 | 2015-06-03 | 沈阳航空航天大学 | Management method of graphs based on dwg and dxf file formats |
CN104765939A (en) * | 2015-05-04 | 2015-07-08 | 上海利驰软件有限公司 | Pick-up and converting DWG format electrical diagram method and device |
CN107229687A (en) * | 2017-05-12 | 2017-10-03 | 国电南瑞科技股份有限公司 | A kind of batch is converted to dft file the system and method for DWG file |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114117612A (en) * | 2021-11-30 | 2022-03-01 | 广州优比建筑咨询有限公司 | Detection method, device, medium and equipment for DWG drawing and Revit model correlation |
CN114117612B (en) * | 2021-11-30 | 2022-06-24 | 广州优比建筑咨询有限公司 | Detection method, device, medium and equipment for correlation between DWG (discrete wavelet transform) drawing and Revit model |
Also Published As
Publication number | Publication date |
---|---|
CN109657324B (en) | 2023-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7039892B2 (en) | Systems and methods for ensuring correct connectivity between circuit designs | |
US4644480A (en) | Reliability analyzing system for manufacturing processes | |
CN110990053A (en) | Method for creating and using machine learning scheme template and device | |
US20040078180A1 (en) | Method for automatically decomposing dynamic system models into submodels | |
CN113641748A (en) | Processing system of mineral processing process flow chart | |
CN106529229A (en) | Permission data processing method and apparatus | |
CN107621963A (en) | A kind of software deployment method, software deployment system and electronic equipment | |
JP2003076731A (en) | Method for securing correct pin assignment among each connecting part of system board by using common mapping file | |
CN109657324A (en) | A kind of figure regeneration techniques based on DWG | |
CN101196953A (en) | CAD apparatus, method and computer product for designing printed circuit board | |
US7286975B2 (en) | Method for developing embedded code for system simulations and for use in a HMI | |
CN106777575A (en) | Satellite collaborative design method based on the transmission of ProE matrix parameters | |
MX9602522A (en) | Method and system for checking print orders for short run printing applications. | |
CN113779681A (en) | Building model establishing method and related device | |
CN112631918A (en) | Software automation test verification method | |
US7609259B2 (en) | System and method for performing a selective fill for a hearing aid shell | |
CN102279718A (en) | Method and device for printing drawings | |
CN103744757B (en) | DF file verification method based on ARINC661 | |
US7681156B2 (en) | Transmission circuit simulator and transmission circuit simulation program storage medium | |
CN104820638A (en) | Embedded whole machine automatic testing method | |
CN113010129A (en) | Virtual studio full-flow multi-terminal blackboard writing extraction method and device | |
US20090132214A1 (en) | Element grouping method for finite element method analysis, and computer-readable storage medium | |
CN112596828A (en) | Application-based popup window generation method and device, electronic equipment and storage medium | |
JP2004287585A (en) | Method and system for verifying card design | |
JP5309625B2 (en) | Human interface display / operation unit design method |
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 | ||
CB02 | Change of applicant information |
Address after: 330096 15th floor, lvyue science and technology building, 579 torch street, high tech Zone, Nanchang City, Jiangxi Province Applicant after: Jiangxi Jinge Technology Co.,Ltd. Address before: 330096 15th floor, lvyue science and technology building, 579 torch street, high tech Zone, Nanchang City, Jiangxi Province Applicant before: JIANGXI KINGGRID TECHNOLOGY CO.,LTD. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |