CN114912221B - Method for establishing association relation between pipeline and penetrating member item in S3D model - Google Patents

Method for establishing association relation between pipeline and penetrating member item in S3D model Download PDF

Info

Publication number
CN114912221B
CN114912221B CN202210528673.9A CN202210528673A CN114912221B CN 114912221 B CN114912221 B CN 114912221B CN 202210528673 A CN202210528673 A CN 202210528673A CN 114912221 B CN114912221 B CN 114912221B
Authority
CN
China
Prior art keywords
pipeline
current
association
penetration
association relation
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
CN202210528673.9A
Other languages
Chinese (zh)
Other versions
CN114912221A (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.)
Shanghai Nuclear Engineering Research and Design Institute Co Ltd
Original Assignee
Shanghai Nuclear Engineering Research and Design Institute Co Ltd
Filing date
Publication date
Application filed by Shanghai Nuclear Engineering Research and Design Institute Co Ltd filed Critical Shanghai Nuclear Engineering Research and Design Institute Co Ltd
Priority to CN202210528673.9A priority Critical patent/CN114912221B/en
Publication of CN114912221A publication Critical patent/CN114912221A/en
Application granted granted Critical
Publication of CN114912221B publication Critical patent/CN114912221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for establishing an item association relation between a pipeline and a penetrating piece in an S3D model, which relates to the technical field of item association and comprises the following steps: s1, selecting a pipeline and a penetrating piece, and recording the corresponding association relation into a background data table; s2, inquiring, downloading and deleting the existing association relation are provided; s3, carrying out automatic maintenance of the association relation according to the association item in the association relation data table, and especially carrying out automatic update of the association attribute; s4, creating a custom service, and regularly tracking the deleted items in the items, so as to realize automatic deletion of association relations related to the deleted items after deletion of the associated items. The invention provides a method for establishing the association relation between a pipeline and a penetrating member in an S3D model, which stores the association relation which is originally required to be manually recorded outside the model in the model, does not need to additionally carry out data transmission links in the work development of subsequent calculation and analysis and the like, and improves the working efficiency.

Description

