CN114912221A - Method for establishing association relationship between pipeline and penetrating piece item in S3D model - Google Patents

Method for establishing association relationship between pipeline and penetrating piece item in S3D model Download PDF

Info

Publication number
CN114912221A
CN114912221A CN202210528673.9A CN202210528673A CN114912221A CN 114912221 A CN114912221 A CN 114912221A CN 202210528673 A CN202210528673 A CN 202210528673A CN 114912221 A CN114912221 A CN 114912221A
Authority
CN
China
Prior art keywords
current
pipeline
association
feature
item
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
CN202210528673.9A
Other languages
Chinese (zh)
Other versions
CN114912221B (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
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 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
Priority claimed from CN202210528673.9A external-priority 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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/17Mechanical parametric or variational design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/14Pipes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for establishing an association relation between a pipeline and a penetrating piece item in an S3D model, which relates to the technical field of item association and comprises the following steps: s1, selecting a pipeline and a penetration piece, and recording the corresponding association relation into a background data table; s2, providing the existing association relation to inquire, download and delete; s3, automatically maintaining the association relation according to the association items in the association relation data table, especially automatically updating the association attribute; and 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 associated items are deleted. The invention provides a method for establishing an incidence relation between a pipeline and a penetrating piece item in an S3D model, which is characterized in that the incidence relation which needs to be manually recorded outside the model by a designer is stored in the model, and no additional data transmission link is needed in the subsequent work development of calculation analysis and the like, so that the working efficiency is improved.

Description

Method for establishing association relationship between pipeline and penetrating piece item in S3D model
Technical Field
The invention relates to the technical field of item association, in particular to a method for establishing an association relation between a pipeline and a penetrating piece item in an S3D model.
Background
S3D (Smart3D) is widely used three-dimensional design software; the S3D software is used as integrated three-dimensional factory modeling software with multiple professions participating, so that three-dimensional modeling and design inspection of each professional designer can be rapidly assisted, and the working efficiency and the design quality are greatly improved; in the chemical and energy industries, the S3D software has been widely used and has had countless cases of success;
in the use process of the S3D software, the establishment of the incidence relation among a great number of items is provided by default, but a self-defined item incidence relation establishment path is not provided; however, due to the particularity of the nuclear power design project, in order to ensure the design quality and improve the design efficiency and the design quality, the association relationship among various items needs to be additionally added for attribute transfer and subsequent analysis and calculation among the associated items; it is therefore highly desirable to have a method that can customize item associations in the S3D model.
Disclosure of Invention
The invention aims to provide a method for establishing an association relation between a pipeline and a penetrating piece item 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 purpose, the invention provides the following technical scheme:
a method for establishing an association relationship between a pipeline and a penetrating piece item in an S3D model comprises the following steps:
s1, selecting the pipeline and the penetration piece which need to establish the association relationship, creating the relationship, transmitting the attribute and generating the corresponding logic point, and recording the corresponding association relationship into the background data table by the software;
s2, managing the established association relation of the current item by accessing the background association relation database, and providing query, download and deletion of the existing association relation;
s3, creating a corresponding rule in a DesignRuleChecker framework, and automatically maintaining the association relation according to the association items in the association relation data table, particularly automatically updating the association attributes;
s4, creating a custom service, tracking the deleted items in the items at regular time, and automatically deleting the association relation related to the deleted items after the associated items are deleted;
and S5, ending.
Preferably, the step of S1 includes the steps of:
s1.1, selecting a pipeline feature and a through piece object which need to be associated, respectively storing the through piece object into a 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 incidence relation exists in a database; if the data table is not created, S1.3 is carried out after the data table is created; if yes, directly entering S1.3;
s1.3, checking whether a penetration piece associated with the selected pipeline feature exists in the association relation data table or not, and entering S1.4 if the penetration piece exists; if not, go to S1.5;
s1.4, checking whether the associated penetration piece is the penetration piece selected currently, 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, establishing a relation between the selected pipeline feature and the penetrating piece, and entering S1.6 after the relation is completed;
s1.6, circularly traversing the penetration piece objects in the toDoList, and entering S1.9 after traversing is finished, or entering S1.7;
s1.7, finding a pipeline feature set feature List which has an association relation with the current penetration piece from the association relation data table, and entering S1.8;
s1.8, establishing a relationship between the current penetration piece and the object in the featureList, and entering S1.6 after the relationship is completed;
and S1.9, ending.
Preferably, the creating of the relationship in S1.5 includes the following steps:
s1.5.1, searching the incidence relation database for oid incidence relation item with the main key being the current pipe feature, if yes, entering S1.5.2; otherwise S1.5.3 is entered;
s1.5.2, finding out logical support points which are consistent with the names of the associated penetration pieces and exist on the current pipeline feature, deleting all the support points, and entering S1.5.3;
s1.5.3, finding out the logical support points which are consistent with the selected penetration piece name and exist on the current pipeline feature, deleting all the support points, and entering S1.5.4;
s1.5.4, acquiring two DP point patterns representing an inlet and an outlet of the penetration 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 end point of the current pipeline feature, finding the intersection point of the straight line and Inplane and Outplane, placing a logical support point on the intersection point to represent the occupation of the penetration piece on the pipeline, setting the name of the logical support point as the name of the corresponding penetration piece, and entering S1.5.6;
s1.5.6, adjusting the attribute of the logical support point according to the attribute of the penetration piece, and entering S1.5.7;
s1.5.7, updating corresponding entries in the incidence relation data table recorded in the database, and entering S1.5.8;
s1.5.8, and end.
Preferably, the creating of the relationship in S1.8 includes the following steps:
s1.8.1, summarizing upper-layer pipe names of feature objects in all feature lists, updating corresponding passing pipeline attributes of the current penetration piece, and entering S1.8.2;
s1.8.2, checking whether there is oid association relation with main key as current penetration piece in the association relation data table, if yes, entering S1.8.3; otherwise go to S1.8.4;
s1.8.3, updating the related item information of the corresponding item, and entering S1.8.5 after the updating is finished;
s1.8.4, insert the relationship of the current pass-through and the associated item featureList into the data table, enter S1.8.5;
s1.8.5, and end.
Preferably, the automatically maintaining and automatically updating in S3 includes the following steps:
s3.1, checking the type of the current modified item, if the type is the pipeline feature, entering S3.2, if the type is the penetration piece, entering S3.6, and if the type is the penetration piece, directly entering S3.12;
s3.2, checking whether a main key is an associated item oid of the current pipeline feature in the association relation data table, if so, entering S3.3, otherwise, directly entering S3.12, if not, indicating that the current pipeline feature has no associated item;
s3.3, if the pipeline feature name stored in the association relation is inconsistent with the pipeline name corresponding to the current pipeline feature, entering S3.4; otherwise, directly entering S3.12;
s3.4, updating the pipeline names stored in the association items inquired in the S3.2, searching all data items associated with the current pipeline feature and all associated penetration lists in the association relation data table, updating the pipeline names corresponding to the current pipeline feature in the data items, and simultaneously updating to enter S3.5;
s3.5, for the penetration pieces in the penetration piece list, updating the pipeline names corresponding to the current pipeline feature in the corresponding pipe penetration attributes, and entering S3.12;
s3.6, checking whether an associated entry of oid with a main key as a current penetration piece exists in the association relation data table, if so, entering S3.7, otherwise, directly entering S3.12, if not, indicating that the current penetration piece has no associated entry;
s3.7, recording the name of the penetration piece, oldSleeveName, recorded in the association relation database, and entering S3.8 if the name of the penetration piece stored in the association relation is inconsistent with the name of the current penetration piece; otherwise, directly entering S3.9;
s3.8, updating the names of the penetration pieces stored in the association entries inquired in the S3.6, searching all data entries related to the current penetration pieces in the association relation data table, updating the names corresponding to the current penetration pieces in the data entries into the names of the current penetration pieces, and entering S3.9;
s3.9, finding all the pipeline feature set feature Lists associated with the current penetration piece through the association relation data table, and entering S3.10;
s3.10, circularly traversing the featureList, entering S3.12 after traversing is finished, and otherwise, entering S3.11;
s3.11, finding out a logical support point with the name of oldSleeveName on the current feature, updating the corresponding attribute of the logical support 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 the database; if the data table is not established, S4.2 is carried out after the data table is established; if yes, directly entering S4.2;
s4.2, finding out all incidence relation items which do not exist in the current item and correspond to the items corresponding to the main keys in the incidence relation data table, and entering S4.3;
s4.3, acquiring a corresponding associated item list refList in the associated items found in S4.2, and entering S4.4;
s4.4, circularly traversing the refList, entering S4.8 after traversing is finished, and otherwise, entering S4.5;
s4.5, if the current item is the pipeline feature, entering S4.6, otherwise, if the current item is a penetration piece, entering S4.7, and otherwise, directly returning to S4.4;
s4.6, processing the pipeline feature object, and returning to S4.4 after the processing is finished;
s4.7, processing the penetration piece object, and returning to S4.4 after the penetration piece object is processed;
s4.8, deleting all the associated items found in the S4.2, and entering S4.9;
and S4.9, ending.
Preferably, the processing of the pipeline feature object in S4.6 includes the following steps:
s4.6.1, finding out the association relation item oid with the primary key being the current pipeline feature from the association relation data table, and entering S4.6.2;
s4.6.2, finding oid set oid List of all the penetrating object involved in the incidence relation entry, entering S4.6.3;
s4.6.3, circularly traversing oid in the oid List, entering S4.6.5 after traversing is completed, and otherwise entering S4.6.4;
s4.6.4, checking whether the current oid is in the jdobject table of the project database, if it still exists, putting it in existList, otherwise, putting it in deleteList, and returning to S4.6.3;
s4.6.5, if existList is not empty, updating the associated objects in the associated relationship entry found in S4.6.1 to be all items in existList, entering S4.6.6; otherwise, the current feature has no associated item, the associated relation item found in S4.6.1 is directly deleted, and the process enters S4.6.6;
s4.6.6, if deleteList is empty, go directly to S4.6.7; otherwise, deleting all the logic support points in the name set of the penetration piece with the name appearing in the deleteList on the current pipeline feature, and entering S4.6.7 after the deletion is completed;
s4.6.7, and ending.
Preferably, the processing of the penetration object in S4.7 includes:
s4.7.1, finding all the pipeline feature objects in the association relation with the current through-component from the association relation data table, finding the pipeline feature object set feature List which is not deleted yet, and entering S4.7.2;
s4.7.2, if the featureList is not empty, finding the associated entry with the primary key being the current through-piece oid from the association relation data table, updating the associated entry to be the entry set in the featureList, and entering S4.7.3; otherwise, directly deleting the associated entry of which the primary key is the current penetration piece oid from the association relation data table, and entering S4.7.3 because the associated entry does not exist in the current penetration piece any more;
s4.7.3, updating the pipe penetrating information attribute of the current penetration piece according to the information collected in the featureList, and entering S4.7.4 after the completion;
s4.7.4, and end.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention provides a method for establishing an incidence relation between a pipeline and a penetrating piece item in an S3D model, which is characterized in that the incidence relation which needs to be manually recorded outside the model by a designer is stored in the model, and no additional data transmission link is needed in the subsequent work development of calculation analysis and the like, so that the working efficiency is improved;
2. according to the method for establishing the association relationship between the pipeline and the penetrating member item in the S3D model, provided by the invention, the full-automatic relationship maintenance of the associated item is realized by using the DesignRuleChecker frame and compiling corresponding services, manual intervention of designers is not needed, a large amount of working time is saved, and meanwhile, the error risk of manual maintenance is avoided;
3. according to the method for establishing the association relationship between the pipeline and the penetrating piece item in the S3D model, the used method thought and frame can be conveniently applied to the establishment of the association relationship between other items in the S3D model, and the method is good in expansibility and strong in adaptability;
4. the method for establishing the association relationship between the pipeline and the penetrating member item in the S3D model provided by the invention simultaneously considers the convenience in establishing the association relationship, provides an interface for displaying, deleting and downloading the existing association relationship, is convenient to operate and use and has good convenience.
Drawings
FIG. 1 is a flowchart of an implementation method for establishing a bidirectional association relationship between a pipeline and a penetration assembly according to an embodiment of the present invention;
FIG. 2 is a flowchart of an implementation method for creating a relationship between a selected pipe feature and a penetration according to an embodiment of the present invention;
FIG. 3 is a flowchart of an implementation method for creating a corresponding rule in a DesignRuleChecker framework according to an embodiment of the present invention;
fig. 4 is a flowchart of an implementation method for automatically deleting an association relation related to a deleted item after a related item is deleted according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention realizes the establishment of the incidence relation between the pipeline and the penetrating piece item and the transmission of the corresponding attribute by developing the corresponding user operation interface, automatically maintains the established incidence relation by using a DesignRuleChecker framework, and automatically disconnects the correlation relation between the deleted item by customizing the service, thereby realizing the whole life cycle management of the incidence relation between the pipeline and the penetrating piece item from establishment, maintenance to deletion in an S3D model; the method for establishing the association relation between the pipeline and the penetrating piece item in the S3D model replaces the work of manually recording and maintaining the pipeline and the pipeline penetrating piece by designers in the past, the working efficiency of the design of the pipeline and the penetrating piece can be greatly improved, and the full-automatic working mode greatly reduces the generation of human errors and improves the working quality;
the invention provides a technical scheme that: a method for establishing an association relationship between a pipeline and a penetrating piece item in an S3D model comprises the following steps:
s1, selecting the pipeline and the penetration piece needing to establish the association relationship by the user, establishing the relationship, transmitting the attribute and generating the corresponding logic point, and recording the corresponding association relationship into the background data table by the software;
s1, the user selects a pipeline and a penetration piece that need to establish an association relationship, and performs relationship creation, attribute transfer, and corresponding logical point generation, and the software records the association relationship into the background data table, including the following steps, as shown in fig. 1:
s1.1, selecting a pipeline feature and a through piece object which need to be associated by a user, respectively storing the through piece object into a 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 data table is not created, S1.3 is carried out after the data table is created; if yes, directly entering S1.3;
s1.3, checking whether a penetration piece associated with the pipeline feature selected by the user exists in the association relation data table or not, and entering S1.4 if the penetration piece exists; if not, go to 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, establishing a relationship between the pipeline feature selected by the user and the penetration piece, and entering S1.6 after the relationship is completed;
s1.5 the create relationship for the user-selected pipe feature and penetration comprises the following steps, as shown in FIG. 2:
s1.5.1, searching the incidence relation database for oid incidence relation item with the main key being the current pipe feature, if yes, entering S1.5.2; otherwise go to S1.5.3;
s1.5.2, finding out logical support points which are consistent with the names of the associated penetration pieces and exist on the current pipeline feature, deleting all the support points, and entering S1.5.3;
s1.5.3, finding out the logical support points which are consistent with the name of the penetration piece selected by the user and exist on the current pipeline feature, deleting all the support points, and entering S1.5.4;
s1.5.4, acquiring two DP point patterns representing an inlet and an outlet of the penetration 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 end point of the current pipeline feature, finding the intersection point of the straight line and the Inplane and the Outplane, placing a logical support point on the intersection point to represent the occupation of the penetration piece on the pipeline, setting the name of the logical support point as the name of the corresponding penetration piece, and entering S1.5.6;
s1.5.6, adjusting the attribute of the logical support point according to the attribute of the penetration piece, and entering S1.5.7;
s1.5.7, updating corresponding entries in the incidence relation data table recorded in the database, and entering S1.5.8;
s1.5.8, end;
s1.6, circularly traversing the penetration piece objects in the toDoList, and entering S1.9 after traversing is finished, or entering S1.7;
s1.7, finding a pipeline feature set feature List which has an association relation with the current penetration piece from the association relation data table, and entering S1.8;
s1.8, establishing a relationship between the current penetration piece and the object in the featureList, and entering S1.6 after the relationship is completed;
s1.8, creating a relationship for the current penetration and the objects in the featureList, comprises the following steps:
s1.8.1, summarizing upper-layer pipe names of feature objects in all feature lists, updating corresponding passing pipeline attributes of the current penetration piece, and entering S1.8.2;
s1.8.2, checking whether there is oid association relation with main key as current penetration piece in the association relation data table, if yes, entering S1.8.3; otherwise S1.8.4 is entered;
s1.8.3, updating the related item information of the corresponding item, and entering S1.8.5 after the updating is finished;
s1.8.4, insert the relationship of the current pass-through and the associated item featureList into the data table, enter S1.8.5;
s1.8.5, end;
s1.9, ending;
s2, the user manages the established association of the current item by accessing the background association database, and provides the query, download and delete of the existing association;
s3, creating a corresponding rule in a DesignRuleChecker framework, and automatically maintaining the association relation according to the association items in the association relation data table, particularly automatically updating the association attributes;
s3 creates a corresponding rule in the design rule checker framework, and performs automatic maintenance of the association relationship according to the association item in the association relationship data table, in particular, the automatic update of the association attribute includes the following steps, as shown in fig. 3:
s3.1, checking the type of the current modified item, if the type is the pipeline feature, entering S3.2, if the type is the penetration piece, entering S3.6, and if the type is the penetration piece, directly entering S3.12;
s3.2, checking whether a main key is an associated item oid of the current pipeline feature in the association relation data table, if so, entering S3.3, otherwise, directly entering S3.12, if not, indicating that the current pipeline feature has no associated item;
s3.3, if the pipeline feature name stored in the association relation is inconsistent with the pipeline name corresponding to the current pipeline feature, entering S3.4; otherwise, directly entering S3.12;
s3.4, updating the pipeline names stored in the association items inquired in the S3.2, searching all data items associated with the current pipeline feature and all associated penetration lists in the association relation data table, updating the pipeline names corresponding to the current pipeline feature in the data items, and simultaneously updating to enter S3.5;
s3.5, for the penetration pieces in the penetration piece list, completely updating the pipeline names corresponding to the current pipeline feature in the corresponding pipe penetration attributes, and entering S3.12;
s3.6, checking whether an associated entry of oid with a main key as a current penetration piece exists in the association relation data table, if so, entering S3.7, otherwise, directly entering S3.12, if not, indicating that the current penetration piece has no associated entry;
s3.7, recording the name of the penetration piece recorded in the association relation database, oldSleeveName, and entering S3.8 if the name of the penetration piece stored in the association relation database is inconsistent with the name of the current penetration piece; otherwise, directly entering S3.9;
s3.8, updating the names of the penetration pieces stored in the association entries inquired in the S3.6, searching all data entries related to the current penetration pieces in the association relation data table, updating the names corresponding to the current penetration pieces in the data entries into the names of the current penetration pieces, and entering S3.9;
s3.9, finding all the pipeline feature set feature Lists associated with the current penetration piece through the association relation data table, and entering S3.10;
s3.10, circularly traversing the featureList, entering S3.12 after traversing is finished, and otherwise, entering S3.11;
s3.11, finding out a logical support point with the name of oldSleeveName on the current feature, updating the corresponding attribute of the logical support point, and returning to S3.10;
s3.12, ending;
s4, creating a custom service, tracking the deleted items in the items at regular time, and automatically deleting the association relation related to the deleted items after the associated items are deleted;
the creating custom service of S4, periodically tracking the deleted item in the item, and implementing the automatic deletion of the association relationship after the associated item is deleted with respect to the deleted item includes the following steps, as shown in fig. 4:
s4.1, searching whether a data table for recording the incidence relation exists in the database; if the data table is not created, S4.2 is carried out after the data table is created; if yes, directly entering S4.2;
s4.2, finding out all incidence relation items which do not exist in the current item and correspond to the items corresponding to the main keys in the incidence relation data table, and entering S4.3;
s4.3, acquiring a corresponding associated item list refList in the associated items found in S4.2, and entering S4.4;
s4.4, circularly traversing the refList, entering S4.8 after traversing is finished, and otherwise, entering S4.5;
s4.5, if the current item is the pipeline feature, entering S4.6, otherwise, if the current item is a penetration piece, entering S4.7, and otherwise, directly returning to S4.4;
s4.6, processing the pipeline feature object, and returning to S4.4 after the processing is finished;
s4.6, the method for processing the pipeline feature object comprises the following steps:
s4.6.1, finding out the association relation item oid with the primary key being the current pipeline feature from the association relation data table, and entering S4.6.2;
s4.6.2, finding oid set oid List of all the penetrating object involved in the incidence relation entry, entering S4.6.3;
s4.6.3, circularly traversing oid in the oid List, entering S4.6.5 after traversing is completed, and otherwise entering S4.6.4;
s4.6.4, checking whether the current oid is in the jdobject table of the project database, if it still exists, putting it into existList, otherwise, putting it into deleteList, returning to S4.6.3;
s4.6.5, if existList is not empty, updating S4.6.1 found association objects in the association entry to all items in existList, entering S4.6.6; otherwise, the current feature has no associated item, the associated relation item found in S4.6.1 is directly deleted, and the process enters S4.6.6;
s4.6.6, if deleteList is empty, go directly to S4.6.7; otherwise, deleting all the logic support points in the name set of the penetration piece with the name appearing in the deleteList on the current pipeline feature, and entering S4.6.7 after the deletion is completed;
s4.6.7, end;
s4.7, processing the penetration piece object, and returning to S4.4 after the penetration piece object is processed;
the processing penetration object of S4.7 comprises the following steps:
s4.7.1, finding all the pipe feature objects which have the relationship with the current through-element from the relationship data table, finding the pipe feature object set featureList which is not deleted, and entering S4.7.2;
s4.7.2, if the featureList is not empty, finding the association entry with the main key being the current through piece oid from the association relationship data table, updating the association entry as the entry set in the featureList, entering S4.7.3; otherwise, directly deleting the associated entry of which the primary key is the current penetration piece oid from the association relation data table, and entering S4.7.3 because the associated entry does not exist in the current penetration piece any more;
s4.7.3, updating the pipe-through information attribute of the current penetration piece according to the information collected in the featureList, and entering S4.7.4 after the completion;
s4.7.4, end;
s4.8, deleting all the associated items found in the S4.2, and entering S4.9;
s4.9, ending;
s5, ending;
the invention provides a method for establishing an incidence relation between a pipeline and a penetrating piece item in an S3D model, which is characterized in that the incidence relation which needs to be manually recorded outside the model by a designer is stored in the model, and no additional data transmission link is needed in the subsequent work development of calculation analysis and the like, so that the working efficiency is improved;
according to the method for establishing the association relationship between the pipeline and the penetrating member item in the S3D model, provided by the invention, the full-automatic relationship maintenance of the associated item is realized by using the DesignRuleChecker frame and compiling corresponding services, manual intervention of designers is not needed, a large amount of working time is saved, and meanwhile, the error risk of manual maintenance is avoided;
according to the method for establishing the association relationship between the pipeline and the penetrating piece item in the S3D model, the used method thought and frame can be conveniently applied to the establishment of the association relationship between other items in the S3D model, and the method is good in expansibility and strong in adaptability;
the method for establishing the association relationship between the pipeline and the penetrating member item in the S3D model provided by the invention simultaneously considers the convenience in establishing the association relationship, provides an interface for displaying, deleting and downloading the existing association relationship, is convenient for a user to operate and use, and has good convenience.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and alterations can be made in these embodiments 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. A method for establishing an association relationship between a pipeline and a penetrating piece item in an S3D model is characterized by comprising the following steps:
s1, selecting the pipeline and the penetration piece which need to establish the association relationship, creating the relationship, transmitting the attribute and generating the corresponding logic point, and recording the corresponding association relationship into the background data table by the software;
s2, managing the established association relation of the current item by accessing the background association relation database, and providing query, download and deletion of the existing association relation;
s3, creating a corresponding rule in a DesignRuleChecker framework, and automatically maintaining the association relation according to the association items in the association relation data table, particularly automatically updating the association attributes;
s4, creating a custom service, tracking the deleted items in the items at regular time, and automatically deleting the association relation related to the deleted items after the associated items are deleted;
and S5, ending.
2. The method for establishing the association relationship between the pipeline and the penetrating member in the S3D model as claimed in claim 1, wherein the S1 comprises the following steps:
selecting a pipeline feature and a through piece object which need to be associated, and respectively storing the through piece object into a toDoList representing a subsequent processing list after the selection is finished;
searching whether a data table for recording the association relation exists in a database; if no creation of this data table exists;
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 penetration piece selected currently or not, and establishing a relation between the selected pipeline feature and the penetration piece;
circularly traversing the through-part objects in the todoList;
finding the pipeline feature set featureLis which have an incidence relation with the current penetration piece from the incidence relation data table;
relationships are created for the current through-pieces and objects in the featureList.
3. The method for establishing an association between a pipeline and a penetration item in an S3D model according to claim 2, wherein the step of creating a relationship between a selected pipeline feature and penetration includes the steps of:
searching oid incidence relation items of which the main keys are current pipeline features from the incidence relation database;
finding out the logic support points which exist on the current pipeline feature and are consistent with the names of the associated penetration pieces, and deleting all the support points;
finding out the logic support points which exist on the current pipeline feature and are consistent with the name of the selected penetration piece, and deleting all the support points;
acquiring two DP point patterns representing an inlet and an outlet of the penetration piece, and constructing bottom plane Inplane and Outplane of the two DP points;
constructing a straight line according to the starting point and the end point of the current pipeline feature, finding an intersection point of the straight line and Inplane and Outplane, placing a logical support point on the intersection point to represent the occupation of a penetrating piece on the pipeline, and setting the name of the logical support point as the name of the corresponding penetrating piece;
adjusting the attribute of the logic support point according to the attribute of the penetration piece;
updating corresponding entries in the record association relation data table in the database;
and (6) ending.
4. The method of claim 2, wherein said creating relationships for current penetrations and objects in featureList comprises the steps of:
summarizing upper-layer pipe names of feature objects in all feature lists, and updating corresponding passing pipeline attributes of the current penetration piece;
checking whether the incidence relation of oid with the main key as the current penetration exists in the incidence relation data table;
updating the related item information of the corresponding item;
insert the relationship of the current pass-through and the associated item, featureList, into the data table.
5. The method of claim 1 for establishing an association between a pipeline and a through-member item in an S3D model, wherein the automatic maintenance and update comprises the steps of:
checking whether the type of the current modified item is a pipeline feature or a penetration piece;
checking whether an associated entry of oid with the primary key being the current pipeline feature exists in the association relation data table;
judging whether the pipeline feature name stored in the association relation is inconsistent with the pipeline name corresponding to the current pipeline feature;
updating the pipeline names stored in the inquired association items, searching all data items associated with the current pipeline feature and all associated through-piece lists in the association relation data table, and updating the pipeline names corresponding to the current pipeline feature in the data items;
for the penetration pieces in the penetration piece list, all updating the pipeline names corresponding to the current pipeline feature in the corresponding pipe penetration attributes;
checking whether an associated entry of oid with the primary key as the current penetration exists in the association relation data table;
recording the name of the penetration piece recorded in the incidence relation database, oldSleeveName, and judging whether the name of the penetration piece stored in the incidence relation is consistent with the name of the current penetration piece;
searching all data entries related to the current penetration piece in an association relation data table, and updating the name corresponding to the current penetration piece in the data entries into the name of the current penetration piece;
finding all the pipeline feature set feature Lists associated with the current penetration piece through the association relation data table;
and circularly traversing the feature Lis, finding out the logic support point with the name of oldSleeveName on the current feature, and updating the corresponding attribute of the logic support point.
6. The method for establishing the association relationship between the pipeline and the penetrating member in the S3D model as claimed in claim 1, wherein the S4 comprises the following steps:
searching whether a data table for recording the association relation exists in a database;
finding out all association relation entries which do not exist in the current item and correspond to the items corresponding to the main keys in the association relation data table;
acquiring a corresponding associated item list refLis in the found associated items;
circularly traversing the refList, and judging whether the current item is a pipeline feature;
processing a pipeline feature object and processing a penetrating piece object;
all association relation entries that do not already exist in the current item are deleted.
7. The method for establishing association between a pipeline and a penetrating member item in S3D model according to claim 1, wherein the processing of the pipeline feature object includes the following steps:
finding oid incidence relation items with the main key being the current pipeline feature from the incidence relation data table;
finding the oid set oidList of all the through-item objects involved in the association entry;
loop through the oid list oid;
checking whether the current oid is in the jdobject table of the project database, and if the current pass-through still exists, putting the current pass-through into an existList;
if the existList is not empty, updating the association objects in the found association relation entry to all the items in the existList; otherwise, the current feature has no associated item;
if deleteList is empty, directly ending; otherwise delete all logical support points on the current pipe feature whose name appears in the deleteList's collection of pod names.
8. The method of claim 7, wherein the current oid is not in a jdobject table of a project database, and represents that the current penetration has been deleted and put in a deleteList.
9. The method of claim 1 for associating a pipe with a penetration item in an S3D model, wherein the processing the penetration object comprises the steps of:
finding all the pipeline feature objects which have an association relation with the current through-component from the association relation data table, and finding a pipeline feature object set feature List which is not deleted;
if the featureList is not empty, finding the associated entry of which the primary key is the current penetration piece oid from the association relation data table, and updating the associated item to be the item set in the featureList;
and updating the pipe passing information attribute of the current penetration piece according to the information collected in the featureList.
10. The method for establishing associations between pipe and pass-through items in the S3D model as claimed in claim 9, wherein if featureList is empty, the association entry with primary key as current pass-through oid is directly deleted from the association data table because there is no associated item in the current pass-through.
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 true CN114912221A (en) 2022-08-16
CN114912221B CN114912221B (en) 2024-06-21

Family

ID=

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300069A1 (en) * 2008-05-29 2009-12-03 O'sullivan Michael Patrick Method and system for the logical deletion of relational database records
CN110109999A (en) * 2019-05-24 2019-08-09 上海核工程研究设计院有限公司 A kind of S3D threedimensional model turns the system and conversion method of Flowmaster model
CN113096749A (en) * 2021-06-10 2021-07-09 武汉大学深圳研究院 Multi-scale coupling simulation method for preparing n-type co-doped diamond semiconductor material
CN113946926A (en) * 2021-11-08 2022-01-18 上海核工程研究设计院有限公司 System and implementation method for analyzing breakage influence of S3D high-energy pipeline
CN114117586A (en) * 2021-11-01 2022-03-01 上海核工程研究设计院有限公司 Method for establishing incidence relation between supporting and hanging bracket and rooting object thereof in S3D software
CN114139257A (en) * 2021-11-26 2022-03-04 上海核工程研究设计院有限公司 System and method for automatically calculating room number of S3D element

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300069A1 (en) * 2008-05-29 2009-12-03 O'sullivan Michael Patrick Method and system for the logical deletion of relational database records
CN110109999A (en) * 2019-05-24 2019-08-09 上海核工程研究设计院有限公司 A kind of S3D threedimensional model turns the system and conversion method of Flowmaster model
CN113096749A (en) * 2021-06-10 2021-07-09 武汉大学深圳研究院 Multi-scale coupling simulation method for preparing n-type co-doped diamond semiconductor material
CN114117586A (en) * 2021-11-01 2022-03-01 上海核工程研究设计院有限公司 Method for establishing incidence relation between supporting and hanging bracket and rooting object thereof in S3D software
CN113946926A (en) * 2021-11-08 2022-01-18 上海核工程研究设计院有限公司 System and implementation method for analyzing breakage influence of S3D high-energy pipeline
CN114139257A (en) * 2021-11-26 2022-03-04 上海核工程研究设计院有限公司 System and method for automatically calculating room number of S3D element

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李莉娇;: "基于EPDM模型的数据查询与编辑系统的设计及应用", 中国管理信息化, no. 21, 1 November 2013 (2013-11-01) *

Similar Documents

Publication Publication Date Title
JP4010516B2 (en) Conversion rule derivation system
US8892504B2 (en) Method and system for reconciling meta-data in a data warehouse
WO2018051096A1 (en) System for importing data into a data repository
WO2018051097A1 (en) System for analysing data relationships to support query execution
CN102426582B (en) Data manipulation management devices and data manipulation management method
US8037039B2 (en) Runtime class database operation
JP2005302029A (en) Method, system and computer readable medium for providing parameterized queries
WO2003088032A1 (en) Data exchange method and system
AU2012327168B2 (en) Amethod and structure for managing multiple electronic forms and their records using a static database
CN112966118A (en) Operation and maintenance knowledge map construction method
US7707211B2 (en) Information management system and method
CN109615554B (en) Synchronous data system based on intelligent manufacturing and operation method and synchronization method thereof
CN114860689A (en) Method and system for migrating data objects between heterogeneous databases
CN114912221A (en) Method for establishing association relationship between pipeline and penetrating piece item in S3D model
JP3419075B2 (en) Email system
CN114912221B (en) Method for establishing association relation between pipeline and penetrating member item in S3D model
CN110222050A (en) Method and system is transferred for nuclear power plant's three-dimensional database instrument association items
KR100337373B1 (en) A method for Managing Design Information in CAD system
US20020123811A1 (en) Production management system and program
CN111126961A (en) Complex product full life cycle digital mainline service system
JPH03192462A (en) Routine document preparation supporting method
JP2002245099A (en) Design information management system, method for registering and providing three-dimensional data, and recording medium
TWI393062B (en) Electronic files management system
CN117763857A (en) Method and device for acquiring association of logic model and physical model and related equipment
CN112860631A (en) Efficient metadata batch configuration method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
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