CN109657324B - DWG-based graph regeneration technology - Google Patents

DWG-based graph regeneration technology Download PDF

Info

Publication number
CN109657324B
CN109657324B CN201811527799.4A CN201811527799A CN109657324B CN 109657324 B CN109657324 B CN 109657324B CN 201811527799 A CN201811527799 A CN 201811527799A CN 109657324 B CN109657324 B CN 109657324B
Authority
CN
China
Prior art keywords
graph
entity
graphic
module
dwg
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
CN201811527799.4A
Other languages
Chinese (zh)
Other versions
CN109657324A (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.)
Jiangxi Jinge Technology Co ltd
Original Assignee
Jiangxi Jinge Technology 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 Jiangxi Jinge Technology Co ltd filed Critical Jiangxi Jinge Technology Co ltd
Priority to CN201811527799.4A priority Critical patent/CN109657324B/en
Publication of CN109657324A publication Critical patent/CN109657324A/en
Application granted granted Critical
Publication of CN109657324B publication Critical patent/CN109657324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three 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 DWG-based graph regeneration technology.A graph traversing module, a graph classifying module, a graph drawing module, a graph cutting module and a graph regeneration module in a regeneration processing module are sequentially connected, and all graph entities needing to be processed are filtered out by the graph classifying module and transmitted to the graph drawing module; the graph drawing module constructs a graph style interface and calls a public drawing interface of an entity; and the entity calls the graph clipping module and the graph regeneration module in the graph drawing process, so that a regenerated simple graph entity is obtained. The invention can decompose the drawing in DWG into simple graphic entities, realizes the requirement of browsing in DWG viewers of various versions, liberates the energy of designers for later maintenance of DWG files, and saves a great deal of cost for DWG electronic delivery.

Description

