CN114895885A - Feature-based recalculation method for three-dimensional detection software - Google Patents
Feature-based recalculation method for three-dimensional detection software Download PDFInfo
- Publication number
- CN114895885A CN114895885A CN202210554583.7A CN202210554583A CN114895885A CN 114895885 A CN114895885 A CN 114895885A CN 202210554583 A CN202210554583 A CN 202210554583A CN 114895885 A CN114895885 A CN 114895885A
- Authority
- CN
- China
- Prior art keywords
- feature
- identification number
- recalculation
- manager
- characteristic
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/311—Functional or applicative languages; Rewrite languages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a feature-based recalculation method for three-dimensional detection software. The method belongs to the technical field of feature recalculation of three-dimensional detection software, can solve the problems of establishing dependency relationship among features and managing, and can solve the problem of effectively searching all features of the dependency relationship. The recalculation method comprises the following steps: updating the features of the three-dimensional inspection software project by recalculating the identification number groups optimized according to the creation order; deleting features from the three-dimensional inspection software item by deleting the current features from the feature manager and deleting the current feature identification number from the recalc manager.
Description
The invention relates to the technical field of feature recalculation of three-dimensional detection software, in particular to a feature-based recalculation method for three-dimensional detection software.
Background
The project recalculation of the three-dimensional detection software is important, the project recalculation of the three-dimensional detection software is composed of a group of feature units, a main process flow is composed of a series of links such as data import, alignment, analysis and form and position tolerance, and each link comprises a plurality of feature units. The detection items are a series of ordered feature unit sets, and features have independent or dependent relations. When the three-dimensional detection software frequently updates or deletes the features, when one feature in the project is changed, the feature units of the whole project have to automatically perform a chain reaction according to the mutual dependency relationship, so that the whole project can keep the latest updating state, and the feature groups needing to be updated are automatically recalculated according to the dependency relationship among the features, namely the recalculation of the project.
Disclosure of Invention
The feature-based recalculation method for the three-dimensional detection software is provided for recalculation of a three-dimensional detection software project, can solve the problems of establishing dependency relationships among features and managing, can solve the problem of effectively searching all features of the dependency relationships, can solve the problem of sequencing the features in sequence according to the creation sequence, and guarantees the smoothness, high efficiency and integrity of the whole project when the features are frequently updated or deleted in the three-dimensional detection software.
The technical problem is solved by the following technical scheme:
the feature-based recalculation method for the three-dimensional detection software comprises the following steps:
(1) creating a feature; creating features by adding the features to a three-dimensional inspection software project feature manager;
(2) updating the characteristics; updating the characteristics of the three-dimensional detection software project through the recalculation identification number groups optimized according to the creation sequence;
(3) deleting the feature; deleting features from the three-dimensional inspection software item by deleting a current feature from the feature manager and deleting a current feature identification number from the recalc manager.
Preferably, the process of adding the features to the feature manager of the three-dimensional detection software project to create the features is as follows:
(1.1) adding the characteristics to a characteristic manager, generating a characteristic identification number, endowing the identification number to the characteristics, and entering a characteristic unit;
(1.2) secondly, checking the dependency of the characteristics,
(1.2.1) if the feature has no dependencies, jump directly to the feature location,
(1.2.2) if there is a dependency, checking whether it has a parental feature,
(1.2.2.2) adding a dependency identification number to the feature cell if there is no parent feature;
(1.2.2.1) adding both the parent identification number and the dependency identification number to the feature cell if the parent feature is present;
and (1.3) after the characteristic unit is determined, adding the current characteristic identification number to the recalculation manager and finishing the characteristic creating process.
Preferably, the flow of three-dimensional detection of the update features of the software item is as follows:
(2.1) when updating the feature, checking whether the feature is a parental feature,
(2.1.1) if the feature is not a parent feature, checking its dependency identification number,
(2.1.1.1) adding to the recalculated identification number group if there is a dependent identification number,
(2.1.1.2) ending the change feature flow if there is no dependency identifier;
(2.1.2) if it is a parent feature, searching all sub-feature identifiers and adding to the recalculated identification number group,
(2.2) after all the recalc identification numbers in the recalc identification number group are extracted, entering a recalc manager,
(2.3) acquiring a recalculation identification number group optimized according to the creation sequence according to the registered feature identification number group;
(2.4) starting with index 1, the set of sequentially optimized identification numbers is cycled through all indexes untilnAnd for each index number, acquiring corresponding characteristics, namely acquiring the corresponding characteristics by transmitting the current identification number to the characteristic manager, recalculating the current characteristics, continuously circulating the next index, ending the circulation, and exiting the recalculating process of the characteristics depended when the characteristics are updated.
Preferably, the three-dimensional detection software item deletion characteristic flow is as follows:
when the feature is to be deleted, firstly checking whether the current feature is a parent feature, if not, checking the dependency identification number, adding the dependency identification number to a recalculation identification number group, if so, extracting all sub-feature identification numbers, adding the sub-feature identification numbers to the recalculation identification number group, then entering a recalculation manager, and creating the recalculation manager according to the recalculation managerSequentially optimizing the recalculation identification number groups and the recalculation identification number group index numbersnStarting reverse circulation according to descending order until the index number is 1, obtaining corresponding characteristics for each index number, wherein the corresponding characteristics are obtained by transmitting identification numbers to a characteristic manager, deleting the identification numbers from the characteristic manager, performing reconstruction on the current characteristics to release a memory, finally deleting the current identification numbers from a recalculation manager, continuing circulation indexing, ending circulation, and finally entering post-processing, wherein the post-processing comprises deleting the current identification number characteristics from the characteristic manager, deleting the current identification numbers from the recalculation manager, and exiting the recalculation process of the characteristics depending on the deleted characteristics.
The invention can achieve the following effects:
the method adopts a recalculation method based on the characteristics in the three-dimensional detection software project, solves the problems of establishing the dependency relationship among the characteristics and managing, effectively searches all the characteristics of the dependency relationship, sequentially sorts the characteristics according to the creation sequence, and ensures the fluency, high efficiency and integrity of automatically recalculating the whole project when the characteristics are frequently updated or deleted in the three-dimensional detection software.
Drawings
FIG. 1 is a flow diagram of a recalc manager update that creates features of the present invention.
FIG. 2 is a flow chart of recalculation of features relied upon in updating features according to the present invention.
FIG. 3 is a flow chart of recalculation of features relied upon when deleting features according to the present invention.
Detailed Description
The invention is further described with reference to the following figures and examples.
In an embodiment, a feature-based recalculation method of three-dimensional detection software, as shown in figure 1,
(1) creating features by adding the features to a three-dimensional inspection software project feature manager;
the process of adding features to the three-dimensional detection software project feature manager to create features is as follows:
(1.1) adding the characteristics to a characteristic manager, generating a characteristic identification number, endowing the identification number to the characteristics, and entering a characteristic unit;
(1.2) the dependency of the feature to be checked,
(1.2.1) if the feature has no dependencies, jump directly to the feature location,
(1.2.2) if there is a dependency, checking whether it has a parental feature,
(1.2.2.2) adding a dependency identification number to the feature cell if there is no parent feature;
(1.2.2.1) adding both the parent identification number and the dependency identification number to the feature cell if the parent feature is present;
and (1.3) after the characteristic unit is determined, adding the current characteristic identification number to the recalculation manager and finishing the characteristic creating process.
Referring to fig. 2, (2) updating the features of the three-dimensional inspection software item by recalculating the groups of identification numbers optimized in the creation order;
the three-dimensional detection software project updating characteristic flow comprises the following steps:
(2.1) when updating the feature, checking whether the feature is a parental feature,
(2.1.1) if the feature is not a parent feature, checking its dependency identification number,
(2.1.1.1) adding to the recalculated identification number group if there is a dependent identification number,
(2.1.1.2) ending the change feature flow if there is no dependency identifier;
(2.1.2) if it is a parent feature, searching all sub-feature identifiers and adding to the recalculated identification number group,
(2.2) after all the recalc identification numbers in the recalc identification number group are extracted, entering a recalc manager,
(2.3) acquiring a recalculation identification number group optimized according to the creation sequence according to the registered feature identification number group;
(2.4) starting with index 1, the set of sequentially optimized identification numbers is cycled through all indexes untilnFor each index numberAnd acquiring corresponding characteristics, namely transmitting the current identification number to the characteristic manager to acquire the corresponding characteristics, performing recalculation on the current characteristics, continuing to cycle the next index, ending the cycle, and exiting the recalculation process of the dependent characteristics when the characteristics are updated.
Referring to FIG. 3, (3) remove feature for the three-dimensional inspection software item by removing the current feature from the feature manager and the current feature identification number from the recalc manager.
The three-dimensional detection software item deletion characteristic flow is as follows:
when the characteristics are to be deleted, firstly checking whether the current characteristics are parental characteristics, if not, checking the dependency identification number, adding the dependency identification number into a recalculation identification number group, if so, extracting all sub-characteristic identification numbers, adding the sub-characteristic identification numbers into the recalculation identification number group, then entering a recalculation manager, sequentially optimizing the recalculation identification number group according to the creation sequence in the recalculation manager, and re-calculating the index number of the recalculation identification number groupnStarting reverse circulation according to descending order until the index number is 1, obtaining corresponding characteristics for each index number, wherein the corresponding characteristics are obtained by transmitting identification numbers to a characteristic manager, deleting the identification numbers from the characteristic manager, performing reconstruction on the current characteristics to release a memory, finally deleting the current identification numbers from a recalculation manager, continuing circulation indexing, ending circulation, and finally entering post-processing, wherein the post-processing comprises deleting the current identification number characteristics from the characteristic manager, deleting the current identification numbers from the recalculation manager, and exiting the recalculation process of the characteristics depending on the deleted characteristics.
The method adopts a recalculation method based on the characteristics in the three-dimensional detection software project, solves the problems of establishing the dependency relationship among the characteristics and managing, effectively searches all the characteristics of the dependency relationship, sequentially sorts the characteristics according to the creation sequence, and ensures the fluency, high efficiency and integrity of automatically recalculating the whole project when the characteristics are frequently updated or deleted in the three-dimensional detection software.
Claims (4)
1. The feature-based recalculation method for the three-dimensional detection software is characterized by comprising the following steps of:
(1) creating a feature; creating features by adding the features to a three-dimensional inspection software project feature manager;
(2) updating the characteristics; updating the characteristics of the three-dimensional detection software project through recalculation of the identification number groups optimized according to the creation sequence;
(3) deleting the feature; deleting features from the three-dimensional inspection software item by deleting the current features from the feature manager and deleting the current feature identification number from the recalc manager.
2. The feature-based recalculation method of three-dimensional inspection software as claimed in claim 1, wherein the process of adding features to the feature manager of the three-dimensional inspection software project to create features is as follows:
(1.1) adding the characteristics to a characteristic manager, generating a characteristic identification number, endowing the identification number to the characteristics, and entering a characteristic unit;
(1.2) the dependency of the feature to be checked,
(1.2.1) if the feature has no dependencies, jump directly to the feature location,
(1.2.2) if there is a dependency, checking whether it has a parental feature,
(1.2.2.2) adding a dependency identification number to the feature cell if there is no parent feature;
(1.2.2.1) adding both the parent identification number and the dependency identification number to the feature cell if the parent feature is present;
and (1.3) after the characteristic unit is determined, adding the current characteristic identification number to the recalculation manager and finishing the characteristic creating process.
3. The feature-based recalculation method of three-dimensional inspection software according to claim 1,
the three-dimensional detection software project updating characteristic flow comprises the following steps:
(2.1) when updating the feature, checking whether the feature is a parental feature,
(2.1.1) if the feature is not a parent feature, checking its dependency identification number,
(2.1.1.1) adding to the recalculated identification number group if there is a dependent identification number,
(2.1.1.2) ending the change feature flow if there is no dependency identifier;
(2.1.2) if it is a parent feature, searching all sub-feature identifiers and adding to the recalculated identification number group,
(2.2) after all the recalc identification numbers in the recalc identification number group are extracted, entering a recalc manager,
(2.3) acquiring a recalculation identification number group optimized according to the creation sequence according to the registered feature identification number group;
(2.4) starting with index 1, the set of sequentially optimized identification numbers is cycled through all indexes untilnAnd for each index number, acquiring corresponding characteristics, namely acquiring the corresponding characteristics by transmitting the current identification number to the characteristic manager, recalculating the current characteristics, continuously circulating the next index, ending the circulation, and exiting the recalculating process of the characteristics depended when the characteristics are updated.
4. The feature-based recalculation method of three-dimensional inspection software according to claim 1,
the three-dimensional detection software item deletion characteristic flow is as follows:
when the characteristics are to be deleted, firstly checking whether the current characteristics are parental characteristics, if not, checking the dependency identification number, adding the dependency identification number into a recalculation identification number group, if so, extracting all sub-characteristic identification numbers, adding the sub-characteristic identification numbers into the recalculation identification number group, then entering a recalculation manager, sequentially optimizing the recalculation identification number group according to the creation sequence in the recalculation manager, and re-calculating the index number of the recalculation identification number groupnStarting reverse circulation in descending order until the index number is 1;
for each index number, acquiring corresponding features, wherein the corresponding features are acquired by transmitting identification numbers of the corresponding features to a feature manager, deleting the identification numbers of the corresponding features from the feature manager, performing parsing on the current features to release a memory, finally deleting the current identification numbers from a recalculation manager, continuing to circularly index, and finishing the circulation;
and finally, entering post-processing, wherein the post-processing comprises deleting the current identification number characteristic from the characteristic manager, deleting the current characteristic identification number from the recalculation manager, and exiting the recalculation process of the dependent characteristic when the characteristic is deleted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210554583.7A CN114895885B (en) | 2022-05-20 | 2022-05-20 | Feature-based recalculation method in three-dimensional detection software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210554583.7A CN114895885B (en) | 2022-05-20 | 2022-05-20 | Feature-based recalculation method in three-dimensional detection software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114895885A true CN114895885A (en) | 2022-08-12 |
CN114895885B CN114895885B (en) | 2023-08-15 |
Family
ID=82723918
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210554583.7A Active CN114895885B (en) | 2022-05-20 | 2022-05-20 | Feature-based recalculation method in three-dimensional detection software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114895885B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115345006A (en) * | 2022-08-16 | 2022-11-15 | 杭州宏深科技有限公司 | Three-dimensional digital flexible online detection method based on characteristic template |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040153824A1 (en) * | 2002-07-23 | 2004-08-05 | Venkat Devarajan | System and method for creating and updating a three-dimensional model and creating a related neutral file format |
US20060106485A1 (en) * | 2004-10-01 | 2006-05-18 | Landers Diane M | Enhanced digital process design methodology for process centric CAD systems |
US20120079502A1 (en) * | 2010-09-27 | 2012-03-29 | Microsoft Corporation | Dependency-ordered resource synchronization |
US20120173212A1 (en) * | 2010-12-30 | 2012-07-05 | Dassault Systemes | Modeled object updating |
JP2014089530A (en) * | 2012-10-29 | 2014-05-15 | Azapa Co Ltd | Model analysis support program and model analysis support device |
CN106774173A (en) * | 2016-12-06 | 2017-05-31 | 中国电子科技集团公司第三十八研究所 | Three-dimensional typical machined skill method for designing and device |
CN106960088A (en) * | 2017-03-13 | 2017-07-18 | 西北工业大学 | The three-dimensional process model automatic update method changed towards process |
US20180082128A1 (en) * | 2016-09-20 | 2018-03-22 | Hewlett Packard Enterprise Development Lp | Detecting Changes in 3D Scenes |
CN108804782A (en) * | 2018-05-25 | 2018-11-13 | 西安工业大学 | The associated three-dimensional process model change of feature based and maintaining method |
CN109643442A (en) * | 2016-10-12 | 2019-04-16 | 惠普发展公司,有限责任合伙企业 | Sub-volume Octree |
CN112000321A (en) * | 2020-09-01 | 2020-11-27 | 杭州宏深科技有限公司 | Method and device for realizing undo and/or redo of three-dimensional detection software |
CN113568368A (en) * | 2021-07-30 | 2021-10-29 | 北京石油化工学院 | Self-adaptive determination method for industrial control data characteristic reordering algorithm |
-
2022
- 2022-05-20 CN CN202210554583.7A patent/CN114895885B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040153824A1 (en) * | 2002-07-23 | 2004-08-05 | Venkat Devarajan | System and method for creating and updating a three-dimensional model and creating a related neutral file format |
US20060106485A1 (en) * | 2004-10-01 | 2006-05-18 | Landers Diane M | Enhanced digital process design methodology for process centric CAD systems |
US20120079502A1 (en) * | 2010-09-27 | 2012-03-29 | Microsoft Corporation | Dependency-ordered resource synchronization |
US20120173212A1 (en) * | 2010-12-30 | 2012-07-05 | Dassault Systemes | Modeled object updating |
JP2014089530A (en) * | 2012-10-29 | 2014-05-15 | Azapa Co Ltd | Model analysis support program and model analysis support device |
US20180082128A1 (en) * | 2016-09-20 | 2018-03-22 | Hewlett Packard Enterprise Development Lp | Detecting Changes in 3D Scenes |
CN109643442A (en) * | 2016-10-12 | 2019-04-16 | 惠普发展公司,有限责任合伙企业 | Sub-volume Octree |
CN106774173A (en) * | 2016-12-06 | 2017-05-31 | 中国电子科技集团公司第三十八研究所 | Three-dimensional typical machined skill method for designing and device |
CN106960088A (en) * | 2017-03-13 | 2017-07-18 | 西北工业大学 | The three-dimensional process model automatic update method changed towards process |
CN108804782A (en) * | 2018-05-25 | 2018-11-13 | 西安工业大学 | The associated three-dimensional process model change of feature based and maintaining method |
CN112000321A (en) * | 2020-09-01 | 2020-11-27 | 杭州宏深科技有限公司 | Method and device for realizing undo and/or redo of three-dimensional detection software |
CN113568368A (en) * | 2021-07-30 | 2021-10-29 | 北京石油化工学院 | Self-adaptive determination method for industrial control data characteristic reordering algorithm |
Non-Patent Citations (1)
Title |
---|
翁永红: "机械CAD/CAM技术:CREO应用", 华中科技大学出版社, pages: 210 - 35 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115345006A (en) * | 2022-08-16 | 2022-11-15 | 杭州宏深科技有限公司 | Three-dimensional digital flexible online detection method based on characteristic template |
Also Published As
Publication number | Publication date |
---|---|
CN114895885B (en) | 2023-08-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9015214B2 (en) | Process of generating a list of files added, changed, or deleted of a file server | |
EP1278136A2 (en) | Database and method of generating same | |
CN101356527A (en) | File system dump/restore by node numbering | |
CN113239365B (en) | Vulnerability repairing method based on knowledge graph | |
CN114895885A (en) | Feature-based recalculation method for three-dimensional detection software | |
Nguyen et al. | Scalable and incremental clone detection for evolving software | |
CN111666468A (en) | Method for searching personalized influence community in social network based on cluster attributes | |
CN103699647A (en) | Character string dictionary indexing method and system | |
CN109741034B (en) | Grid tree organization management method and device | |
US20070220420A1 (en) | System and method for efficient maintenance of indexes for XML files | |
CN115098109A (en) | Directed graph-based code warehouse code block level conflict sorting and grouping method | |
CN109977128B (en) | Power grid planning data fusion method based on temporal dimension | |
CN109254962B (en) | Index optimization method and device based on T-tree and storage medium | |
CN111143483A (en) | Method, apparatus and computer readable storage medium for determining data table relationships | |
JP2020053042A (en) | Method for conversion of source code into numeric identifiers and comparison against data sets | |
CN102841988A (en) | System and method for matching nucleotide sequence information | |
CN115374939A (en) | Expert knowledge base construction method based on multi-label dynamic update | |
CN113793063A (en) | Method and device for detecting conflict of power distribution network planning project schemes | |
CN114547286A (en) | Information searching method and device and electronic equipment | |
CN117348915B (en) | Automatic kernel code synchronization method and system | |
Badr et al. | Component-based matching for multiple interacting RNA sequences | |
CN115203053A (en) | Code clone detection method based on frequent sequence mining | |
CN114675839B (en) | Code warehouse Java conflict file sorting and grouping method based on directed graph | |
CN106354834B (en) | Optimization method for full-text retrieval by XML data differentiated storage | |
CN109542897B (en) | Method and system for binary search tree |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: Room 311, Building 1, No. 666 Jianshe Second Road, Economic and Technological Development Zone, Xiaoshan District, Hangzhou City, Zhejiang Province, 311200 Patentee after: Hangzhou Hongshen Technology Co.,Ltd. Address before: Room 3906, Building 5, Lanjue International Center, No. 358, Jincheng Road, Beigan Street, Xiaoshan District, Hangzhou City, Zhejiang Province, 311202 (Self-division) Patentee before: Hangzhou Hongshen Technology Co.,Ltd. |