CN102184299A - Model conversion method and system from CAD (Computer Aided Design) system to three-dimensional checking system - Google Patents

Model conversion method and system from CAD (Computer Aided Design) system to three-dimensional checking system Download PDF

Info

Publication number
CN102184299A
CN102184299A CN 201110131011 CN201110131011A CN102184299A CN 102184299 A CN102184299 A CN 102184299A CN 201110131011 CN201110131011 CN 201110131011 CN 201110131011 A CN201110131011 A CN 201110131011A CN 102184299 A CN102184299 A CN 102184299A
Authority
CN
China
Prior art keywords
information
type
model
file
engineering
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
CN 201110131011
Other languages
Chinese (zh)
Other versions
CN102184299B (en
Inventor
唐卫清
周剑
李士才
周肖彬
黄晓剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhongke Fulong Intelligent Technology Co., Ltd
Original Assignee
Beijing Zhongke Fulong Computer 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 Beijing Zhongke Fulong Computer Technology Co Ltd filed Critical Beijing Zhongke Fulong Computer Technology Co Ltd
Priority to CN201110131011A priority Critical patent/CN102184299B/en
Publication of CN102184299A publication Critical patent/CN102184299A/en
Application granted granted Critical
Publication of CN102184299B publication Critical patent/CN102184299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a model conversion method and system from a CAD (Computer Aided Design) system to a three-dimensional checking system, relating to the technical field of three-dimensional checking technologies. The method comprises the following steps of: acquiring type information in a model from a type definition file; establishing an intermediate file and writing model information and design condition information into the intermediate file; traversing all types in the CAD model and writing classification information and engineering attribute meta-information to the intermediate file; traversing all objects in the CAD model and classifying the objects according to the types; outputting engineering information, topological information and geometric information for the objects one by one according to the types; constructing a scene tree from the geometric information and the topological information stored by the intermediate file; and constructing a content classification tree from the classification information and the engineering information stored by the intermediate file. The reconstructed model can support the three-dimensional checking system to finish main functions under the conditions of large patch data quantity, complex topology, complex classification and large engineering data quantity.

Description

Examine the model conversion method and the system of system to three-dimensional school from CAD system
Technical field
The present invention relates to three-dimensional school and examine technical field, particularly a kind of model conversion method and system from CAD system careful system to three-dimensional school based on intermediate file.
Background technology
In order to shorten the design cycle, improve design efficiency, to reduce design cost, the Design Mode of process plant gradually by traditional serial or half parallel schema to many design team, multi-specialized participation, cross-region, distributed parallel cooperation Design Mode change.In the parallel cooperation design of process plant, should satisfy of the designing requirement of other specialty during each Specialty Design at aspects such as spatial placement, process conditions, operation maintenance, the requirement of oneself again other specialties is proposed.After design finishes, the auditor will examine each professional design result, so that in time find design mistake in each specialty and the design conflicts between each specialty, and examination result returned to the designer of relevant speciality, this process is called the school and examines.Improve the school and examine efficient, can stay the design phase to more problem, reduce returning to work of construction stage, and problems such as the fund of bringing waste, cycle stretch-out, therefore significance is arranged for improving process plant design-build efficient.
With traditional careful comparing in the school based on two-dimentional drawing, utilize computing machine to carry out three-dimensional school and examine the working strength that can reduce audit crew, shorten the school and examine the time, improve the discovery rate of design mistake and design conflicts.Therefore, three-dimensional school is examined becomes the developing direction that the school is examined.External Large-scale CAD manufacturer has released at the school of own CAD series of products and has examined software, as NavisWorks, SmartPlant Review and PDMS Review etc., and software is examined in the domestic school that does not also have independent intellectual property right at present, and is still blank to the research that the three-dimensional school of process plant is examined.
The CAD system difference that (such as pipeline, structure, HVAC, electric etc.) uses because each design specialist, cause each Specialty Design model data form inconsistent, this model conversion method that requires to examine towards three-dimensional school must have versatility, promptly can be never with deriving required design information in the CAD system, with reconstruction model.After the design information of a plurality of specialties all imports the careful system in three-dimensional school, the systems face quantity of information is huge, problems such as message structure complexity, this model conversion method that requires to examine towards three-dimensional school must have validity, and the model that reconstructs can support three-dimensional school to examine the efficient operation of each function of system (real time roaming, attribute query, conditional search, collision detection etc.).
Obviously, also do not have now disclosed model conversion method can solve and examine problems such as the CAD system data layout that exists the system model conversion is inconsistent, design information is numerous and diverse from CAD system to three-dimensional school, therefore need a kind of general, examine the model conversion method of system to three-dimensional school from CAD system efficiently.
Summary of the invention
(1) technical matters that will solve
The objective of the invention is how to provide a kind of model conversion scheme,, cause the inconsistent problem of each Specialty Design model data form to solve the CAD system difference that each design specialist is used from CAD system careful system to three-dimensional school.
(2) summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of model conversion method from CAD system careful system to three-dimensional school based on intermediate file, may further comprise the steps:
S1: obtain correlation type information the cad model that needs to derive from the type definition file; The type definition file adopts the XML form, and its content comprises corresponding relation, the hierarchical relationship between type, engineering attribute metamessage and the position of position, type identification and the typonym of type identification in the object extension data;
S2: set up intermediate file based on database, write model information, design conditions information to intermediate file, model information mainly comprises model format, model version, model unit, and the design conditions information spinner will comprise at major name, this professional object that relates to, the text description of design conditions;
S3: all types in the traversal cad model writes classified information and engineering attribute metamessage to intermediate file;
S4: all objects in the traversal cad model, by type with object class; The engineering information, topology information, geological information of exporting each object more by type are in intermediate file;
S5: make up the scene tree that is used for pattern description the geological information of preserving from middle file, the topology information, scene tree adopts the organizational form of Octree;
S6: make up the classifying content tree that is used for attribute description the classified information of preserving from middle file, the engineering information.
Wherein, intermediate file is a database file among the described step S2, comprises Meta table, Condition table, Category table, Property_* table, Object table, Graph table; Meta table descriptive model information, the Condition table is described design conditions information, Category table interpretive classification information, and the Property_* table is described engineering information, the corresponding relation of Object table description object and type, engineering attribute, geological information, the topology information of Graph table description object; In step S2, set up Meta table, Condition table, Category table, Object table, Graph table.
Wherein, described Meta table comprises former cad model file layout (Magic), model version (Version), the used unit (Unit) of model; Condition table comprises design conditions id (COID), at major name (SubjectName), this professional object (ConditionOID) that relates to, the text description (Description) of design conditions; The engineering attribute table id (only effective to the leaf type) at object place (PDID) under the parent type id (ParentCID) of the id (CID) of Category table containing type, the title (Name) of the type, the type, the type; * refers to engineering attribute table id in the Property_* table, and the Property_* table comprises the id (PID) and the engineering attribute (different and different with type) of attribute; The Object table comprises id (OID), the pairing type id of this object (CID), the pairing attribute id of this object (PID) of object; The Graph table comprises the id (OID) of object, the color (Color) of this object, the AABB bounding box (BBOX) of this object, the object id (LinkOID) that this object connected, the volume elements collection (DATA) that this object comprised.
Wherein, volume elements is divided into general volume elements and special volume elements; General volume elements has three kinds: shell (Shell), grid (Mesh), polygon (Polygon); Special volume elements is divided into: cylinder, bevel cylinder, polygon prism, eccentric round platform, concentric round platform, hemispherical dome, rectangular cross section platform, rectangular parallelepiped, circular cross section annulus, rectangular cross section annulus, ball, right angle sphenoid, the shape of a saddle, ellipsoidal head; Each volume elements comprises the required parameter information of generation tri patch, stores with binary mode in database.
Wherein, described step S3 specifically may further comprise the steps:
S31: fill in the Category table;
S32: judge whether the type is the leaf type, promptly not subdivisible type.If then continue; If not, then finish;
S32: judge whether its corresponding Property_* table is set up.If not, then build it; If then finish.
Wherein, described step S4 comprises: carry out following steps for each object in the cad model:
S41: fill in the Object table;
S42: fill in corresponding Property_* table;
S43: travel through the entity (Entity) of this object correspondence, extract the volume elements in the entity, after traversal finishes, fill in the Graph table.
Wherein, described step S5 comprises:
S51: traversal Graph table;
S52: set up Octree according to BBOX;
S53: set up topology connection between object according to LinkOID;
S54: the volume elements that forms each object according to data among the Data;
S55: each volume elements forms tri patch according to its parameter.
Wherein, scene tree adopts the Octree organizational form, and each node adopts the AABB bounding box.
Wherein, described step S6 comprises:
S61: traversal Category table;
S62: set up the type hierarchy structure according to CID field and ParentCID field in the Category table;
S63: traversal Object table;
S64: according to CID with object class.
Wherein, in the classifying content of the described structure tree, object is deposited by type in the classifying content tree; Engineering attribute information is not directly read in internal memory, but is placed in the database; When the engineering attribute of certain object of needs, checking storehouse obtains; If in the time of will inquiring about the geometric figure of certain object, by object id (OID) search scene tree.
The present invention also provides a kind of model conversion system from CAD system careful system to three-dimensional school, comprising:
Model is derived module, is positioned at CAD system, realizes by the development interface that CAD system provides.Be used to read the content of type definition file, according to type definition document analysis cad model, extract classified information, engineering information, topology information, geological information in the cad model, and with model information (model version, model format, model institute applying unit), design conditions information (at major name, this professional object that relates to, the text description of design conditions) exports to intermediate file in the lump;
The intermediate file administration module is used for data in inquiry, increase, modification, delete database Meta table, Condition table, Category table, Property_* table, Object table, the Graph table;
The model reconstructed module is positioned at three-dimensional school and examines system, is used for the canned data from middle file institute, reconstructs the pattern description and the attribute description of model.
Wherein, described model derivation module comprises:
Type definition file read module is used for the type definition file of parsing XML format, obtains the position of type id in the object extension data, the information such as typonym, the hierarchical relationship between type, engineering attribute metamessage and position of type id;
Classified information derives module: it is all types of to be used for traveling through cad model, with level relation and the pairing attribute metamessage of leaf type between type id, typonym, type, exports to intermediate file;
Engineering information is derived module: be used for the growth data of reading object, type under the object and each data of engineering attribute are exported to intermediate file;
Topology information derives module: be used to travel through the object that certain object connects, the id of connecting object is exported to intermediate file;
Geological information is derived module: be used to travel through all entities (Entity) of certain object, get volume elements in the entity, the AABB bounding box of calculating object exports to intermediate file with color, AABB bounding box, the volume elements information of object.
Wherein, described model reconstructed module comprises:
The pattern description reconstructed module is used to make up scene tree, how much demonstrations of implementation model; From middle file, extract topology information, geological information,, can improve rendering efficiency according to the scene tree of AABB bounding box structure based on Octree; Generate the tri patch of each object according to the parameter information in the volume elements;
The attribute description reconstructed module is used for the content construction classification tree, can check the classification of each object and the engineering attribute of object; From middle file, extract classified information, set up the type hierarchy structure according to CID and ParentCID, according to OID and CID with object class; For reducing memory consumption, engineering attribute still is placed in the database, and as required, by object id (OID), checking storehouse obtains.
(3) beneficial effect
The model conversion method from CAD system careful system to three-dimensional school based on intermediate file of the present invention has following beneficial effect:
(1) the model deriving method has versatility, by different type definition files, different Model Design information in the professional employed CAD system of difference can be comprised that classified information, engineering information, geological information, topology information export to intermediate file;
(2) intermediate file have flexibly, high efficiency, intermediate file adopts the database form, has characteristics such as data retrieval is accurate, access is convenient, the utilization of resources is reasonable, the data recovery is easy;
(3) be used for the scene tree of pattern description after the model reconstruct, it adopts the organizational form of Octree based on OO thought, uses the AABB bounding box, effectively improved scene rendering efficient, can satisfy three-dimensional school and examine the demand of system large-scale complex scene real time roaming function;
(4) be used for the classifying content tree of attribute description after the model reconstruct, in internal memory, deposit between type type information under the level relation and object, and engineering attribute leave still in the database, has effectively saved memory cost in.And object is deposited by type in the internal memory, has effectively improved the execution efficient that attribute query and conditional search function in the system are examined in three-dimensional school.
Description of drawings
Fig. 1 is the process flow diagram from CAD system model conversion method of careful system to three-dimensional school based on intermediate file of the present invention;
Fig. 2 is special volume elements synoptic diagram;
Fig. 3 is the annexation synoptic diagram of pipeline part;
Fig. 4 is the scene tree structural representation;
Fig. 5 is a classifying content tree construction synoptic diagram.
Embodiment
The present invention proposes model conversion method from CAD system careful system to three-dimensional school based on intermediate file.In general, CAD system is used for modelling, and contained contain much information and complicated is so speed is slow when model is browsed.It is read-only to information that system is examined in the school, can not change the original information of model, and generally only need figure, engineering, topology, classified information, and speed is very fast when browsing model.System is examined in common three-dimensional school to be had: NavisWorks, SmartPlantReview and PDMS Review.Method of the present invention utilize Object ARX for based on each professional CAD system of AutoCAD (as the pipe design system of auxilliary dragon, rich super electrical design system, the plumbing design system of great occasion etc.) provide model to derive plug-in unit, thereby realized the model export function; The design information of cad model is exported in the sqlite database, with this lightweight database as intermediate file; Utilize MFC and OpenGL to examine system in three-dimensional school the model recombination function is provided, make the school examine three-dimensional picture and attribute information that personnel can the real time inspection model.Be described as follows with example in conjunction with the accompanying drawings.
The present invention proposes a kind of model conversion method from CAD system careful system to three-dimensional school based on intermediate file, its flow process may further comprise the steps as shown in Figure 1:
S1: read in the type definition file, the type definition file adopts the XML form, and its content comprises corresponding relation, the hierarchical relationship between type, engineering attribute metamessage and the position of position, type id and the typonym of type id in the object extension data.Table 1 is the part of certain cad model type definition file, the level relation is between its type: pipeline={ pipe, valve, elbow }, valve={ straight-through valve, angle type valve, three-way valve }, straight-through valve={ stop valve, ball valve, non-return valve }, the also title of containing type id and the information such as position of type id in the object extension data in the table 1.Table 2 is attribute metamessages of stop valve in the type defined file, and the engineering attribute that stop valve comprises has pipe wire size, pipeline grade, size, end face type, structure type, pressure rating, material, weight etc.
Table 1
Figure BDA0000062181870000081
Table 2
Figure BDA0000062181870000091
S2: set up intermediate file, and write model informations such as model format, model version, model unit to intermediate file, at major name, this professional object that relates to, the design conditions information such as text description of design conditions.Model format refers to the form of former cad model, as DWG; Model unit comprises: millimeter (mm), centimetre (cm), decimetre (dm), rice (m), km (km), inch (in), foot (ft), mile (mile) etc.Design conditions information is certain design specialist to the relevant design condition that other design specialist proposed.Owing to need to adopt a certain main equipment, ground load-bearing requirement is proposed as mechanical discipline for structure discipline.The database file of the described establishment of development interface using sqlite and provide is provided intermediate file.In this database, created the Meta table, the Condition table that is used to describe design conditions that are used for descriptive model information, be used for interpretive classification information Category table, be used for description object and type and engineering attribute corresponding relation the Object table and be used for the geological information of description object and the Graph of topology information shows.Each list structure is as follows:
Table 3 Meta table
Field name Field type Key Describe
?Dummy integer PK?check(1) Guarantee that this table only has a record
?Magic text The identification document form
?Version integer The sign model version
?Unit text The used unit of sign model
Table 4 Condition table
Field name Field type Key Describe
COID(PK) integer ?PK Design conditions id
SubjectName text At major name
ConditionOID 10*integer The professional object id of this that relates to is no more than 10 objects
Description text The text description of design conditions
Table 5 Category table
Field name Field type Key Describe
CID Integer PK The id of each type
Name Text The title of each type
ParentCID Integer FK(Category.CID) Parent type id
PDID Integer The attribute metamessage of all object correspondences under the type (only effective) to the leaf type
Table 6 Object table
Field name Field type Key Describe
OID Integer PK The id of each object
CID Integer FK(Category.CID) The pairing type id of each object
PID Integer FK(Property_*.PID) The pairing attribute id of this object
Table 7 Graph table
Field name Field type Key Describe
OID integer PK?FK(Object.OID) The id of each object, each object all has the pattern description of oneself
Color integer Form with 3 byte is preserved rgb value, and each component all is 0-255
BBOX 2*3*real The AABB bounding box
LinkOID 8*integer The object that this object connected, linking number can be above 8
Data blob Store pairing all volume elements of this object with binary mode
In last table 3~7, PK represents major key, and FK represents external key.Each table can only have a major key, can have 0 to a plurality of external keys.Wherein, Data deposits pairing all the volume elements information of object with binary mode in the Graph table.Volume elements is divided into general volume elements and special volume elements; General volume elements has three kinds: shell (Shell), grid (Mesh), polygon (Polygon); Special volume elements is divided into: cylinder, bevel cylinder, polygon prism, eccentric round platform, concentric round platform, hemispherical dome, rectangular cross section platform, rectangular parallelepiped, circular cross section annulus, rectangular cross section annulus, ball, right angle sphenoid, the shape of a saddle, ellipsoidal head (successively shown in Fig. 2 (a)~(n)); Each volume elements comprises the required parameter information of generation tri patch, as " ball: center, radius ".
S3: according to the information in the type definition file, to the traversal all types that divides, write the engineering attribute metamessage of classified information and leaf type to intermediate file by total, for every type of execution following steps:
(1) in Category table, fills in CID, Name, the PDID field of this type, fill in CID, the ParentCID field of subtype;
(2) judge whether this type has subtype.If do not have, then continue; If have, then finish;
(3) whether the Property_* table of judging this type correspondence is set up.If not, then according in the type definition file<property defined field name and field type set up the Property_* table; If then finish.
Wherein, * refers to engineering attribute table id in the table 8 (Property_* table), and the engineering attribute metamessage of each object is identical under the same leaf type, is stored in the same engineering attribute table:
Table 8 Property_*
Field name Field type Key Describe
PID Integer ?PK The id of each attribute
... ... ?... ...
S4: all objects in the traversal cad model, by type with object class, as stop valve={ stop valve 1, stop valve A2, stop valve A3...}; By type each object is carried out following steps again:
(1) fills in the Object table, i.e. each field of in the Object table, filling in this object;
(2) the engineering attribute value of in the Property_* table, filling in this object, the purpose of this step is the engineering information of record object;
(3) obtain the object color, the OID and the Color field of in the Graph table, filling in this object;
(4) travel through the object that this object connects, as shown in Figure 3, valve B is connected with pipe A1, pipe A2; The LinkOID field of filling in this object in the Graph table, the purpose of this step are the topology informations of record object;
(5) travel through the entity (Entity) that this object comprises, (in Fig. 3, the volume elements that valve B comprises is the volume elements in the extraction entity: 9 cylinders, 1 circular cross section annulus), (Oriented Bounding Box OBB), writes down the maximum point and the smallest point of bounding box to calculate directed bounding box; The BBox and the Data field of in the Graph table, filling in this object.
Step (3), (5) purpose are the geological informations of record object.
S5: make up scene tree the geological information of the object of preserving from middle file, the topology information based on Octree.Scene tree structure such as Fig. 4, wherein scenario node comprises an AABB bounding box, and its value is the union of its child node AABB bounding box; Object node comprises the graphical information of object id and object; The volume elements node comprises tri patch.Scene tree is directly sent into render engine (the present invention adopts OSG), obtains graphic presentation; The concrete construction step of scene tree is as follows:
(1) traversal Graph shows, and reads the data of each object;
(2) set up the institutional framework of Octree according to each object AABB bounding box;
(3) set up topology connection between object according to annexation between object;
(4) each volume elements of comprising of object forms tri patch according to its parameter.
S6: make up the classifying content tree that is used for attribute description the classified information of preserving from middle file, the engineering information.Classifying content tree construction such as Fig. 5, wherein object is deposited by type, and engineering attribute does not directly read in internal memory, but is placed in the database.The concrete construction step of classifying content tree is as follows:
(1) traversal Category table;
(2) set up the type hierarchy structure according to CID field and ParentCID field in the Category table;
(3) traversal Object table;
(4) according to the CID field with object class.
If in the time of will inquiring about the geometric figure of certain object, ask friendship to carry out graphical query by ray.At first, the scenario node AABB bounding box of scene tree is asked friendship in ray and the information model.If non-intersect, then this node traversal stops; If intersect, then travel through the child node of this node; Ray and Object node AABB bounding box are asked friendship then.If non-intersect, then traversal stops; If intersect, then travel through the volume elements node under this object; Then, ray and volume elements node AABB bounding box are asked friendship.If non-intersect, then traversal stops; If intersect, then travel through the tri patch of this volume elements node correspondence; Ultimate ray and triangular plate are asked friendship.If non-intersect, then traversal stops; If intersect, then write down the OID of the affiliated object of this volume elements, traversal stops.
When needs are inquired about the engineering attribute of certain object,, can obtain the type (cid) of this object from the classifying content tree according to object id (OID); Inquiry Object table obtains pid; According to cid, inquiry Category table obtains pdid; According to pid, inquiry Property_* shows, and obtains the engineering attribute of this object.When needs are inquired about qualified object set, at first determine querying condition and query context (that is query context object set OID, by the user Mid_user), from the classifying content tree, can obtain CID Mid_userAccording to CID Mid_user, inquiry Category table obtains PDID Mid_userTo each pdid Mid_user∈ PDID Mid_user, (Object.CID=Category.CID, destination object collection OID is obtained in Object.PID=Property_%1%.PID) executive condition inquiry to the inline table of Object table and Category table and Property_* Mid_temp_resultWith the OID that obtains Mid_temp_resultWith OID Mid_userAsk friendship, obtain qualified result object collection OID Mid_result
The present invention also provides a kind of model conversion system that examines system from CAD system to three-dimensional school, this system is based on the above-mentioned model conversion method of examining system from CAD system to three-dimensional school, this system comprises: model is derived module, is positioned at CAD system, realizes by the development interface that CAD system provides.Be used to read the content of type definition file,, extract classified information, engineering information, topology information, geological information in the cad model, and with model information, design conditions information export to intermediate file in the lump according to type definition document analysis cad model; The intermediate file administration module is used for data in inquiry, increase, modification, delete database Meta table, Category table, Property_* table, Object table, the Graph table; The model reconstructed module is positioned at three-dimensional school and examines system, is used for the canned data from middle file institute, reconstructs the pattern description and the attribute description of model.
Wherein, described model is derived module and is comprised: type definition file read module, the type definition file that is used for parsing XML format obtains the position of type id in the object extension data, the information such as typonym, the hierarchical relationship between type, engineering attribute metamessage and position of type id; Classified information derives module: it is all types of to be used for traveling through cad model, with level relation and the pairing attribute metamessage of leaf type between type id, typonym, type, exports to intermediate file; Engineering information is derived module: be used for the growth data of reading object, type under the object and each data of engineering attribute are exported to intermediate file; Topology information derives module: be used to travel through the object that certain object connects, the id of connecting object is exported to intermediate file; Geological information is derived module: be used to travel through all entities (Entity) of certain object, get volume elements in the entity, the AABB bounding box of calculating object exports to intermediate file with color, AABB bounding box, the volume elements information of object.
Wherein, described model reconstructed module comprises: the pattern description reconstructed module is used to make up scene tree, how much demonstrations of implementation model; From middle file, extract topology information, geological information,, can improve rendering efficiency according to the scene tree of AABB bounding box structure based on Octree; Generate the tri patch of each object according to the parameter information in the volume elements.The attribute description reconstructed module is used for the content construction classification tree, can check the classification of each object and the engineering attribute of object; From middle file, extract classified information, set up the type hierarchy structure according to CID and ParentCID, according to OID and CID with object class; For reducing memory consumption, engineering attribute still is placed in the database, and as required, by object id (OID), checking storehouse obtains.
Above embodiment only is used to illustrate the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; under the situation that does not break away from the spirit and scope of the present invention; can also make various variations and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (13)

1. the model conversion method from CAD system careful system to three-dimensional school is characterized in that, may further comprise the steps:
S1: obtain correlation type information the cad model that needs to derive from the type definition file;
S2: set up intermediate file, write model information and design conditions information to intermediate file;
S3: all types in the traversal cad model writes classified information and engineering attribute metamessage to intermediate file;
S4: all objects in the traversal cad model, by type with object class; Engineering information, topology information and the geological information of exporting each object more by type are in intermediate file;
S5: make up the scene tree that is used for pattern description in the geological information of the object of from middle file, preserving and the topology information;
S6: make up the classifying content tree that is used for attribute description in the classified information of from middle file, preserving, the engineering information.
2. the method for claim 1, it is characterized in that, among the described step S2, intermediate file is a database file, and the Graph of Object table, the geological information that is used for description object and the topology information of the corresponding relation that wherein comprise Meta table, the Condition table that is used to describe design conditions information, the Category table that is used for interpretive classification information, the Property_* table that is used to describe engineering information that are used for descriptive model information, is used for description object and type and engineering attribute shows.
3. method as claimed in claim 2 is characterized in that, described Meta table comprises former cad model file layout, model version and the used unit of model; Condition table comprises design conditions sign id, at major name, this professional object that relates to, the text description of design conditions; The engineering attribute table id at object place under the parent type id of the id of Category table containing type, the title of the type, the type, the type; * refers to engineering attribute table id in the Property_* table, and the Property_* table comprises the id and the engineering attribute of attribute; The Object table comprises id, the pairing type id of this object, the pairing attribute id of this object of object; The Graph table comprises the id of object, the color of this object, the AABB bounding box of this object, this volume elements collection that other object id and this object that object connected comprised.
4. method as claimed in claim 3 is characterized in that, volume elements is divided into general volume elements and special volume elements; General volume elements has three kinds: shell, grid and polygon; Special body is divided into: cylinder, bevel cylinder, polygon prism, eccentric round platform, concentric round platform, hemispherical dome, rectangular cross section platform, rectangular parallelepiped, circular cross section annulus, rectangular cross section annulus, ball, right angle sphenoid, the shape of a saddle and ellipsoidal head; Each volume elements comprises the required parameter information of generation tri patch, stores with binary mode in database.
5. method as claimed in claim 2 is characterized in that, described step S3 specifically may further comprise the steps:
S31: fill in the Category table;
S32: judge whether the type is the leaf type, promptly not subdivisible type; If then continue; Otherwise finish;
S32: judge that whether its corresponding Property_* table is set up, and if not, then sets up; If then finish.
6. method as claimed in claim 2 is characterized in that, engineering information, topology information and the geological information of exporting each object among the described step S4 more by type specifically comprises to the step of intermediate file:
S41: fill in the Object table;
S42: fill in the corresponding Property_* table of this object;
S43: travel through the entity of this object correspondence, extract the volume elements in the entity, after traversal finishes, fill in the Graph table.
7. method as claimed in claim 3 is characterized in that, described step S5 comprises:
S51: traversal Graph table;
S52: the AABB bounding box according to object is set up Octree;
S53: set up topology connection between object according to other object id that object connected;
S54: the volume elements that forms each object according to the volume elements intensive data;
S55: each volume elements forms tri patch according to its parameter.
8. method as claimed in claim 7 is characterized in that, scene tree adopts the Octree organizational form, and each node adopts AABB bounding box form in the scene tree.
9. method as claimed in claim 3 is characterized in that, described step S6 comprises:
S61: traversal Category table;
S62: set up the type hierarchy structure according to the id of type and the parent type id of type;
S63: traversal Object table;
S64: according to CID with object class.
10. method as claimed in claim 3 is characterized in that, in the constructed classifying content tree, object is deposited by type in the classifying content tree.
11. the model conversion system from CAD system careful system to three-dimensional school is characterized in that, comprising:
Model is derived module, is arranged in described CAD system, and the development interface that is used for providing by CAD system is realized; Be used to read the content of type definition file,, extract classified information, engineering information, topology information, the geological information of each object in the cad model, and with model information, design conditions information export to intermediate file according to type definition document analysis cad model;
The intermediate file administration module is used to edit the data among the intermediate file;
The model reconstructed module is arranged in described three-dimensional school and examines system, is used for the canned data from middle file institute, reconstructs the pattern description and the attribute description of model.
12. system as claimed in claim 11 is characterized in that, described model is derived module and is comprised:
Type definition file read module is used to resolve the type definition file, obtains the information of type id in the object extension data;
Classified information derives module, and it is all types of to be used for traveling through cad model, with level relation and the pairing attribute metamessage of leaf type between type id, typonym, type, exports to intermediate file;
Engineering information is derived module, is used for the growth data of reading object, and type under the object and engineering attribute are exported to intermediate file;
Topology information derives module, is used to travel through other object that object connected, and the id of other object of be connected to is exported to intermediate file;
Geological information is derived module, is used to travel through all entities of an object, gets volume elements in the entity, and the AABB bounding box of calculating object exports to intermediate file with the information of object.
13. system as claimed in claim 11 is characterized in that, described model reconstructed module comprises:
The pattern description reconstructed module is used to make up scene tree, the graphic presentation of implementation model; From middle file, extract topology information, geological information; Generate the tri patch of each object according to the parameter information in the volume elements;
The attribute description reconstructed module is used for the content construction classification tree, checks the classification of each object and the engineering attribute of object; From middle file, extract classified information.
CN201110131011A 2011-05-19 2011-05-19 Model conversion method and system from CAD (Computer Aided Design) system to three-dimensional checking system Active CN102184299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110131011A CN102184299B (en) 2011-05-19 2011-05-19 Model conversion method and system from CAD (Computer Aided Design) system to three-dimensional checking system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110131011A CN102184299B (en) 2011-05-19 2011-05-19 Model conversion method and system from CAD (Computer Aided Design) system to three-dimensional checking system

Publications (2)

Publication Number Publication Date
CN102184299A true CN102184299A (en) 2011-09-14
CN102184299B CN102184299B (en) 2012-10-24

Family

ID=44570476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110131011A Active CN102184299B (en) 2011-05-19 2011-05-19 Model conversion method and system from CAD (Computer Aided Design) system to three-dimensional checking system

Country Status (1)

Country Link
CN (1) CN102184299B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779175A (en) * 2012-06-26 2012-11-14 北京尔宜居科技有限责任公司 Method for processing image in CAD (Computer Aided Design) format by using data in XML (Extensive Makeup Language) format
CN104199659A (en) * 2014-08-28 2014-12-10 无锡梵天信息技术股份有限公司 Method and device for exporting model information capable of being identified by 3DMAX
CN104885074A (en) * 2012-10-12 2015-09-02 欧特克公司 Cloud platform for managing design data
CN105354230A (en) * 2015-09-30 2016-02-24 北京恒华伟业科技股份有限公司 Design result saving method and apparatus
CN106339565A (en) * 2016-09-23 2017-01-18 四川电力设计咨询有限责任公司 Method for converting COMOS data to PDMS data in pipeline design
CN106372334A (en) * 2016-09-01 2017-02-01 深圳市彬讯科技有限公司 CAD (Computer Aided Design) construction drawing one-click generation method based on Tumax floor plan
CN106528939A (en) * 2016-10-12 2017-03-22 国核电力规划设计研究院 Method and device for transforming civil engineering structure model in PDMS into data of XML format
CN106709163A (en) * 2016-12-06 2017-05-24 清华大学 Method for automatically converting complicated CAD three-dimensional model to monka geometry
CN106844879A (en) * 2016-12-29 2017-06-13 上海合科科技有限公司 Automobile chassis analysis model construction method
CN107194056A (en) * 2017-05-18 2017-09-22 四川电力设计咨询有限责任公司 The method that system diagram is verified with threedimensional model Auto-matching in pipe design
CN110096772A (en) * 2019-04-17 2019-08-06 大连理工大学 A kind of shape position error feature database method for building up of Aviation space flight shell structure
CN112418800A (en) * 2020-11-24 2021-02-26 武汉点源工程技术有限公司 Engineering digital integration platform and use method thereof
CN112560275A (en) * 2020-12-22 2021-03-26 中设数字技术股份有限公司 Two-dimensional three-dimensional real-time linkage on-line drawing annotation checking system and method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1881221A (en) * 2006-01-12 2006-12-20 西北工业大学 Transfer method from three-dimensional solid to standard technical layout in microelectromechanical system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1881221A (en) * 2006-01-12 2006-12-20 西北工业大学 Transfer method from three-dimensional solid to standard technical layout in microelectromechanical system

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779175B (en) * 2012-06-26 2014-12-10 北京尔宜居科技有限责任公司 Method for processing image in CAD (Computer Aided Design) format by using data in XML (Extensive Makeup Language) format
CN102779175A (en) * 2012-06-26 2012-11-14 北京尔宜居科技有限责任公司 Method for processing image in CAD (Computer Aided Design) format by using data in XML (Extensive Makeup Language) format
US10049014B2 (en) 2012-10-12 2018-08-14 Autodesk, Inc. Cloud platform for managing design data
CN104885074A (en) * 2012-10-12 2015-09-02 欧特克公司 Cloud platform for managing design data
CN110134642B (en) * 2012-10-12 2022-12-27 欧特克公司 Method, system, and computer readable medium for managing design data
CN110134642A (en) * 2012-10-12 2019-08-16 欧特克公司 Method, system and the computer-readable medium of management design data
CN104885074B (en) * 2012-10-12 2018-11-02 欧特克公司 The cloud platform of management design data
CN104199659A (en) * 2014-08-28 2014-12-10 无锡梵天信息技术股份有限公司 Method and device for exporting model information capable of being identified by 3DMAX
CN105354230A (en) * 2015-09-30 2016-02-24 北京恒华伟业科技股份有限公司 Design result saving method and apparatus
CN106372334A (en) * 2016-09-01 2017-02-01 深圳市彬讯科技有限公司 CAD (Computer Aided Design) construction drawing one-click generation method based on Tumax floor plan
CN106372334B (en) * 2016-09-01 2019-07-16 深圳市彬讯科技有限公司 A method of CAD construction drawing is generated based on one key of Tumax floor plan
CN106339565B (en) * 2016-09-23 2019-04-09 四川电力设计咨询有限责任公司 Method of the COMOS data to PDMS data conversion in pipe design
CN106339565A (en) * 2016-09-23 2017-01-18 四川电力设计咨询有限责任公司 Method for converting COMOS data to PDMS data in pipeline design
CN106528939A (en) * 2016-10-12 2017-03-22 国核电力规划设计研究院 Method and device for transforming civil engineering structure model in PDMS into data of XML format
CN106528939B (en) * 2016-10-12 2019-08-30 国核电力规划设计研究院 It is the method and device of XML format data by civil engineering structure model conversion in PDMS
CN106709163A (en) * 2016-12-06 2017-05-24 清华大学 Method for automatically converting complicated CAD three-dimensional model to monka geometry
CN106709163B (en) * 2016-12-06 2019-12-24 清华大学 Automatic conversion method from complex CAD three-dimensional model to Monte-card geometry
CN106844879A (en) * 2016-12-29 2017-06-13 上海合科科技有限公司 Automobile chassis analysis model construction method
CN107194056A (en) * 2017-05-18 2017-09-22 四川电力设计咨询有限责任公司 The method that system diagram is verified with threedimensional model Auto-matching in pipe design
CN107194056B (en) * 2017-05-18 2020-09-15 四川电力设计咨询有限责任公司 Method for automatically matching and checking system diagram and three-dimensional model in pipeline design
CN110096772A (en) * 2019-04-17 2019-08-06 大连理工大学 A kind of shape position error feature database method for building up of Aviation space flight shell structure
CN110096772B (en) * 2019-04-17 2022-10-25 大连理工大学 Method for establishing shape and position deviation feature library for aerospace thin shell structure
CN112418800A (en) * 2020-11-24 2021-02-26 武汉点源工程技术有限公司 Engineering digital integration platform and use method thereof
CN112560275A (en) * 2020-12-22 2021-03-26 中设数字技术股份有限公司 Two-dimensional three-dimensional real-time linkage on-line drawing annotation checking system and method

Also Published As

Publication number Publication date
CN102184299B (en) 2012-10-24

Similar Documents

Publication Publication Date Title
CN102184299B (en) Model conversion method and system from CAD (Computer Aided Design) system to three-dimensional checking system
Falcidieno et al. Automatic recognition and representation of shape-based features in a geometric modeling system
McGlinn et al. Interlinking geospatial and building geometry with existing and developing standards on the web
CN106709067A (en) Multi-source heterogeneous spatial data flow method based on Oracle database
CN103019728B (en) Effective complex report parsing engine and parsing method thereof
CN111191303A (en) BIM data processing method and device, electronic equipment and computer storage medium
CN109977162A (en) A kind of urban and rural planning data transfer device, system and computer readable storage medium
CN102609417A (en) Engine device and method for data integration and exchange of building information mode based on IFC (industry foundation classes) standards
CN102867066B (en) Data Transform Device and data summarization method
CN104392037B (en) City scene parameterization modeling system
CN113378011B (en) Construction method and system of complex product assembly digital twin body
CN114238488B (en) Multi-professional digital fruit integration and data interaction method and system
CN113570275A (en) Water resource real-time monitoring system based on BIM and digital elevation model
CN112579563B (en) Power grid big data-based warehouse visualization modeling system and method
CN110737729A (en) Engineering map data information management method based on knowledge map concept and technology
CN114048204A (en) Beidou grid space indexing method and device based on database inverted index
CN114004945A (en) Digital twin power grid system and method based on three-dimensional map
CN106326450A (en) Interaction method for realizing SCD (system configuration description) file sign-in and sign-off based on data integration
CN101447094B (en) Three-dimensional CAD model shape comparison method based on body space topological constraint
CN102722621A (en) Method for visualizing computed result of finite element method
de Hoop et al. Storage and manipulation of topology in Postgres
Bakalov et al. A network model for the utility domain
CN115858498A (en) Five-dimensional space-time distributed database construction method and device
CN113326278B (en) Forest resource one-map integrated updating method, system and storage medium
CN104750916A (en) Design resource integration system for designing virtual prototype of boiler

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200106

Address after: 100085, Beijing, Haidian District information road, No. 28, information building, block A, nine

Patentee after: Beijing Zhongke Fulong Intelligent Technology Co., Ltd

Address before: 100085, Beijing, Haidian District information road, No. 28, information building, block A, nine

Patentee before: Beijing Zhongke Fulong Computer Technology Co., Ltd.