DWG-based graph regeneration technology
Technical Field
The invention relates to a graphics processing technology in the field of computers, in particular to a graphics regeneration technology based on DWG.
Background
AutoCAD and DWG: DWG is a proprietary file format used by computer aided design software AutoCAD and AutoCAD-based software to store design data. AutoCAD is the only official DWG file editor on the market. Although there are many editors that can open a DWG file at present, they are unofficial.
Self-defining an entity: CAD software provides powerful vector graphics editing functions. It is known that there are many industries that apply to CAD software. These industries all desire to be able to draw more conveniently in applications. In order to meet all industries needing CAD in the market, autodesk provides a self-defined entity technology. For example, in the construction industry, we may need to draw entities such as "walls", "doors", "stairs", etc. For the mechanical industry, it may be necessary to provide graphic entities such as "screws", "nuts", etc. The technology can be independently completed by a developer with CAD secondary development capability.
The design industry has been more than ten years old using computers instead of drawing tablets. In these decades, there have been many types of manufacturers that have expanded the graphics for DWG. However, some development companies have left our field of view over time. But we know that design cost is a lifelong responsibility system. These electronic drawings may become unreadable in higher-version CAD or become a burden to the design entity as these development companies leave. Since they can only be viewed in lower versions of the DWG program. With the acceleration of the electronic pace of the design industry, DWG electronic files are required to be used for interaction in more and more occasions. Since the DWG file is originally designed with consideration of faster display and more convenient use by the user, some data that should be stored in the DWG file is not saved in the file but is directly referenced by a file path. With the intervention of some industrial extended application vendors, they have injected more custom graphical entities into the DWG. And the user-defined graphic entities bring convenience and trouble to subsequent interaction. The DWG needs to correctly install the corresponding parser if it needs to correctly parse the custom graphic entities. At first, the DWG file was used only inside the design house, and the drawing was delivered to the outside, and the problem was not too great. However, in recent years, the format defects of DWG have been revealed after digital examination and electronic delivery.
The current solutions to these problems are: one is to convert a DWG file into a PDF file or other format files and use the format files after DWG conversion for subsequent work; another is to pack the external data needed in the current DWG file together with the programs that some third party graphics depend on.
Both of the above two solutions have great limitations. The work is troublesome, and the subsequent time and energy loss can be caused.
Therefore, the prior art mainly has the following problems:
1. the industry advantages specific to DWG files cannot be retained using PDF or other format files. The DWG has spatial concepts, while the PDF and other formats may not.
2. The use of PDF or other format files cannot meet the requirements of certain industries for printing. For example, the railway design industry needs to print a drawing similar to a reel, but PDF or other formats cannot be realized.
3. The use of DWG can present a versioning problem for the parser program on which the display graphics depend, and requires versioning when used.
4. When DWG is used, external data are sometimes excessive, designers need to compare and search corresponding external applications one by one, the external applications are converted into internal applications through some technical means, or the external applications are directly packaged together, and the workload is increased additionally.
Disclosure of Invention
The invention mainly solves the problems that a complex graph entity in DWG is converted into a simple graph entity, a user-defined graph entity is converted into a simple graph entity, an external graph entity is converted into an internal simple graph entity, and some DWG cache graph entities can be converted into internal simple graph entities, so that the complex drawing is simplified, the energy of later-period DWG file maintenance is reduced, and a great deal of cost is saved for DWG electronic delivery.
The invention adopts the following technical scheme to achieve the purpose. The utility model provides a graphics regeneration technique based on DWG, includes regeneration processing module, its characterized in that, graphics traversal module, figure classification module, figure drawing module, figure cutting module and the figure regeneration module among the regeneration processing module connect gradually, its step as follows:
1) Setting a public drawing interface: the method is used for transmitting the data into the interior of the graph entity, obtaining a graph drawing method, reconstructing one or more new simple graph entities in the graph drawing method and replacing the original complex graph entities;
2) Setting a drawing style interface: the system is used for transmitting information of a layer, a graph color and a graph line type in graph drawing;
3) Setting a geometric cutting interface: the cutting function of the graph is realized, and the original effect is restored;
4) Setting a regeneration data interface: regenerating the graph drawing data into a graph entity, and adding the graph entity into a regenerated file;
filtering out all graphic entities needing to be processed through a graphic classification module, and transmitting the graphic entities to a graphic drawing module; the graph drawing module constructs a graph style interface and calls a public drawing interface of an entity; and the entity calls the graph clipping module and the graph regeneration module in the graph drawing process, so that a regenerated simple graph entity is obtained.
Further, the complex graphic entity refers to a custom graphic entity developed by a third party company, that is: the graphics entities in the DWG are expanded for specific industries, and all the graphics entities need to be realized by a third party company through specific technologies in the DWG and customized graphics entity technologies.
Further, the common drawing interface includes: drawing circles, drawing arcs, drawing polylines, drawing polygons, drawing meshes, drawing surfaces, drawing characters, drawing straight lines, drawing rays, and drawing multiple line segments.
A processing flow of a DWG-based graph reproduction technology comprises the following steps: loading a DWG original file into a CAD program by a complex graph entity through data loading, initializing a regeneration data interface to enter a public drawing interface, traversing all the graph entities, and judging whether the graph needs to be regenerated or not; if the graphic is the graphic to be reproduced, the constructed reproduced data interface is transmitted through the drawing graphic; the graphic entity calls the constructed public drawing interface to redraw, and performs graphic cutting and graphic style processing; then calling a method for drawing a straight line in the public drawing interface according to the method to be drawn by the graphic entity; and replacing the original graphic entity by a new straight line, and inserting the new straight line into the file after DWG regeneration, so that the original complex graphic entity is converted into a simple graphic entity.
Aiming at the urgent need of electronic image examination, the invention provides a scheme capable of solving the problem of complete browsing of a drawing in DWG (discrete wavelet transform), a simple graphic entity is filtered out through the judgment of a graphic type, a complex entity and a custom entity developed by a third party company are left, and then a pre-constructed graphic drawing method (comprising a straight line drawing method, a circle drawing method and the like) is transmitted through a drawing interface of a graphic, so that the graphic entity can call the pre-constructed method to carry out self-drawing. The drawing can be decomposed into simple figure entity in DWG, has realized can both browsing needs in the DWG view ware of each version, has liberated the effort of designer later maintenance DWG file, has saved a large amount of costs for DWG electronization is delivered.
Drawings
FIG. 1 is a block diagram of the present invention;
FIG. 2 is a flow chart of the regeneration process of the present invention.
Detailed Description
The invention is further illustrated by the following figures and examples. See fig. 1 and 2. A DWG-based graph regeneration technology comprises a regeneration processing module 10, wherein a graph traversal module 1, a graph classification module 2, a graph drawing module 3, a graph cutting module 4 and a graph regeneration module 5 in the regeneration processing module 10 are sequentially connected, and the DWG-based graph regeneration technology comprises the following steps:
1) Setting a public drawing interface: the method is used for transmitting the data into the interior of the graphic entity, obtaining a graphic drawing method, reconstructing one or more new simple graphic entities in the drawing method and replacing the original complex graphic entities;
2) Setting a drawing style interface: the graphic layer, graphic color and graphic line type information are transmitted in the drawing;
3) Setting a geometric cutting interface: the cutting function of the graph is realized in the interface, and the original effect is restored;
4) Setting a regeneration data interface: regenerating the graph drawing data into a graph entity, and adding the graph entity into a regenerated file;
all the graphic entities to be processed are filtered out by the graphic classification module 2 and are transmitted to the graphic drawing module 3. The graphic drawing module 3 constructs a graphic style interface and calls a public drawing interface of the graphic entity. And calling the graph clipping module 4 and the graph regeneration module 5 in the drawing process of the graph to obtain a regenerated simple entity.
Custom graphic entities developed by third party companies: the method is characterized in that a graph entity in the DWG is expanded for a specific industry, and the graph entity is realized by a third party company through a specific technology and a customized graph entity technology in the DWG.
The public drawing interface includes: drawing a circle, drawing an arc, drawing a multi-segment line, drawing a polygon, drawing a grid, drawing a surface, drawing a character, drawing a straight line, drawing a ray and drawing a plurality of line segments.
A processing flow of a DWG-based graph reproduction technology comprises the following steps:
after the complex graphic entity loads the DWG original file 22 into the CAD program through the data loading 21, whether the graph 26 needs to be regenerated is judged by initializing the regeneration data interface 23 and entering the common drawing interface 24, and then traversing all the graphic entities 25. If the graphic is a graphic to be reproduced, the constructed reproduction data interface is transferred through the drawing graphic 27. The graphics entity calls the constructed common drawing interface 24 for redrawing and graphics clipping and processes the graphics style 28. The method of drawing the line 29 in the common drawing interface is then called according to the method that the graphic entity needs to draw. The original complex graphic entity is converted into a simple graphic entity by constructing a new straight line to replace the original graphic entity and inserting the new straight line into the DWG reproduced file 30.
After the data loading 21, the DWG original file 22, the initialization regeneration data interface 23, the public drawing interface 24, the traversal of all the graphic entities 25, the judgment of whether the graphic 26 needs to be regenerated or not, the drawing of the graphic 27, the cutting of the graphic region and the processing of the graphic pattern 28, the drawing of the straight line 29 and the flow processing of the DWG regenerated file 30, the original complex graphic entities can be seen, and the stair entities and the window entities are converted into simple graphic entities.
Example (b): the application of the invention to a certain project in various electronic examination drawings is specifically explained as an implementation case:
the user environment is as follows: designers install various AutoCAD versions or domestic CAD software and successfully install the golden grid drawing plug-in.
User requirements: a finished DWG drawing file designed by a project related designer is delivered to a specially-assigned person to be collected and arranged into a set of project drawings by a design institute. And the electronic drawing is used as a part of an electronic drawing review material and is sent to a drawing review organization for review.
Description of the properties: there is a certain amount of time consumption due to the need to traverse and calculate the graph of the DWG drawing, but these costs are much lower than the labor cost.
The existing process comprises the following steps: and collecting finished drawings designed by related designers by a design institute, packaging the finished drawings into a project drawing file, and delivering the project drawing file to a drawing organization for auditing. The examiner of the examination organization examines the DWG drawing file on his computer.
The prerequisite for review by the reviewer is that the DWG drawing must be able to be read in its entirety.
The full read meaning includes: 1. the font of the drawing can be normally displayed and can not be displayed as blank, question mark or messy code; 2. the external reference file of the reference must have, and cannot therefore result in missing parts of the content; 3. the customized entity content generated by the third-party plug-in must be normally visible, and the content cannot be invisible or abnormal in display due to the fact that the third-party plug-in is not installed or the version of the third-party plug-in is wrongly installed. In the process of drawing examination, the situation that a drawing is incomplete due to the fact that special font files, external reference files, third-party plug-in drawing and the like are used in DWG drawings is likely to cause the situation that a design institute is required to supplement and provide necessary files, and therefore extra labor cost is increased.
The process after the invention is used: the designer uses AutoCAD software to design on a computer. After the design is finished, the designer selects the golden check drawing function on the AutoCAD. The program automatically completes the subsequent processing according to the method of the invention to generate the DWG regeneration file. And collecting DWG regenerated drawings designed by related designers by a design institute, packaging the DWG regenerated drawings into project drawing files, and delivering the project drawing files to a picture auditing mechanism for auditing. The examiner of the examination organization installs the golden grid picture insert and examines the DWG drawing file on his computer.
And (3) effect comparison: the DWG file after regeneration treatment has about 10% of floating compared with the original file size. However, in the application of the examination drawing, the original drawing can be completely read by the examination drawing computer without installing various complex plug-ins. While a previously constructed method is called, a new simple graphical entity is regenerated in the method according to the current call. And adding a new entity into the current DWG file to replace the previous complex graph entity. And generating a new DWG reproduction graphic file after the completion. The reading integrity of the DWG file in the electronic delivery process can be maximally guaranteed.

