CN113642056B - Parameterized component generation and modification method and device for MicroStation platform - Google Patents

Parameterized component generation and modification method and device for MicroStation platform Download PDF

Info

Publication number
CN113642056B
CN113642056B CN202110775008.5A CN202110775008A CN113642056B CN 113642056 B CN113642056 B CN 113642056B CN 202110775008 A CN202110775008 A CN 202110775008A CN 113642056 B CN113642056 B CN 113642056B
Authority
CN
China
Prior art keywords
data
data structure
geometric
structure object
elements
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
CN202110775008.5A
Other languages
Chinese (zh)
Other versions
CN113642056A (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.)
Anhui Water Conservancy And Hydropower Survey And Design Research Institute Co ltd
Original Assignee
Anhui Water Conservancy And Hydropower Survey And Design Research Institute 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 Anhui Water Conservancy And Hydropower Survey And Design Research Institute Co ltd filed Critical Anhui Water Conservancy And Hydropower Survey And Design Research Institute Co ltd
Priority to CN202110775008.5A priority Critical patent/CN113642056B/en
Publication of CN113642056A publication Critical patent/CN113642056A/en
Application granted granted Critical
Publication of CN113642056B publication Critical patent/CN113642056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Architecture (AREA)
  • Human Computer Interaction (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a parameterized component generation and modification method and device for a MicroStation platform, and relates to the technical field of secondary development. The invention creates non-graphic data elements corresponding to the three-dimensional parameterization component based on the step S4, creates data structure objects data1 and data2 in the steps S1, S2, S3 and S5, and stores binary data packets XA1 and XA2 after serialization of the data structure objects data1 and data2 on the non-graphic data elements in the steps S6 and S7 respectively. The combination of the three realizes that the non-graphic data element and the parameter attribute data thereof are not lost when the sub-element is locally modified, thereby avoiding the problem of losing the parameterization unit and the stored parameter attribute data thereof. And based on the serialization in the steps S6 and S7 and the inverse serialization in the steps K3 and K5, the data structure object containing any data type is serialized into binary system, so that attribute data fields containing conventional types such as string, vector and the like can be supported.

Description

Parameterized component generation and modification method and device for MicroStation platform
Technical Field
The invention relates to the technical field of secondary development, in particular to a parameterized component generation and modification method and device for a MicroStation platform.
Background
The latest Microstation basic platform has some simple parameterized design functions, but is difficult to realize a complex point model. Many specialized three-dimensional designs require secondary development of a large number of three-dimensional parameterized components and libraries of equipment models to support.
Three-dimensional parameterized components are typically composed of a plurality of geometric elements. The current state of the art commonly used in the industry is to package geometric elements into a three-dimensional parameterized component based on a single unit, storing all parameter attribute data on the unit.
However, when the unit-based parameterization component needs to locally modify the geometric figure element, the unit-based parameterization component needs to be unpacked, so that the parameterization unit and the stored parameter attribute data thereof are lost, and the parameter attribute data cannot be driven to the three-dimensional parameterization component.
Secondly, the MicroStation only supports converting data objects containing fields of simple value types (such as integer, floating point number, characters and character arrays) into binary data packets and storing the binary data packets on non-graphic data elements, and does not support attribute data fields containing conventional types such as string, vector and the like.
Disclosure of Invention
(one) solving the technical problems
Aiming at the defects of the prior art, the invention provides a parameterized component generating and modifying method and device for a MicroStation platform, which solve the problem that the parameter attribute data is lost when the existing parameterized component locally modifies elements.
(II) technical scheme
In order to achieve the above purpose, the invention is realized by the following technical scheme:
in a first aspect, a parameterized component generation method for a microstate platform is provided, the method comprising:
s1, acquiring all attribute parameter data of a parameterized component in a data structure object data2, creating all geometric figure elements { ei } of the parameterized component based on the attribute parameter data, and simultaneously obtaining a transformation matrix T1 of a first geometric figure element e 1;
s2, storing the transformation matrix T1 of the first graphic data element e1 obtained in the S1 into a data structure object data2;
s3, placing all the geometric figure elements { ei } at the position of the pointed point of the mouse, and adding all the geometric figure elements { ei } into a dgn file; after the geometry elements ei are added to the dgn file, the MicroStation platform assigns each geometry element ei a unique element Id;
s4, judging whether a non-graphic data element corresponding to the parameterized component exists or not; if not, creating a non-graphic data element; otherwise, executing S5;
s5, storing an element Id set of all geometric figure elements { ei } into a data structure object data1;
s6, serializing the data structure object data1 obtained in the S5 into a binary data packet XA1 and storing the binary data packet XA1 on a non-graphic data element;
s7, serializing the data structure object data2 obtained in the S2 into a binary data packet XA2 and storing the binary data packet XA2 on a non-graphic data element.
Further, serialization is based on an open source serialization library implementation.
In a second aspect, a parameterized component modification method for a microstate platform is provided, comprising:
k1, obtaining a parameterized component by using the generating method in the steps S1-S7;
k2, selecting any geometric figure element ei of the parameterized component to be modified;
k3, judging whether a non-graphic data element corresponding to the parameterized component exists or not;
if so, inversely sequencing the binary data packet XA1 stored on the non-graphic data element into a data structure object data1;
k4, according to the first element Id1 in the data structure object data1, acquiring a geometric figure element e1 corresponding to the element Id1 in the dgn file, and acquiring a transformation matrix T2 of the geometric figure element e 1;
k5, inversely sequencing the binary data packet XA2 stored on the non-graphic data element into a data structure object data2;
k6, extracting a transformation matrix T1 of a first geometric figure element e1 stored in the data structure object data2;
k7, modifying the attribute parameter data in the data structure object data2, and creating all new geometric figure elements { n_ei } of the parameterized component according to the modified attribute parameter data;
k8, traversing all new geometric figure elements { n_ei }, recording a transformation matrix T3 when traversing to a first geometric figure element n_e1, calculating a whole transformation matrix T, transforming all the new geometric figure elements { n_ei } to the correct positions by using the whole transformation matrix T, and adding the new geometric figure elements { n_ei } to a dgn file;
k9, storing the transformation matrix T3 into a data structure object data2;
k10, deleting the original geometric figure element { ei } from the dgn file according to the element Id set in the data structure object data1;
k11, storing the element Id set of all the new geometric figure elements { n_ei } obtained in the K8 into a data structure object data1;
k12, serializing the data structure object data1 in K11 and the data structure object data2 in K9 into binary data packet XA1 and binary data packet XA2, and updating onto the non-graphic data element.
Further, the determining whether the non-graphic data element corresponding to the parameterized component exists includes:
inverse-serializing binary data packet XA1 stored on the non-graphic data element into data structure object data1; if the data structure object data1 has an element Id set, the parameterization component is present on the corresponding non-graphic data element.
Further, the overall transformation matrix T is:
[T]=[T2]×[T1] -1
wherein [ T1 ]] -1 Representing the inverse of matrix T1.
Further, serialization and de-serialization are based on open source serialization library implementation.
In a third aspect, a parameterized component generating apparatus for a MicroStation platform is provided, the apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above generating method when executing the computer program.
In a fourth aspect, a parameterized component modifying apparatus for a MicroStation platform is provided, the apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the above modifying method when executing the computer program.
(III) beneficial effects
The invention provides a parameterized component generation method for a MicroStation platform. Compared with the prior art, the method has the following beneficial effects:
the invention creates non-graphic data elements corresponding to the three-dimensional parameterization component based on the step S4, creates data structure objects data1 and data2 in the steps S1, S2, S3 and S5, and stores binary data packets XA1 and XA2 after serialization of the data structure objects data1 and data2 on the non-graphic data elements in the steps S6 and S7 respectively. The combination of the three realizes that the non-graphic data element and the parameter attribute data thereof are not lost when the sub-element is locally modified, thereby avoiding the problem of losing the parameterization unit and the stored parameter attribute data thereof.
The invention is based on the serialization in the steps S6 and S7 and the inverse serialization technology in the steps K3 and K5, adopts the open-source serialization library CERAL developed based on C++ language to realize, supports serialization of data structure objects containing any data type (simple value type, string, vector and the like) into binary, and can support attribute data fields containing string, vector and the like in conventional types.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a method for generating a parameterized component according to embodiment 1 of the present invention;
fig. 2 is a schematic diagram of a modification method of the parameterized component in embodiment 3 of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention are clearly and completely described, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the application solves the problem of losing a parameterized unit and storage parameter attribute data thereof by providing a parameterized component generation method for a MicroStation platform.
In order to better understand the above technical solutions, the following detailed description will refer to the accompanying drawings and specific embodiments.
Example 1:
as shown in fig. 1, the present invention provides a parameterized component generating method for a MicroStation platform, the method comprising:
s1, acquiring all attribute parameter data of a parameterized component in a data structure object data2, creating all geometric figure elements { ei } of the parameterized component based on the attribute parameter data, and simultaneously obtaining a transformation matrix T1 of a first geometric figure element e 1;
the geometric figure element is a three-dimensional entity created based on the ParaSolid kernel technology of Siemens. The program creates geometric elements in memory based on attribute parameter data, with reference to the origin of coordinates of the MicroStation. When the geometry element is transferred from the MicroStation to the ParaSolid kernel, the ParaSolid kernel scales the element and reselects a point on the element as a reference point to translate the element. The transformation matrix stores scaling and translation information when the geometry elements transition from the MicroStation to the ParaSolid kernel space.
S2, storing the transformation matrix T1 of the first graphic data element e1 obtained in the S1 into a data structure object data2;
s3, placing all the geometric figure elements { ei } at the position of the pointed point of the mouse, and adding all the geometric figure elements { ei } into a dgn file; after the geometry elements ei are added to the dgn file, the MicroStation platform assigns each geometry element ei a unique element Id;
s4, judging whether a non-graphic data element corresponding to the parameterized component exists or not; if not, creating a non-graphic data element; otherwise, executing S5;
the non-graphical data elements, in the MicroStation platform, act as a carrier for storing data, and may be used to store binary data packets. It has no geometric data and cannot be displayed in a view.
S5, storing an element Id set of all geometric figure elements { ei } into a data structure object data1;
s6, serializing the data structure object data1 obtained in the S5 into a binary data packet XA1 and storing the binary data packet XA1 on a non-graphic data element;
s7, serializing the data structure object data2 obtained in the S2 into a binary data packet XA2 and storing the binary data packet XA2 on a non-graphic data element.
The serialization technology described in S6 and S7 is implemented by using an open source serialization library which is developed based on the C++ language.
The beneficial effects of this embodiment are:
according to the embodiment of the invention, based on the step S4, the non-graphic data elements corresponding to the three-dimensional parameterization component are created, the steps S1, S2, S3 and S5 create the data structure objects data1 and data2, and the steps S6 and S7 store binary data packets XA1 and XA2 after the data structure objects data1 and data2 are serialized on the non-graphic data elements respectively. The combination of the three realizes that the non-graphic data element and the parameter attribute data thereof are not lost when the sub-element is locally modified, thereby avoiding the problem of losing the parameterization unit and the stored parameter attribute data thereof.
The implementation process of the embodiment of the present invention will be described in detail below by taking the construction of a T-beam as an example:
step 1: each attribute parameter data of the parameterization component in the data structure object data2 is acquired, all geometric figure elements { ei } of the parameterization component are created based on the attribute parameter data, and a transformation matrix T1 of the first geometric figure element e1 is obtained at the same time.
Specific: for a T-beam, 2 geometric elements { e1, e2}, i.e. a wing e1 and a web e2; and each attribute parameter data in the corresponding data structure object data2 comprises: width, thickness, length of the web e2, width, thickness, length of the wing e 1; a transformation matrix T1 of the wing e1 is obtained.
Step 2: saving the T1 obtained in the step 1 into data2;
step 3: placing the wing plate e1 and web e2 geometric figure elements created in the step 1 at the specified point positions of the mouse, and adding the wing plate e1 and web e2 geometric figure elements into the dgn file. At this time, the MicroStation platform assigns unique element numbers to the wing e1 and web e2 geometry elements, respectively: e1_id, e2_id.
Step 4: determining whether a non-graphic data element e107 corresponding to the T-shaped beam exists in the dgn file; if not, creating a non-graphic data element e107; otherwise, executing the step 5;
step 5, storing the element Id set { e1_Id, e2_Id } of the geometric figure elements of the wing plate e1 and the web plate e2 in the step 3 into a data structure object data1;
step 6, serializing the data structure object data1 obtained in the step 5 into a binary data packet XA1 and storing the binary data packet XA1 on a non-graphic data element e107;
step 7, the data structure object data2 obtained in step 2 is serialized into a binary data packet XA2 and stored on the non-graphic data element e 107.
Example 2
The invention also provides a parameterized component generating device for a MicroStation platform, the device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
It can be understood that the parameterized component development device for the MicroStation platform provided by the embodiment of the invention corresponds to the parameterized component generation method for the MicroStation platform, and the explanation, the examples, the beneficial effects and the like of the relevant content can refer to the corresponding content in the parameterized component generation method for the MicroStation platform, so that the description is omitted here.
Example 3
As shown in fig. 2, the present invention further provides a parameterized component modification method for a microstate platform, including:
k1, obtaining a parameterized component by using the generating method described in the embodiment 1;
k2, selecting any geometric figure element ei of the parameterized component to be modified;
k3, judging whether a non-graphic data element corresponding to the parameterized component exists or not;
if so, inversely sequencing the binary data packet XA1 stored on the non-graphic data element into a data structure object data1;
k4, according to the first element Id1 in the data structure object data1, acquiring a geometric figure element e1 corresponding to the element Id1 in the dgn file, and acquiring a transformation matrix T2 of the geometric figure element e 1;
k5, inversely sequencing the binary data packet XA2 stored on the non-graphic data element into a data structure object data2;
the anti-serialization technology described in K3 and K5 is implemented by using an open source serialization library which is developed based on the C++ language.
K6, extracting a transformation matrix T1 of a first geometric figure element e1 stored in the data structure object data2;
k7, modifying the attribute parameter data in the data structure object data2, and creating all new geometric figure elements { n_ei } of the parameterized component according to the modified attribute parameter data;
k8, traversing all new geometric figure elements { n_ei }, recording a transformation matrix T3 when traversing to a first geometric figure element n_e1, calculating a whole transformation matrix T, transforming all the new geometric figure elements { n_ei } to the correct positions by using the whole transformation matrix T, and adding the new geometric figure elements { n_ei } to a dgn file;
the transformation matrix T3 of the new geometric figure element n_e1 is recorded for the purpose of modifying the parametric component next time based on the current modified parametric component. The global transformation matrix T stores the total scaling and translation information when going from the microstate to the ParaSolid kernel space.
K9, storing the transformation matrix T3 into a data structure object data2;
k10, deleting the original geometric figure element { ei } from the dgn file according to the element Id set in the data structure object data1;
k11, storing the element Id set of all the new geometric figure elements { n_ei } obtained in the K8 into a data structure object data1;
k12, serializing the data structure object data1 in K11 and the data structure object data2 in K9 into binary data packet XA1 and binary data packet XA2, and updating onto the non-graphic data element.
The beneficial effects of this embodiment are:
the embodiment of the invention adopts an open source serialization library CERAL which is developed based on C++ language based on the serialization technology in the steps S6 and S7 and the inverse serialization technology in the steps K3 and K5, supports serialization of data structure objects containing any data type (simple value type, string, vector and the like) into binary, and can support attribute data fields containing string, vector and the like in conventional types.
The implementation process of the embodiment of the present invention will be described in detail below by taking the modification of the T-beam as an example:
k1, a T-shaped beam parameterized component obtained by the generating method in the step 1;
k2, selecting any geometric figure element wing plate e1 or web plate e2 of the T-shaped beam parameterization component to be modified; let it be the wing e1.
K3, judging whether a non-graphic data element e107 corresponding to the T-shaped beam parameterization component exists in the dgn file;
if so, reverse-serializing the binary data packet XA1 stored on the non-graphic data element e107 into a data structure object data1;
k4, according to the first element Id (e1_Id) in the data structure object data1, acquiring a geometric figure element wing plate e1 corresponding to the e1_Id in a dgn file, and acquiring a transformation matrix T2 of the wing plate e 1;
k5, inversely sequencing the binary data packet XA2 stored on the non-graphic data element e107 into a data structure object data2;
k6, extracting a transformation matrix T1 of a first geometric figure element wing plate e1 stored in the data structure object data2;
k7, modifying attribute parameter data (width, thickness and length of the wing plate e1 and width, thickness and length of the web plate e 2) in the data structure object data2, and creating all new geometric figure elements of the wing plate n_e1 and the web plate n_e2 of the T-shaped beam parameterization component according to the modified attribute parameter data;
k8, traversing the new geometric figure elements { n_e1, n_e2} of the T-shaped beam, recording a transformation matrix T3 when traversing to the first wing plate n_e1, calculating an integral transformation matrix T, transforming the new wing plate n_e1 and web plate n_e2 elements to the correct positions by using the integral transformation matrix T, and adding the new wing plate n_e1 and web plate n_e2 elements into a dgn file;
the overall transformation matrix T is:
[T]=[T2]×[T1] -1
k9, storing the transformation matrix T3 into a data structure object data2;
k10, deleting the original geometric figure element wing plate e1 and web plate e2 from the dgn file according to the element Id set { e1_Id, e2_Id } in the data structure object data1;
k11, storing the element Id set { n_e1_Id, n_e2_Id } of all the new geometric figure element wing plates e1 and the web plates e2 obtained in the K8 into a data structure object data1;
k12, serializing the data structure object data1 in K11 and the data structure object data2 in K9 into binary data packet XA1 and binary data packet XA2, and updating onto non-graphic data element e 107.
Example 4
The invention also provides a parameterized component modifying apparatus for a MicroStation platform, the apparatus comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of embodiment 3 when the computer program is executed.
It can be understood that the parameterized component modifying device for the MicroStation platform provided by the embodiment of the present invention corresponds to the parameterized component modifying method for the MicroStation platform, and the explanation, the examples, the beneficial effects and the like of the relevant content can refer to the corresponding content in the parameterized component modifying method for the MicroStation platform, which is not repeated herein.
In summary, compared with the prior art, the invention has the following beneficial effects:
the invention creates non-graphic data elements corresponding to the three-dimensional parameterization component based on the step S4, creates data structure objects data1 and data2 in the steps S1, S2, S3 and S5, and stores binary data packets XA1 and XA2 after serialization of the data structure objects data1 and data2 on the non-graphic data elements in the steps S6 and S7 respectively. The combination of the three realizes that the non-graphic data element and the parameter attribute data thereof are not lost when the sub-element is locally modified, thereby avoiding the problem of losing the parameterization unit and the stored parameter attribute data thereof.
The invention is based on the serialization in the steps S6 and S7 and the inverse serialization technology in the steps K3 and K5, adopts the open-source serialization library CERAL developed based on C++ language to realize, supports serialization of data structure objects containing any data type (simple value type, string, vector and the like) into binary, and can support attribute data fields containing string, vector and the like in conventional types.
It should be noted that, from the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by means of software plus necessary general hardware platform. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the method described in the respective embodiments or some parts of the embodiments. In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A parameterized component generation method for a microstate platform, the method comprising:
acquiring all attribute parameter data of a parameterization component in a data structure object data2, creating all geometric figure elements { ei } of the parameterization component based on the attribute parameter data, and simultaneously obtaining a transformation matrix T1 of a first geometric figure element e 1;
saving the obtained transformation matrix T1 of the first graphic data element e1 to a data structure object data2;
placing all the geometric figure elements { ei } at the positions of the specified points of the mouse, and adding all the geometric figure elements { ei } into a dgn file; after the geometry elements ei are added to the dgn file, the MicroStation platform assigns each geometry element ei a unique element Id;
determining whether a non-graphic data element corresponding to the parameterized component exists; if not, creating a non-graphic data element; otherwise, continuing to execute;
storing the element Id set of all the geometric figure elements { ei } to the data structure object data1;
serializing the obtained data structure object data1 into a binary data packet XA1 and storing the binary data packet XA1 on a non-graphic data element;
the resulting data structure object data2 is serialized into binary data packet XA2 and stored on a non-graphic data element.
2. The parameterized component generation method of claim 1, wherein serialization is based on an open source serialization library implementation.
3. A parameterized component modification method for a microstate platform, comprising:
obtaining a parameterized component using the generating method of claim 1;
selecting any geometric element ei of the parameterized component to be modified;
determining whether a non-graphic data element corresponding to the parameterized component exists;
if so, inversely sequencing the binary data packet XA1 stored on the non-graphic data element into a data structure object data1;
according to a first element Id1 in the data structure object data1, acquiring a geometric figure element e1 corresponding to the element Id1 in a dgn file, and acquiring a transformation matrix T2 of the geometric figure element e 1;
the binary data packet XA2 stored on the non-graphic data element is inversely sequenced into a data structure object data2;
extracting a transformation matrix T1 of a first geometric figure element e1 stored in a data structure object data2;
modifying the attribute parameter data in the data structure object data2, and creating all new geometric figure elements { n_ei } of the parameterized component according to the modified attribute parameter data;
traversing all new geometric figure elements { n_ei }, recording a transformation matrix T3 when traversing to a first geometric figure element n_e1, calculating a whole transformation matrix T again, transforming all the new geometric figure elements { n_ei } to the correct positions by using the whole transformation matrix T, and adding the new geometric figure elements { n_ei } to a dgn file;
saving the transformation matrix T3 into a data structure object data2;
deleting an original geometric figure element { ei } from a dgn file according to the element Id set in the data structure object data1;
storing the element Id set of all new geometry elements { n_ei } to the data structure object data1;
the data structure object data1 and the data structure object data2 are serialized into binary data packet XA1 and binary data packet XA2 and updated onto the non-graphic data element.
4. The method for modifying a parameterized component of a microstate platform according to claim 3, wherein the determining whether the non-graphic data element corresponding to the parameterized component exists comprises:
inverse-serializing binary data packet XA1 stored on the non-graphic data element into data structure object data1; if the data structure object data1 has an element Id set, the parameterization component is present on the corresponding non-graphic data element.
5. A parameterized component modification method for a microstate platform according to claim 3 wherein the global transformation matrix T is:
[T]=[T2]×[T1] -1
wherein [ T1 ]] -1 Representing the inverse of matrix T1.
6. The parameterized building block modification method for a MicroStation platform of claim 3, wherein serialization and de-serialization are based on an open source serialization library implementation.
7. A parameterized component generating device for a MicroStation platform, the device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the generating method according to any of the preceding claims 1-2 when executing the computer program.
8. A parameterized component modification apparatus for a MicroStation platform, the apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the modification method of any of the preceding claims 3-6 when executing the computer program.
CN202110775008.5A 2021-07-08 2021-07-08 Parameterized component generation and modification method and device for MicroStation platform Active CN113642056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110775008.5A CN113642056B (en) 2021-07-08 2021-07-08 Parameterized component generation and modification method and device for MicroStation platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110775008.5A CN113642056B (en) 2021-07-08 2021-07-08 Parameterized component generation and modification method and device for MicroStation platform