Method for establishing association relation between pipeline and penetrating member item in S3D model
Technical Field
The invention relates to the technical field of item association, in particular to a method for establishing an item association relationship between a pipeline and a penetrating piece in an S3D model.
Background
S3D (Smart 3D) is a widely used three-dimensional design software; the S3D software is used as integrated multi-specialty participated three-dimensional factory modeling software, can quickly help each specialty designer to carry out three-dimensional modeling and design inspection, and greatly improves the working efficiency and design quality; in the chemical and energy industries, S3D software is widely used and has been the case of numerous successes;
In the using process of the S3D software, the default provides the establishment of the association relation among a great number of items, but does not provide a path for establishing the association relation of the custom items; however, due to the specificity of nuclear power design projects, in order to ensure the design quality and improve the design efficiency and the design quality at the same time, the association relation among various items is required to be additionally added for attribute transfer among associated items and subsequent analysis and calculation; therefore, a method for customizing the association relationship of the items in the S3D model is highly needed.
Disclosure of Invention
The invention aims to provide a method for establishing an association relation between a pipeline and a penetrating member object in an S3D model, so as to solve the problems of design efficiency and design quality in the background technology.
In order to achieve the above purpose, the present invention provides the following technical solutions:
a method for establishing association relation between a pipeline and a penetrating member object in an S3D model comprises the following steps:
S1, selecting a pipeline and a penetrating piece which need to establish an association relationship, performing relationship creation, attribute transfer and corresponding logic point generation, and recording the corresponding association relationship into a background data table by software;
S2, managing the association relation established by the current item by accessing a background association relation database, and providing the existing association relation inquiry, downloading and deleting;
S3, creating a corresponding rule in the DesignRuleChecker framework, and automatically maintaining the association relation according to the association item in the association relation data table, in particular automatically updating the association attribute;
s4, creating a custom service, and regularly tracking the deleted items in the items to realize automatic deletion of association relations related to the deleted items after deletion of the associated items;
S5, ending.
Preferably, the step S1 includes the following steps:
S1.1, selecting pipeline features and penetration piece objects to be associated, respectively storing the penetration piece objects into toDoList representing a subsequent processing list after the selection is finished, and entering S1.2;
S1.2, searching whether a data table for recording the association relation exists in a database; if the creation of the data table does not exist, entering S1.3 after completion; if so, directly entering S1.3;
S1.3, checking whether penetrating members associated with the selected pipeline features exist in the association relation data table, and entering S1.4 if the penetrating members exist; if there is no entry S1.5;
S1.4, checking whether the associated penetrating piece is the currently selected penetrating piece, if yes, directly entering S1.9, otherwise, storing the associated penetrating piece into a to-be-processed list toDoList, and entering S1.5;
S1.5, creating a relation for the selected pipeline feature and the penetration piece, and entering S1.6 after finishing;
s1.6, circularly traversing the penetration piece object in toDoList, wherein the traversing is completed to S1.9, otherwise, the traversing is completed to S1.7;
s1.7, finding a pipeline feature set featureList with an association relation with the current penetration piece from the association relation data table, and entering S1.8;
S1.8, creating a relation for the current penetration piece and the object in featureList, and entering S1.6 after finishing;
S1.9, ending.
Preferably, the creating the relationship in S1.5 includes the steps of:
S1.5.1, searching an association relation entry of oid with a main key being the current pipeline feature from an association relation database, and entering S1.5.2 if the association relation entry exists; otherwise, entering S1.5.3;
S1.5.2, finding out logical bracket points which exist on the current pipeline feature and are consistent with the names of the related penetrating members, deleting all the bracket points, and entering S1.5.3;
S1.5.3, finding out logical bracket points which exist on the current pipeline feature and are consistent with the selected through piece name, deleting all the bracket points, and entering S1.5.4;
S1.5.4, obtaining two DP point patterns representing the inlet and outlet of the penetrating piece, constructing bottom plane InPlane and OutPlane of the two DP points, and entering S1.5.5;
s1.5.5, constructing a straight line according to the starting point and the ending point of the current pipeline feature, finding out an intersection point of the straight line and InPlane and OutPlane, placing a logical bracket point on the intersection point to represent the occupation of a penetrating member on the pipeline, setting a logical bracket point name as a corresponding penetrating member name, and entering S1.5.6;
S1.5.6, adjusting the attribute of the logical bracket point according to the attribute of the penetration piece, and entering S1.5.7;
s1.5.7, updating corresponding entries in a record association relationship data table in a database, and entering S1.5.8;
S1.5.8, ending.
Preferably, the creating the relationship in S1.8 includes the steps of:
s1.8.1, summarizing the names of upper layers piperun of feature objects in all featureList, updating the corresponding pass-through pipeline attribute of the current penetration piece, and entering S1.8.2;
S1.8.2, checking whether the incidence relation of oid with the primary key being the current penetration piece exists in the incidence relation data table, and entering S1.8.3 if the incidence relation exists; otherwise, entering S1.8.4;
S1.8.3, updating the associated item information of the corresponding item, and entering S1.8.5 after finishing;
S1.8.4, inserting the relation data table of the current penetration piece and the associated item featureList, and entering S1.8.5;
s1.8.5, ending.
Preferably, the step of automatically maintaining and automatically updating in S3 includes the steps of:
s3.1, checking the category of the current changed object item, entering S3.2 if the current changed object item is a pipeline feature, entering S3.6 if the current changed object item is a penetrating piece, and directly entering S3.12 if the current changed object item is a penetrating piece;
S3.2, checking whether a related item of oid with a main key being the current pipeline feature exists in the related relation data table, entering S3.3 if the related item exists on the basis of representing the current pipeline feature, otherwise, entering S3.12 directly;
S3.3, if the pipeline names stored in the association relation are inconsistent with the pipeline names corresponding to the current pipeline names, entering S3.4; otherwise, directly entering S3.12;
S3.4, updating the pipeline names stored in the related items queried in the step S3.2, searching all data items related to the current pipeline feature and all related penetrating piece lists in the related relation data table, updating the pipeline names corresponding to the current pipeline feature in the data items, and updating the pipeline names to enter the step S3.5;
S3.5, for the penetrating piece in the penetrating piece list, updating the pipeline name corresponding to the current pipeline feature in the corresponding penetrating pipe attribute completely, and entering S3.12;
S3.6, checking whether an associated item with a main key being oid of the current penetrating piece exists in the associated relation data table, entering S3.7 if the associated item exists, otherwise, entering S3.12 directly if the associated item does not exist;
s3.7, recording a penetrating piece name oldSleeveName recorded in the association relation database, and if the penetrating piece name stored in the association relation is inconsistent with the current penetrating piece name, entering S3.8; otherwise, directly entering S3.9;
S3.8, updating the names of the penetrating members stored in the related items queried in the S3.6, searching all data items related to the current penetrating member in the related relation data table, updating the names corresponding to the current penetrating member in the data items into the current penetrating member name, and entering the S3.9;
S3.9, finding all pipeline feature sets featureList associated with the current penetration through the association relation data table, and entering S3.10;
S3.10, circularly traversing featureList, wherein the completion of traversing is performed to S3.12, otherwise, the process is performed to S3.11;
S3.11, finding a logical bracket point named oldSleeveName on the current feature, updating the corresponding attribute of the logical bracket point, and returning to S3.10;
And S3.12, ending.
Preferably, the step S4 includes the following steps:
s4.1, searching whether a data table for recording the association relation exists in a database; if the creation of the data table does not exist, entering S4.2 after completion; if so, directly entering S4.2;
S4.2, finding out all association relation items which do not exist in the current item in the items corresponding to the main key in the association relation data table, and entering S4.3;
s4.3, acquiring a corresponding associated item list refList in the associated item found in the S4.2, and entering into the S4.4;
s4.4, circularly traversing refList, wherein the completion of traversing enters S4.8, otherwise, entering S4.5;
S4.5, if the current item is a pipeline feature, entering S4.6, otherwise, entering S4.7 if the current item is a penetrating piece, otherwise, directly returning to S4.4;
s4.6, processing the pipeline feature object, and returning to S4.4 after finishing;
s4.7, processing the penetrating member object, and returning to S4.4 after finishing;
S4.8, deleting all the associated entries found in the S4.2, and entering the S4.9;
and S4.9, ending.
Preferably, the processing the pipeline feature object in S4.6 includes the following steps:
S4.6.1, finding out an association relation entry of oid with a main key being the current pipeline feature from the association relation data table, and entering S4.6.2;
S4.6.2, find oid set oidList of all penetration objects involved in the association entry, enter S4.6.3;
S4.6.3, loop traversal oidList, oid, traversal completion S4.6.5, otherwise S4.6.4;
s4.6.4, checking whether the current oid is in the jdobject table of the project database, putting existList if it is representing that the current penetration still exists, otherwise putting DELETELIST if it is representing that the current penetration has been deleted, and returning to S4.6.3;
S4.6.5 if existList is not null, updating the association object in the association relationship entry found in S4.6.1 to be all items in existList, and entering S4.6.6; otherwise, if no related item exists in the current feature, directly deleting S4.6.1 the related item found in the item, and entering S4.6.6;
S4.6.6, if DELETELIST is empty, directly enter S4.6.7; otherwise, deleting all logical bracket points in the penetrating piece name set with names appearing in DELETELIST on the current pipeline feature, and entering S4.6.7 after completion;
s4.6.7, ending.
Preferably, the processing the penetration object in S4.7 includes the following steps:
S4.7.1, finding all pipeline feature objects with association relation with the current penetration piece from the association relation data table, finding a pipeline feature object set featureList which is not deleted from the pipeline feature object set, and entering S4.7.2;
S4.7.2 if featureList is not null, finding out the associated item with the main key being the current penetration oid from the associated relation data table, updating the associated item to be the item set in featureList, and entering S4.7.3; otherwise, directly deleting the association entry with the primary key as the current penetration oid from the association relationship data table, and entering S4.7.3 because the current penetration does not have an association item any more;
S4.7.3, updating the perforating information attribute of the current penetrating piece according to the information collected in featureList, and entering S4.7.4 after finishing;
S4.7.4, ending.
Compared with the prior art, the invention has the beneficial effects that:
1. The invention provides a method for establishing the association relation between a pipeline and a penetrating member in an S3D model, which stores the association relation which is originally required to be manually recorded outside the model in the model, does not need to additionally carry out data transmission links in the work development of subsequent calculation and analysis and the like, and improves the working efficiency;
2. According to the method for establishing the association relation between the pipeline and the penetrating member item in the S3D model, through using DesignRuleChecker frames and writing corresponding services, full-automatic relation maintenance of the associated item is realized, manual intervention of a designer is not needed, a large amount of working time is saved, and meanwhile, error risks of manual maintenance are avoided;
3. The method for establishing the association relation between the pipeline and the penetrating piece in the S3D model provided by the invention has the advantages that the used method thought and the framework can be conveniently applied to the establishment of the association relation between other items in the S3D model, and the expansibility and the adaptability are good;
4. According to the method for establishing the association relation between the pipeline and the penetrating piece item in the S3D model, provided by the invention, the convenience in establishment of the association relation is considered, and meanwhile, the display, deletion and downloading interfaces of the existing association relation are provided, so that the operation and the use are convenient, and the convenience is good.
Drawings
FIG. 1 is a flow chart of a method for implementing a bi-directional association relationship between a pipe and a penetration in an embodiment of the present invention;
FIG. 2 is a flow chart of a method for creating relationships for selected pipeline features and penetrators in accordance with an embodiment of the present invention;
FIG. 3 is a flow chart of a method for implementing the creation of a correspondence rule in DesignRuleChecker frames in accordance with an embodiment of the present invention;
fig. 4 is a flowchart of an implementation method for automatically deleting association relations related to an item to be deleted after deletion of an associated item according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only 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.
According to the invention, the establishment of the association relation between the pipeline and the penetrating piece item and the transmission of the corresponding attribute are realized through developing the corresponding user operation interface, the established association relation is automatically maintained by using DesignRuleChecker frames, and the automatic disconnection of the related association relation of the deleted item is realized through the customized service, so that the full life cycle management from the establishment, maintenance to deletion of the association relation between the pipeline and the penetrating piece item in the S3D model is realized; the method for establishing the association relation between the pipeline and the penetrating member object item in the S3D model replaces the manual recording and maintenance of the work of the pipeline and the penetrating member of the pipeline by the designer in the past, can greatly improve the working efficiency of the design of the pipeline and the penetrating member, and greatly reduces the generation of human error by a fully automatic working mode and improves the working quality;
The invention provides a technical scheme that: a method for establishing association relation between a pipeline and a penetrating member object in an S3D model comprises the following steps:
S1, a user selects a pipeline and a penetration piece which need to establish an association relationship, relationship creation, attribute transfer and corresponding logic point generation are carried out, and software records the corresponding association relationship into a background data table;
s1, a user selects a pipeline and a penetration piece which need to establish an association relationship, relationship creation, attribute transfer and corresponding logic point generation are carried out, and the software records the corresponding association relationship into a background data table, wherein the steps comprise the following steps of, as shown in FIG. 1:
S1.1, selecting a pipeline feature and a penetration object to be associated by a user, respectively storing the penetration object into toDoList representing a subsequent processing list after the selection is finished, and entering S1.2;
S1.2, searching whether a data table for recording the association relation exists in a database; if the creation of the data table does not exist, entering S1.3 after completion; if so, directly entering S1.3;
S1.3, checking whether a penetrating piece associated with the pipeline feature selected by the user exists in the association relation data table, and entering S1.4 if the penetrating piece exists; if there is no entry S1.5;
s1.4, checking whether the associated penetration piece is the penetration piece selected by the current user, if so, directly entering S1.9, otherwise, storing the associated penetration piece into a to-be-processed list toDoList, and entering S1.5;
S1.5, creating a relation for the pipeline feature and the penetration piece selected by the user, and entering S1.6 after finishing;
s1.5, creating a relationship for the user-selected pipeline feature and penetration includes the following steps, as shown in FIG. 2:
S1.5.1, searching an association relation entry of oid with a main key being the current pipeline feature from an association relation database, and entering S1.5.2 if the association relation entry exists; otherwise, entering S1.5.3;
S1.5.2, finding out logical bracket points which exist on the current pipeline feature and are consistent with the names of the related penetrating members, deleting all the bracket points, and entering S1.5.3;
S1.5.3, finding out logical bracket points which exist on the current pipeline feature and are consistent with the names of penetrating members selected by a user, deleting all the bracket points, and entering S1.5.4;
S1.5.4, obtaining two DP point patterns representing the inlet and outlet of the penetrating piece, constructing bottom plane InPlane and OutPlane of the two DP points, and entering S1.5.5;
s1.5.5, constructing a straight line according to the starting point and the ending point of the current pipeline feature, finding out an intersection point of the straight line and InPlane and OutPlane, placing a logical bracket point on the intersection point to represent the occupation of a penetrating member on the pipeline, setting a logical bracket point name as a corresponding penetrating member name, and entering S1.5.6;
S1.5.6, adjusting the attribute of the logical bracket point according to the attribute of the penetration piece, and entering S1.5.7;
s1.5.7, updating corresponding entries in a record association relationship data table in a database, and entering S1.5.8;
s1.5.8, ending;
s1.6, circularly traversing the penetration piece object in toDoList, wherein the traversing is completed to S1.9, otherwise, the traversing is completed to S1.7;
s1.7, finding a pipeline feature set featureList with an association relation with the current penetration piece from the association relation data table, and entering S1.8;
S1.8, creating a relation for the current penetration piece and the object in featureList, and entering S1.6 after finishing;
s1.8, creating a relation for the current penetration and the object in featureList, comprising the following steps:
s1.8.1, summarizing the names of upper layers piperun of feature objects in all featureList, updating the corresponding pass-through pipeline attribute of the current penetration piece, and entering S1.8.2;
S1.8.2, checking whether the incidence relation of oid with the primary key being the current penetration piece exists in the incidence relation data table, and entering S1.8.3 if the incidence relation exists; otherwise, entering S1.8.4;
S1.8.3, updating the associated item information of the corresponding item, and entering S1.8.5 after finishing;
S1.8.4, inserting the relation data table of the current penetration piece and the associated item featureList, and entering S1.8.5;
S1.8.5, ending;
s1.9, ending;
s2, a user manages the established association relation of the current item by accessing a background association relation database, and provides the existing association relation inquiry, downloading and deleting;
S3, creating a corresponding rule in the DesignRuleChecker framework, and automatically maintaining the association relation according to the association item in the association relation data table, in particular automatically updating the association attribute;
S3, creating a corresponding rule in a DesignRuleChecker framework, and automatically maintaining the association relation according to the association item in the association relation data table, wherein the automatic updating of the association attribute particularly comprises the following steps of:
s3.1, checking the category of the current changed object item, entering S3.2 if the current changed object item is a pipeline feature, entering S3.6 if the current changed object item is a penetrating piece, and directly entering S3.12 if the current changed object item is a penetrating piece;
S3.2, checking whether a related item of oid with a main key being the current pipeline feature exists in the related relation data table, entering S3.3 if the related item exists on the basis of representing the current pipeline feature, otherwise, entering S3.12 directly;
S3.3, if the pipeline names stored in the association relation are inconsistent with the pipeline names corresponding to the current pipeline names, entering S3.4; otherwise, directly entering S3.12;
S3.4, updating the pipeline names stored in the related items queried in the step S3.2, searching all data items related to the current pipeline feature and all related penetrating piece lists in the related relation data table, updating the pipeline names corresponding to the current pipeline feature in the data items, and updating the pipeline names to enter the step S3.5;
S3.5, for the penetrating piece in the penetrating piece list, updating the pipeline name corresponding to the current pipeline feature in the corresponding penetrating pipe attribute completely, and entering S3.12;
S3.6, checking whether an associated item with a main key being oid of the current penetrating piece exists in the associated relation data table, entering S3.7 if the associated item exists, otherwise, entering S3.12 directly if the associated item does not exist;
s3.7, recording a penetrating piece name oldSleeveName recorded in the association relation database, and if the penetrating piece name stored in the association relation is inconsistent with the current penetrating piece name, entering S3.8; otherwise, directly entering S3.9;
S3.8, updating the names of the penetrating members stored in the related items queried in the S3.6, searching all data items related to the current penetrating member in the related relation data table, updating the names corresponding to the current penetrating member in the data items into the current penetrating member name, and entering the S3.9;
S3.9, finding all pipeline feature sets featureList associated with the current penetration through the association relation data table, and entering S3.10;
S3.10, circularly traversing featureList, wherein the completion of traversing is performed to S3.12, otherwise, the process is performed to S3.11;
S3.11, finding a logical bracket point named oldSleeveName on the current feature, updating the corresponding attribute of the logical bracket point, and returning to S3.10;
S3.12, ending;
s4, creating a custom service, and regularly tracking the deleted items in the items to realize automatic deletion of association relations related to the deleted items after deletion of the associated items;
s4, creating a custom service, regularly tracking the deleted items in the items, and automatically deleting the association relation related to the deleted items after the deletion of the associated items, wherein the association relation related to the deleted items comprises the following steps of, as shown in FIG. 4:
s4.1, searching whether a data table for recording the association relation exists in a database; if the creation of the data table does not exist, entering S4.2 after completion; if so, directly entering S4.2;
S4.2, finding out all association relation items which do not exist in the current item in the items corresponding to the main key in the association relation data table, and entering S4.3;
s4.3, acquiring a corresponding associated item list refList in the associated item found in the S4.2, and entering into the S4.4;
s4.4, circularly traversing refList, wherein the completion of traversing enters S4.8, otherwise, entering S4.5;
S4.5, if the current item is a pipeline feature, entering S4.6, otherwise, entering S4.7 if the current item is a penetrating piece, otherwise, directly returning to S4.4;
s4.6, processing the pipeline feature object, and returning to S4.4 after finishing;
s4.6, processing a pipeline feature object, comprising the following steps:
S4.6.1, finding out an association relation entry of oid with a main key being the current pipeline feature from the association relation data table, and entering S4.6.2;
S4.6.2, find oid set oidList of all penetration objects involved in the association entry, enter S4.6.3;
S4.6.3, loop traversal oidList, oid, traversal completion S4.6.5, otherwise S4.6.4;
s4.6.4, checking whether the current oid is in the jdobject table of the project database, putting existList if it is representing that the current penetration still exists, otherwise putting DELETELIST if it is representing that the current penetration has been deleted, and returning to S4.6.3;
S4.6.5 if existList is not null, updating the association object in the association relationship entry found in S4.6.1 to be all items in existList, and entering S4.6.6; otherwise, if no related item exists in the current feature, directly deleting S4.6.1 the related item found in the item, and entering S4.6.6;
S4.6.6, if DELETELIST is empty, directly enter S4.6.7; otherwise, deleting all logical bracket points in the penetrating piece name set with names appearing in DELETELIST on the current pipeline feature, and entering S4.6.7 after completion;
S4.6.7, ending;
s4.7, processing the penetrating member object, and returning to S4.4 after finishing;
the processing penetration piece object of S4.7 comprises the following steps:
S4.7.1, finding all pipeline feature objects with association relation with the current penetration piece from the association relation data table, finding a pipeline feature object set featureList which is not deleted from the pipeline feature object set, and entering S4.7.2;
S4.7.2 if featureList is not null, finding out the associated item with the main key being the current penetration oid from the associated relation data table, updating the associated item to be the item set in featureList, and entering S4.7.3; otherwise, directly deleting the association entry with the primary key as the current penetration oid from the association relationship data table, and entering S4.7.3 because the current penetration does not have an association item any more;
S4.7.3, updating the perforating information attribute of the current penetrating piece according to the information collected in featureList, and entering S4.7.4 after finishing;
S4.7.4, ending;
S4.8, deleting all the associated entries found in the S4.2, and entering the S4.9;
S4.9, ending;
S5, ending;
The invention provides a method for establishing the association relation between a pipeline and a penetrating member in an S3D model, which stores the association relation which is originally required to be manually recorded outside the model in the model, does not need to additionally carry out data transmission links in the work development of subsequent calculation and analysis and the like, and improves the working efficiency;
According to the method for establishing the association relation between the pipeline and the penetrating member item in the S3D model, through using DesignRuleChecker frames and writing corresponding services, full-automatic relation maintenance of the associated item is realized, manual intervention of a designer is not needed, a large amount of working time is saved, and meanwhile, error risks of manual maintenance are avoided;
the method for establishing the association relation between the pipeline and the penetrating piece in the S3D model provided by the invention has the advantages that the used method thought and the framework can be conveniently applied to the establishment of the association relation between other items in the S3D model, and the expansibility and the adaptability are good;
According to the method for establishing the association relation between the pipeline and the penetrating piece item in the S3D model, provided by the invention, the convenience in establishment of the association relation is considered, and meanwhile, the display, deletion and downloading interfaces of the existing association relation are provided, so that the operation and the use of a user are convenient, and the convenience is good.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (10)