Claims (4)

1. The utility model provides a graphics regeneration technique based on DWG, includes regeneration processing module, its characterized in that, graphics traversal module, figure classification module, figure drawing module, figure cutting module and the figure regeneration module among the regeneration processing module connect gradually, its step as follows:
1) Setting a public drawing interface: the method is used for transmitting the data into the interior of a graphic entity, taking a graphic drawing method, reconstructing one or more new simple graphic entities in the graphic drawing method and replacing the original complex graphic entities;
2) Setting a drawing style interface: the system is used for transmitting information of a layer, a graph color and a graph line type in graph drawing;
3) Setting a geometric cutting interface: the cutting function of the graph is realized, and the original effect is restored;
4) Setting a regeneration data interface: regenerating the graph drawing data into a graph entity, and adding the graph entity into a regenerated file;
filtering out all graphic entities needing to be processed through a graphic classification module, and transmitting the graphic entities to a graphic drawing module; the graph drawing module constructs a graph style interface and calls a public drawing interface of an entity; and the entity calls the graph clipping module and the graph regeneration module in the graph drawing process, so that a regenerated simple graph entity is obtained.
2. The DWG-based graphics rendering technique of claim 1, wherein the complex graphics entity is a custom graphics entity developed by a third party company, namely: the graphics entities in the DWG are expanded for specific industries, and all the graphics entities need to be realized by a third party company through specific technologies in the DWG and customized graphics entity technologies.
3. The DWG-based graphics rendering technique of claim 1, wherein the common drawing interface comprises: drawing circles, drawing arcs, drawing polylines, drawing polygons, drawing meshes, drawing surfaces, drawing characters, drawing straight lines, drawing rays, and drawing multiple line segments.
4. A process flow for DWG-based graphics rendering techniques according to claim 1, characterized by the steps of: loading a DWG original file into a CAD program by a complex graph entity through data loading, initializing a regeneration data interface to enter a public drawing interface, traversing all the graph entities, and judging whether the graph entities need to be regenerated or not; if the graphic entity needs to be regenerated, the constructed regeneration data interface is transmitted through the drawing graphic; the graphic entity calls a constructed public drawing interface to redraw, and performs graphic cutting processing and graphic style processing; then calling a method for drawing a straight line entity in the public drawing interface according to the method for drawing the graphic entity; and replacing the original graphic entity by a new linear entity, and inserting the new linear entity into the DWG regenerated file to convert the original complex graphic entity into a simple graphic entity.
CN201811527799.4A 2018-12-13 2018-12-13 DWG-based graph regeneration technology Active CN109657324B (en)

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 CN109657324A (en) 2019-04-19
CN109657324B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN109657324A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN110245368B (en) Structured processing and storage method of BIM data
CA2124603C (en) Method and apparatus for operating on the model data structure of an image to produce human perceptible output in the context of the image
AU2008209631B2 (en) Method for emphasizing differences in graphical appearance between an original document and a modified document with annotations
EP2080167B1 (en) System and method for recovering three-dimensional particle systems from two-dimensional images
KR100503789B1 (en) A rendering system, rendering method, and recording medium therefor
CN110929310A (en) Cloud drawing intelligent generation and editing method
CN110008366B (en) Construction drawing previewing method and system
CN109410346B (en) System and method for editing three-dimensional building model on line
CN110096275B (en) Page processing method and device
CN110415319B (en) Animation production method and device based on PPT, electronic equipment and storage medium
KR20080022591A (en) Offline optimization pipeline for 3d content in embedded devices
CN102129718A (en) Undistorted heterogeneous CAD model conversion method
Frey Medit: An interactive mesh visualization software
CN104346390A (en) Method and device for forming word stock
CN102306143A (en) Method and system for generating and editing PDF (portable document format) document
CN109657324B (en) DWG-based graph regeneration technology
KR101817298B1 (en) Method for generating 3D picture
CN112784330A (en) IBIM-based multi-source graphic processing method
CN109933628A (en) A kind of ETL designer and its Photographing On-line method based on mxgraph
CN109858059B (en) Application method of virtual reality technology based on CAD (computer-aided design) super-large model in hydropower station simulation
WO2024139387A1 (en) Digital twin loading method and related device
CN116991795B (en) Automatic light-weight processing method and system for three-dimensional model
US20140198111A1 (en) Method and system for preserving a graphics file
CN115859412B (en) Curtain wall rapid generation method, device and equipment based on BIM
CN111737785A (en) Revit and CAD data interaction method, device and system

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