Publications (2)

Publication Number Publication Date
CN113642056A CN113642056A (en) 2021-11-12
CN113642056B true CN113642056B (en) 2024-03-26

Family

ID=78416942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110775008.5A Active CN113642056B (en) 2021-07-08 2021-07-08 Parameterized component generation and modification method and device for MicroStation platform

Country Status (1)

Country Link
CN (1) CN113642056B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661508A (en) * 2009-09-29 2010-03-03 金蝶软件(中国)有限公司 Method for generating memu for multi-technology platform and device thereof
CN101763356A (en) * 2008-10-08 2010-06-30 新奥特(北京)视频技术有限公司 Acquisition and organization method of topographic data in virtual map
CN105302522A (en) * 2014-06-26 2016-02-03 英特尔公司 Gf256 SIMD instructions and logic to provide general purpose Gf256 SIMD cryptographic arithmetic functionality
CN107122524A (en) * 2017-03-30 2017-09-01 上海核工程研究设计院 A kind of method that mechanics of piping analysis result is converted into threedimensional model

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8041744B2 (en) * 2004-06-24 2011-10-18 Tekla Corporation Computer-aided modeling
CN103678341A (en) * 2012-09-07 2014-03-26 鸿富锦精密工业(深圳)有限公司 Database interaction system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763356A (en) * 2008-10-08 2010-06-30 新奥特(北京)视频技术有限公司 Acquisition and organization method of topographic data in virtual map
CN101661508A (en) * 2009-09-29 2010-03-03 金蝶软件(中国)有限公司 Method for generating memu for multi-technology platform and device thereof
CN105302522A (en) * 2014-06-26 2016-02-03 英特尔公司 Gf256 SIMD instructions and logic to provide general purpose Gf256 SIMD cryptographic arithmetic functionality
CN107122524A (en) * 2017-03-30 2017-09-01 上海核工程研究设计院 A kind of method that mechanics of piping analysis result is converted into threedimensional model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于MicroStation平台的CAD文件动态无损坐标转换方法研究;候祥意等;《城市勘测》;20190228;全文 *