1. The method for establishing the association relation between the pipeline and the penetrating member object in the S3D model is characterized by comprising the following steps of:
S1, selecting a pipeline and a penetrating piece which need to establish an association relationship, performing relationship creation, attribute transfer and corresponding logic point generation, and recording the corresponding association relationship into a background data table by software;
S2, managing the association relation established by the current item by accessing a background association relation database, and providing the existing association relation inquiry, downloading and deleting;
S3, creating a corresponding rule in the DesignRuleChecker framework, and automatically maintaining the association relation according to the association item in the association relation data table and automatically updating the association attribute;
s4, creating a custom service, and regularly tracking the deleted items in the items to realize automatic deletion of association relations related to the deleted items after deletion of the associated items;
S5, ending.
2. The method for establishing association between a pipeline and a penetrating member in an S3D model according to claim 1, wherein the S1 comprises the following steps:
selecting pipeline features and penetration piece objects to be associated, and storing the penetration piece objects into toDoList representing a subsequent processing list after the selection is finished;
Searching whether a data table for recording the association relation exists in the database; creating the data table if there is no;
checking whether a penetration piece associated with the selected pipeline feature exists in the association relation data table or not;
Checking whether the associated penetration piece is the currently selected penetration piece, and creating a relation for the selected pipeline feature and the penetration piece;
looping through the penetration object in toDoList;
finding a pipeline feature set featureLis with an association relation with the current penetration piece from the association relation data table;
a relationship is created for the objects in the current penetration and featureList.
3. The method for establishing a relationship between a pipeline and a penetration in an S3D model according to claim 2, wherein the creating a relationship for the selected pipeline feature and penetration comprises the steps of:
searching an association relation item of oid with a main key being the current pipeline feature from an association relation database;
finding out the logic points which exist on the current pipeline feature and are consistent with the names of the associated penetration pieces, and deleting all the logic points;
finding out logical points which exist on the current pipeline feature and are consistent with the selected through part name, and deleting all the logical points;
acquiring two DP point patterns representing the inlet and outlet of the penetrating piece, and constructing bottom plane InPlane and OutPlane of the two DP points;
Constructing a straight line according to the starting point and the ending point of the current pipeline feature, finding out an intersection point of the straight line and InPlane and OutPlane, placing a logic point on the intersection point to represent the occupation of the penetrating piece on the pipeline, and setting a logic point name as a corresponding penetrating piece name;
adjusting the attribute of the logic point according to the attribute of the penetration piece;
Updating corresponding entries in a record association relation data table in a database;
And (5) ending.
4. The method for establishing association between a pipeline and a penetrating member in an S3D model according to claim 2, wherein the creating association for the objects in the current penetrating member and featureList comprises the following steps:
the upper layer piperun names of the feature objects in all featureList are summarized and then the corresponding pass-through pipeline attribute of the current penetration piece is updated;
Checking whether the association relation data table has the association relation that the main key is oid of the current penetration piece;
Updating the associated item information of the corresponding item;
the relationship to the current penetration and associated item featureList is inserted into the data table.
5. The method for establishing association between a pipeline and a penetration in an S3D model according to claim 1, wherein the automatic maintenance and automatic update comprises the steps of:
checking whether the category of the current changed object item is a pipeline feature or a penetration;
Checking whether an association entry with a main key being oid of the current pipeline feature exists in the association relation data table;
judging whether the pipeline feature names stored in the association relation are inconsistent with the pipeline names corresponding to the current pipeline feature;
Updating the pipeline names stored in the queried associated items, searching all data items associated with the current pipeline feature in the associated relation data table and all associated penetrating piece lists, and updating the pipeline names corresponding to the current pipeline feature in the data items;
For the penetrating piece in the penetrating piece list, updating the pipeline name of the corresponding current pipeline feature in the corresponding penetrating pipe attribute;
checking whether an association entry with a main key being oid of the current penetration piece exists in the association relation data table;
Recording a penetrating piece name oldSleeveName recorded in the association relation database, and judging whether the penetrating piece name stored in the association relation is consistent with the current penetrating piece name;
searching all data items which are associated with the current penetration in the association relation data table according to the penetration names stored in the association items which are searched in the updating, and updating the names corresponding to the current penetration in the data items into the current penetration names;
finding all pipeline feature sets featureList associated with the current penetration through the association relation data table;
And traversing featureLis circularly, finding a logic point named oldSleeveName on the current feature, and updating the corresponding attribute of the logic point.
6. The method for establishing association between a pipeline and a penetrating member in an S3D model according to claim 1, wherein the S4 comprises the following steps:
Searching whether a data table for recording the association relation exists in the database;
finding out all association relation items which do not exist in the current item in the items corresponding to the main key in the association relation data table;
acquiring a corresponding associated item list refLis in the found associated item;
Circularly traversing refList, and judging whether the current item is a pipeline feature;
Processing the pipeline feature object and processing the penetration object;
all association entries that do not already exist in the current item are deleted.
7. The method for establishing association between a pipeline and a penetration item in an S3D model according to claim 6, wherein the processing the pipeline feature object comprises the following steps:
finding out an association relation entry of oid with a main key being the current pipeline feature from the association relation data table;
The oid set oidList of all penetration objects involved in the association entry is found;
Loop traversal oidList, oid;
checking whether the current oid is in jdobject table of the project database, and putting existList if the current penetration is still present on behalf of the current penetration;
If existList is not null, updating all items in existList as associated objects in the found associated relationship item; otherwise, representing that the current feature has no associated item;
if DELETELIST is empty, directly ending; otherwise, all logical points in the set of through names whose names appear in DELETELIST on the current pipeline feature are deleted.
8. The method for establishing a relationship between a pipe and a penetration item in an S3D model according to claim 7, wherein the current oid is not stored in the jdobject table of the item database, and the current penetration is deleted and placed in DELETELIST.
9. The method for establishing association between a pipeline and a penetration object in an S3D model according to claim 6, wherein the processing the penetration object comprises the following steps:
Finding all pipeline feature objects with association relation with the current penetration piece from the association relation data table, and finding a pipeline feature object set featureList which is not deleted;
If featureList is not null, finding out the associated item with the main key as the current penetration oid from the associated relation data table, and updating the associated item to be the item set in featureList;
And updating the poling information attribute of the current penetration according to the information collected in featureList.
10. The method of claim 9, wherein if featureList is empty, the associated entry whose primary key is the current penetration oid is deleted directly from the association data table because the current penetration no longer has an associated item.
CN202210528673.9A 2022-05-16 Method for establishing association relation between pipeline and penetrating member item in S3D model Active CN114912221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210528673.9A CN114912221B (en) 2022-05-16 Method for establishing association relation between pipeline and penetrating member item in S3D model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210528673.9A CN114912221B (en) 2022-05-16 Method for establishing association relation between pipeline and penetrating member item in S3D model

Publications (2)

Publication Number Publication Date
CN114912221A CN114912221A (en) 2022-08-16
CN114912221B true CN114912221B (en) 2024-06-21

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109999A (en) * 2019-05-24 2019-08-09 上海核工程研究设计院有限公司 A kind of S3D threedimensional model turns the system and conversion method of Flowmaster model

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109999A (en) * 2019-05-24 2019-08-09 上海核工程研究设计院有限公司 A kind of S3D threedimensional model turns the system and conversion method of Flowmaster model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于EPDM模型的数据查询与编辑系统的设计及应用;李莉娇;;中国管理信息化;20131101(21);全文 *

Similar Documents

Publication Publication Date Title
CN103995854A (en) Equipment cross-version upgrading method and device
CN113051650B (en) Real-time acquisition method and device for building information model component data
CN112966118A (en) Operation and maintenance knowledge map construction method
US20080147457A1 (en) Systems and methods for handling attributes used for assignment generation in a value flow environment
CN113392462A (en) Sewage pipe network rapid modeling method based on Revit secondary development
US7707211B2 (en) Information management system and method
CN114912221B (en) Method for establishing association relation between pipeline and penetrating member item in S3D model
CN109377543B (en) Method for quickly establishing material connection
CN109615554B (en) Synchronous data system based on intelligent manufacturing and operation method and synchronization method thereof
CN113486418B (en) BIM model cloud coding method and system
CN112182871B (en) System and method for converting three-dimensional pipeline model into MapGIS model
CN115795768B (en) Pipe network three-dimensional modeling and data updating method and system taking entity form into consideration
CN101968747B (en) Cluster application management system and application management method thereof
CN114912221A (en) Method for establishing association relationship between pipeline and penetrating piece item in S3D model
CN110222050A (en) Method and system is transferred for nuclear power plant's three-dimensional database instrument association items
CN106815689A (en) Equipment file management method and apparatus archive management system
CN116011157A (en) Automatic desk CAD and Revit secondary development-based pipeline rapid extraction modeling method
CN114579651A (en) Audit data acquisition system
CN114020719A (en) License data migration method applied to heterogeneous database
CN107844639B (en) Project standard structure automatic generation method and system
US20020123811A1 (en) Production management system and program
CN117171866B (en) Building information model data management method, system and medium based on Rhinoceros
CN104299253A (en) Intelligent rendering method and device for full-high-definition digital film animation
CN114386122A (en) Full-automatic tool system that macros based on Eplan
CN115130186A (en) Method for quickly creating pipeline system based on modeling software

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: No. 29 Hong Cao Road, Xuhui District, Shanghai

Applicant after: Shanghai Nuclear Engineering Research and Design Institute Co.,Ltd.

Address before: No. 29 Hong Cao Road, Xuhui District, Shanghai

Applicant before: SHANGHAI NUCLEAR ENGINEERING RESEARCH & DESIGN INSTITUTE Co.,Ltd.

GR01 Patent grant