Also Published As

Publication number Publication date
CN113642056A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
EP3931684B1 (en) Workflow engine tool
US20120317543A1 (en) Computer aided visualization of a business object model lifecycle
CN109448100A (en) Threedimensional model format conversion method, system, computer equipment and storage medium
CN1713192A (en) Method and device for processing logic mode establishment and carrying out
US20130076756A1 (en) Data frame animation
CN115169810A (en) Artificial intelligence system construction method and device for power grid regulation
CN106951231A (en) A kind of computer software development approach and device
CN110705237A (en) Automatic document generation method, data processing device, and storage medium
CN112286999A (en) Dynamic form implementation method based on MYSQL and MONGODB
CN113642056B (en) Parameterized component generation and modification method and device for MicroStation platform
EP4006765A1 (en) Data interpretation device, method and program, data integration device, method and program, and digital city construction system
US6230315B1 (en) Data processing method and apparatus
CN112015560B (en) Device for building IT infrastructure
Srai et al. MDA Approach for EJB Model
CN110727677B (en) Method and device for tracing blood relationship of table in data warehouse
CN114398282A (en) Test script generation method, device, equipment and storage medium
CN112667236A (en) Method, system and medium for implementing workflow of gridding layout
Milovanovic et al. Python Data Visualization Cookbook
Castello et al. Automatic layout of statecharts
CN114756369B (en) CPU-GPU data synchronization method and device using C + + compiler
US11907693B2 (en) Job decomposition processing method for distributed computing
US11762657B2 (en) Intelligent platform for documentation authoring and production
CN117573199B (en) Model difference comparison analysis method, device, equipment and medium
CN117172979B (en) Teaching courseware generation method, device, equipment and medium based on AIGC
US20240184556A1 (en) Hierarchical translation between low-level programming languages and high-level programming languages

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

Country or region after: China

Address after: No.185, Haitang Road, Hefei hi tech Development Zone, Anhui Province, 230088

Applicant after: Anhui water conservancy and hydropower survey and design research institute Co.,Ltd.

Address before: 230088 No.185, Haitang Road, high tech Development Zone, Shushan District, Hefei City, Anhui Province

Applicant before: Anhui water resources and Hydropower Survey, design and Research Institute Co.,Ltd.

Country or region before: China

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant