CN112100775A - Constraint regeneration system and method based on three-dimensional model - Google Patents

Constraint regeneration system and method based on three-dimensional model Download PDF

Info

Publication number
CN112100775A
CN112100775A CN202010977946.9A CN202010977946A CN112100775A CN 112100775 A CN112100775 A CN 112100775A CN 202010977946 A CN202010977946 A CN 202010977946A CN 112100775 A CN112100775 A CN 112100775A
Authority
CN
China
Prior art keywords
constraint
feature
function
assembly
state
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.)
Pending
Application number
CN202010977946.9A
Other languages
Chinese (zh)
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.)
Hefei University of Technology
Original Assignee
Hefei University of Technology
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 Hefei University of Technology filed Critical Hefei University of Technology
Priority to CN202010977946.9A priority Critical patent/CN112100775A/en
Publication of CN112100775A publication Critical patent/CN112100775A/en
Pending legal-status Critical Current

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
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/04Constraint-based CAD

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a constraint regeneration system and a method thereof based on a three-dimensional model, wherein the system comprises: assembling an assembly body, constraining and regenerating a module and a characteristic geometric constraint and regenerating a module; the assembly body assembly constraint regeneration module comprises: assembling a constraint regeneration unit; the characteristic geometric constraint regeneration module comprises: the device comprises a drawing sketch cross section reference unit, a chamfer edge unit and an assembly sketch unit. The invention can realize the fast regeneration of the three-dimensional model based on the constraint, shorten the regeneration time of the error model and improve the design efficiency and quality.

Description

Constraint regeneration system and method based on three-dimensional model
Technical Field
The invention belongs to the technical field of three-dimensional model modeling, and relates to a constraint regeneration system and method based on a three-dimensional model.
Background
At present, more and more companies use CAD software to create three-dimensional models of products, regeneration failure of parameterized CAD software models in design and production is mostly caused by loss or error of feature references, the references are generally divided into two categories, namely assembly constraint references and geometric references, external references introduced by the former are assembly constraint information or dimension positioning information, loss of the geometric references refers to that the parent features of failed features serve as parts of the three-dimensional models, and in a traditional CAD design system, for the three-dimensional models which are failed to regenerate due to the loss or error of the feature references, manual click 'edit definition' one by one is needed to reselect the feature references. In the three-dimensional model design, the disadvantages of the conventional CAD design method are mainly expressed in that:
I. each wrong model in the assembly body needs to be modified for many times manually by a designer;
II. When the types of the elements and the characteristics of the assembly body are multiple and complex, a large amount of repeated operation is required by a designer, and the time is wasted;
III, even if the modification and addition of the feature reference are manually performed in the whole assembly, the problem of failure in feature generation due to operation may occur again in the design operation in the later stage, and the problem may occur repeatedly.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, and provides a constraint regeneration system and a constraint regeneration method based on a three-dimensional model, so that new constraints can be generated quickly, efficiently and accurately under the condition of not changing the size, shape and position of the model, thereby realizing the quick regeneration of the three-dimensional model based on the constraints, reducing unnecessary repeated operation of designers, shortening the regeneration time of an error model, improving the design efficiency and quality and saving the design time.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
the invention relates to a constraint regeneration system based on a three-dimensional model, which is characterized by comprising the following components: assembling an assembly body, constraining and regenerating a module and a characteristic geometric constraint and regenerating a module;
the assembly body assembly constraint regeneration module comprises: a part assembly constraint regeneration unit;
the feature geometric constraint regeneration module comprises: the device comprises a drawing sketch cross section constraint unit, a chamfer edge unit and an assembly sketch feature constraint unit;
the part assembly constraint regeneration unit selects parts needing to be regenerated into an assembly relation in a given assembly body, deletes the original constraint relation of the selected parts, and regenerates a fixed constraint relation, thereby forming a regenerated assembly constraint relation model;
the stretching sketch cross section constraint unit obtains stretching characteristics lost by constraint in the sketch cross section in a given part, and then replaces the lost constraint in the sketch cross section with new constraint according to a characteristic element tree of the stretching characteristics, so as to obtain new constraint in the sketch cross section of the stretching characteristics;
the chamfering edge unit obtains the missing chamfering feature of the chamfering edge in a given part, and then deletes the corresponding missing chamfering edge according to the feature element tree of the chamfering feature, so as to obtain a new chamfering edge in the chamfering feature;
the assembly sketch feature constraint unit obtains constraint lost sketch features in a given assembly, and then replaces lost constraints in sketch cross sections with new constraints according to a feature element tree of the sketch features, so that new constraints in sketch cross sections of the sketch features are obtained.
The invention relates to a constraint regeneration method based on a three-dimensional model, which is characterized by comprising the following steps of;
step 1, loading an external input model, comprising: parts, assemblies, part features;
step 2, classifying the external input model characteristics to obtain an assembly constraint relation, a stretched sketch cross section geometric constraint relation, a chamfer edge and an assembly sketch cross section geometric constraint relation among assembly parts;
step 3, regenerating an assembly constraint relation between parts of the assembly body based on a Pro/Toolkit development tool;
step 4, obtaining geometric constraint characteristics:
step 4.1, obtaining a part containing a stretching characteristic in the assembly body, and finding out the stretching characteristic lost by geometric constraint in a sketched section of the stretching characteristic in the part; thereby regenerating the geometric constraint relationship in the sketched cross-section of the stretched feature based on the Pro/Toolkit development tool;
step 4.2, obtaining a part containing the chamfering feature in the assembly body, and finding out the chamfering feature with the lost chamfering edge in the part; thereby regenerating the chamfered edge based on the Pro/Toolkit development tool;
4.3 obtaining sketch characteristics in the assembly body, and finding out sketch characteristics of the assembly body with the geometric constraint of the sketch cross section lost; thereby re-sketching the geometric constraint relationship of the sketched sections of the feature based on the Pro/Toolkit development tool.
The reference-based three-dimensional model regeneration method is also characterized in that the step 3 is carried out according to the following process:
step 3.1, acquiring the handle of the external input model by using an acquisition function ProMdlCurrentGet () of the handle of the current model;
step 3.2, setting an access function FeatureAsmVisitAcFn and a filter function FeatFilterAction in a characteristic access function ProSolidFeatVisit (), so as to obtain all assembly elements in the assembly body;
step 3.3, obtaining the constraint of the assembly element by using a constraint obtaining function ProAsmcompConstraintsGet () and storing the constraint in a constraint array, wherein the constraint state comprises the following steps: fully constrained, incompletely constrained;
step 3.4, acquiring the constraint reference of the assembly element stored in the constraint array by using a constraint reference function ProAsmComponstraint AsmreferenceGet ();
step 3.5, based on the constraint reference, utilizing a state access function ProReferenceStatusGet () to judge the state of each constraint reference, and if the state is PRO _ REF _ NOT _ FOUND, the reference is lost and is in an incomplete constraint state;
step 3.6, deleting the constraint of the incomplete constraint state by using a function ProAsmComConstresRemove () for deleting the assembly constraint;
and 3.7, setting the relationship type of the element of which the incomplete constraint state constraint is deleted into a PRO _ ASM _ FIX fixed constraint by using a setting function ProAsmComponsorlaceTypeSet () of the constraint type, thereby regenerating the assembly constraint relationship of the assembly element.
In the step 4.1, the geometric constraint relation in the sketched section of the stretching characteristic is regenerated according to the following process:
step 4.1.1, acquiring the handle of the external input model by using an acquisition function ProMdlCurrentGet () of the handle of the current model;
step 4.1.2, setting an access function FeatureAsmVisitAcfN and a filter function FeatFilterAction in a characteristic access function ProSolidFeatVisit (), so as to obtain all assembly elements in the assembly body;
step 4.1.3, acquiring feature types of the features in all the assembly elements by using a function ProFeatureTypeGet () of the feature types, wherein the stretching features comprise the following types: PRO _ FEAT _ PROTRUSION represents a boss stretch feature, PRO _ FEAT _ CUT represents a CUT feature;
step 4.1.4, obtaining the state of the feature in all the assembly elements by using the feature state function ProFeatureStatusGet (), including: PRO _ FEAT _ UNREGENERATED means that the feature cannot regenerate state;
step 4.1.5, acquiring external parent feature reference of the stretching feature by using an external parent feature function ProFeatureExternParentGet (), and acquiring the state of the stretching feature by using a state function ProExtrafStateGet () referenced by the external feature;
step 4.1.6, if the obtained states of the features in all the assembly elements include a PRO _ FEAT _ UNREGENERATED state, namely a feature non-regeneration state, or the obtained state of the tensile feature is a PRO _ REF _ MISSING state, namely an entity lacking reference in the current model; representing that the stretched feature loses geometric constraints and obtaining an identifier of a sketched section of the stretched feature using a feature element tree access function ProFeatureElemtreeExtract ();
step 4.4.7, acquiring all entities in the sketch cross section by using a cross section entity function ProSectionEntityGet (), judging whether the corresponding entities are projection-generated entities or not by using a projection judgment function ProSectionEntityIsProjection (), if so, deleting the entities generated by projection, and otherwise, not deleting;
step 4.4.8, setting the access type to PRO _ SURFACAT by using a geometric access function ProFeatureGeomitVisive (), thereby obtaining a FRONT reference plane FRONT, a RIGHT reference plane RIGHT and an upper reference plane TOP, and setting the three reference planes as new geometric constraints of the stretching characteristics by using a projection creation entity function ProSectionEntityFromProjection ();
and 4.4.9, regenerating a corresponding constraint size for the new geometric constraint in the sketched section of the stretching feature by using an automatic marking function ProSectionAutodim () so as to generate a new geometric constraint relation of the stretching feature.
And 4.2, regenerating the chamfered edge according to the following process:
4.2.1, acquiring the handle of the external input model by using an acquisition function ProMdlCurrentGet () of the handle of the current model;
step 4.2.2, setting an access function FeatureAsmVisitAcfN and a filter function FeatFilterAction in a characteristic access function ProSolidFeatVisit () to acquire all assembly elements in the assembly body;
step 4.2.3, obtaining the type of the feature in all the assembly elements by using the function ProFeatureTypeGet () of the feature type, including: PRO _ feed _ ROUND represents a fillet feature, PRO _ feed _ CHAMFER represents a fillet feature;
step 4.2.4, obtaining an element tree of the chamfering feature by using a feature element tree access function ProFeatureElemtreeExtract (), obtaining a curve set in the chamfering feature by using an element set function ProElementCollectionGet (), and finally obtaining an indication array of the curve set by using a curve set indication function ProCrvccollectionInstructionGet ();
step 4.2.5, obtaining the constraint indicated by the curve set by using a chamfer edge set indication reference obtaining function ProCrvCollingStrenterReferenceGet (), and obtaining the constraint state indicated by the curve set by using a constraint state function ProReferenceStatusGet (), which comprises the following steps: the PRO _ REF _ ACTIVE state indicates that the referenced entity on the chamfered edge is up-to-date, and the PRO _ REF _ NOT _ FOUND state indicates that the constraint is lost;
step 4.2.6, reserving the chamfered edge in the PRO _ REF _ ACTIVE state, obtaining an identifier of the chamfered edge, and deleting the chamfered edge in the PRO _ REF _ NOT _ FOUND state; thereby obtaining a new curve set;
and 4.2.7, adding a new curve set into the element tree of the chamfer feature by using an element curve set setting function ProElementCollectionSet () and an element adding function ProElementreElementAdd (), thereby regenerating the chamfer edge.
Compared with the prior art, the invention has the beneficial effects that:
1. according to the invention, the condition that the chamfer characteristic is wrong due to model modification is effectively solved by deleting the invalid edge set in the chamfer characteristic and regenerating a new chamfer characteristic.
2. The invention adopts a method of replacing relative points, lines and surfaces on the section when the characteristic modeling is replaced by the default coordinate system and the reference surface in the CAD software, the characteristic generated by the method can not change the characteristic, the possibility of characteristic failure caused by modifying the model later is effectively avoided, the readability of parts is restored, the product model tree is normalized, and the linkage error phenomenon in the model filing process is avoided.
3. According to the method, all the assembly elements and characteristics in the three-dimensional model are traversed by utilizing the cyclic judgment statements, the error modeling in the model is rapidly identified by judging the constraint state, the error is automatically repaired, the working repeatability of designers is reduced, and the working efficiency is improved.
4. The invention adopts the fixed assembly constraint relation to replace the relative constraint relation in the assembly body, maintains the relative position of the assembly elements, and simultaneously deletes the constraint relation among the assembly elements, thereby reducing the mutual influence among the assembly elements and reducing the errors produced in the later design operation.
Drawings
FIG. 1 is a flow chart of the system of the present invention;
FIG. 2 is a system diagram of the three-dimensional model regeneration method of the present invention;
FIG. 3 is a flow chart of a regeneration assembly constraint relationship of the present invention;
FIG. 4 is a flow chart of the regenerated part drawing feature of the present invention;
FIG. 5 is a flow chart of the regenerated part chamfering process of the present invention.
Detailed Description
In this embodiment, the method is used to perform a fast regeneration design on a model that fails to regenerate, and as shown in fig. 1, a module to be used is selected according to a three-dimensional model provided by a user; then judging the reason causing the regeneration failure of the model; selecting a regeneration method, wherein the regeneration method comprises a stretching characteristic, a chamfering characteristic, an assembly body sketch characteristic and an assembly constraint relation; and finally, rapidly regenerating the model. The method and the external communication realize the communication between the regeneration characteristic unit and the Creo platform by using a man-machine interaction menu tool and an application program interface API (application program interface) created by an MFC (micro-functional mass spectrometer), the instantiation expression of the regeneration information of the three-dimensional model is completed, and the regeneration characteristic communication process is shown in figure 1.
In this embodiment, a constraint regeneration system based on a three-dimensional model is shown in fig. 2, and includes: assembling an assembly body, constraining and regenerating a module and a characteristic geometric constraint and regenerating a module;
the assembly body assembly constraint regeneration module comprises: a part assembly constraint regeneration unit;
the characteristic geometric constraint regeneration module comprises: the device comprises a drawing sketch cross section constraint unit, a chamfer edge unit and an assembly sketch feature constraint unit;
the component assembly constraint regeneration unit selects components needing to be regenerated into an assembly relation in a given assembly body, deletes the original constraint relation of the selected components, and regenerates a fixed constraint relation, thereby forming a regenerated assembly constraint relation model;
the drawing cross section constraint unit obtains the drawing feature lost by constraint in the drawing cross section in a given part, and then replaces the lost constraint in the drawing cross section with new constraint according to the feature element tree of the drawing feature, so as to obtain new constraint in the drawing cross section of the drawing feature;
the chamfering unit obtains the missing chamfering feature of the chamfering edge in a given part, and then deletes the corresponding missing chamfering edge according to the feature element tree of the chamfering feature, so as to obtain a new chamfering edge in the chamfering feature;
the assembly sketch feature constraint unit obtains constraint lost sketch features in a given assembly, and then replaces the lost constraints in the sketch cross sections with new constraints according to the feature element tree of the sketch features, so as to obtain new constraints in the sketch cross sections of the sketch features.
In this embodiment, a constraint regeneration method based on a three-dimensional model is performed according to the following steps;
step 1, loading an external input model, comprising: parts, assemblies, part features;
step 2, classifying the external input model characteristics to obtain an assembly constraint relation, a stretched sketch cross section geometric constraint relation, a chamfered edge and an assembly sketch cross section geometric constraint relation among assembly parts;
step 3, regenerating the assembly constraint relation among the parts of the assembly body based on a Pro/Toolkit development tool, as shown in FIG. 3;
step 3.1, acquiring the handle of the external input model by using the acquisition function ProMdlCurrentGet () of the current model handle;
step 3.2, setting an access function FeatureAsmVisitAcFn and a filter function FeatFilterAction in a characteristic access function ProSolidFeatVisit (), so as to obtain all assembly elements in the assembly body;
step 3.3, obtaining the constraint of the assembly element by using a constraint obtaining function ProAsmcompConstraintsGet () and storing the constraint in a constraint array, wherein the constraint state comprises the following steps: fully constrained, incompletely constrained;
step 3.4, acquiring the constraint reference of the assembly element stored in the constraint array by using a constraint reference function ProAsmComponstraint AsmreferenceGet ();
step 3.5, on the basis of the constraint reference, utilizing a state access function ProReferenceStatusGet () to judge the state of each constraint reference, and if the state is PRO _ REF _ NOT _ FOUND, the reference is lost and is in an incomplete constraint state;
step 3.6, deleting the constraint of the incomplete constraint state by using a function ProAsmComConstresRemove () for deleting the assembly constraint;
and 3.7, setting the relationship type of the element of which the incomplete constraint state constraint is deleted into a PRO _ ASM _ FIX fixed constraint by using a setting function ProAsmComponsorlaceTypeSet () of the constraint type, thereby regenerating the assembly constraint relationship of the assembly element.
Step 4, obtaining geometric constraint characteristics:
step 4.1, obtaining a part containing a stretching characteristic in the assembly body, and finding out the stretching characteristic lost by geometric constraint in a sketched section of the stretching characteristic in the part; thereby regenerating the geometric constraint relationship in the sketched cross-section of the stretched feature based on the Pro/Toolkit development tool, as shown in FIG. 4;
step 4.1.1, acquiring the handle of the external input model by using the acquisition function ProMdlCurrentGet () of the current model handle;
step 4.1.2, setting an access function FeatureAsmVisitAcfN and a filter function FeatFilterAction in a characteristic access function ProSolidFeatVisit (), so as to obtain all assembly elements in the assembly body;
step 4.1.3, acquiring feature types of the features in all the assembly elements by using a function ProFeatureTypeGet () of the feature types, wherein the stretching features comprise the following types: PRO _ FEAT _ PROTRUSION represents a boss stretch feature, PRO _ FEAT _ CUT represents a CUT feature;
step 4.1.4, acquiring the states of the features in all the assembly elements by using a feature state function ProFeatureStatusGet (), wherein if the state is PRO _ FEAT _ UNREGENERATED, the state that the features cannot be regenerated is represented;
step 4.1.5, acquiring external parent feature reference of the stretching feature by using an external parent feature function ProFeatureExternParentGet (), and acquiring the state of the stretching feature by using a state function ProExtrafStateGet () referenced by the external feature;
step 4.1.6, if the obtained states of the features in all the assembly elements include a PRO _ FEAT _ UNREGENERATED state, namely a feature non-regeneration state, or the obtained state of the tensile feature is a PRO _ REF _ MISSING state, namely an entity lacking reference in the current model; representing that the stretched feature loses geometric constraints and obtaining an identifier of a sketched section of the stretched feature using a feature element tree access function ProFeatureElemtreeExtract ();
step 4.1.7, acquiring all entities in the sketch cross section by using a cross section entity function ProSectionEntityGet (), judging whether the corresponding entities are entities generated by projection or not by using a projection judgment function ProSectionEntityIsProjection (), if so, deleting the entities generated by projection, otherwise, not deleting;
step 4.1.8, setting the access type to PRO _ SURFACAT by using a geometric access function ProFeatureGeomitVisive (), thereby obtaining a FRONT reference plane FRONT, a RIGHT reference plane RIGHT and an upper reference plane TOP, and setting three reference planes as new geometric constraints of the stretching characteristics by using a projection creation entity function ProSectionEntityFromProjection ();
and 4.1.9, regenerating a corresponding constraint size for the new geometric constraint in the sketched section of the stretching feature by using an automatic marking function ProSectionAutodim () so as to generate a new geometric constraint relation of the stretching feature.
Step 4.2, obtaining a part containing the chamfering feature in the assembly body, and finding out the chamfering feature with the lost chamfering edge in the part; thereby regenerating the chamfered edge based on the Pro/Toolkit development tool, as shown in FIG. 5;
4.2.1, acquiring the handle of the external input model by using an acquisition function ProMdlCurrentGet () of the handle of the current model;
step 4.2.2, setting an access function FeatureAsmVisitAcfN and a filter function FeatFilterAction in a characteristic access function ProSolidFeatVisit () to acquire all assembly elements in the assembly body;
step 4.2.3, obtaining the type of the feature in all the assembly elements by using the function ProFeatureTypeGet () of the feature type, including: PRO _ feed _ ROUND represents a fillet feature, PRO _ feed _ CHAMFER represents a fillet feature;
step 4.2.4, obtaining an element tree of the chamfer characteristic by using a characteristic element tree access function ProFeatureElemtreeExtract (), obtaining a curve set in the chamfer characteristic by using an element set function ProElementCollectionGet (), and finally obtaining an indication array of the curve set by using a curve set indication function ProCrvccollectionInstructionGet ();
step 4.2.5, obtaining the constraint indicated by the curve set by using a chamfer edge set indication reference obtaining function ProCrvCollingStrenterReferenceGet (), and obtaining the constraint state indicated by the curve set by using a constraint state function ProReferenceStatusGet (), which comprises the following steps: the PRO _ REF _ ACTIVE state indicates that the referenced entity on the chamfered edge is up-to-date, and the PRO _ REF _ NOT _ FOUND state indicates that the constraint is lost;
step 4.2.6, reserving the chamfered edge in the PRO _ REF _ ACTIVE state, obtaining an identifier of the chamfered edge, and deleting the chamfered edge in the PRO _ REF _ NOT _ FOUND state; thereby obtaining a new curve set;
and 4.2.7, adding a new curve set into the element tree of the chamfer characteristic by using an element curve set setting function ProElementCollectionSet () and an element adding function ProElementreElementAdd (), thereby regenerating the chamfer edge.
4.3 obtaining sketch characteristics in the assembly body, and finding out sketch characteristics of the assembly body with the geometric constraint of the sketch cross section lost; thereby re-sketching the geometric constraint relationship of the sketched sections of the feature based on the Pro/Toolkit development tool.
Step 4.3.1, acquiring the handle of the external input model by using the acquisition function ProMdlCurrentGet () of the handle of the current model;
step 4.3.2, setting an access function FeatureAsmVisitAcfN and a filter function FeatFilterAction in a characteristic access function ProSolidFeatVisit () to acquire all assembly elements in the assembly body;
step 4.3.3, obtaining the type of the feature in all the assembly elements by using the function ProFeatureTypeGet () of the feature type, including: PRO _ FEAT _ CURVE represents a sketch feature;
step 4.3.4, obtaining an identifier of a sketch cross section of the sketch feature by using a feature element tree access function ProFeatureElemtreeExtract ();
step 4.3.5, acquiring all entities in the sketch cross section by using a cross section entity function ProSectionEntityGet (), judging whether the corresponding entities are entities generated by projection or not by using a judgment projection function ProSectionEntityIsProjection (), if so, deleting the entities generated by projection, otherwise, not deleting;
step 4.3.6, setting the access type to PRO _ SURFACAT by using a geometric access function ProFeatureGeomitVisive (), thereby obtaining a FRONT reference plane FRONT, a RIGHT reference plane RIGHT and an upper reference plane TOP, and setting the three reference planes to be new geometric constraints of sketch features by using a projection creation entity function ProSectionEntityFromProjection ();
and 4.3.7, regenerating a corresponding constraint size for the new geometric constraint in the sketch cross section of the sketch feature by using the automatic labeling function ProSectionAutodim (), so as to generate a new geometric constraint relation of the sketch feature.

Claims (5)

1. A constraint regenerating system based on a three-dimensional model, comprising: assembling an assembly body, constraining and regenerating a module and a characteristic geometric constraint and regenerating a module;
the assembly body assembly constraint regeneration module comprises: a part assembly constraint regeneration unit;
the feature geometric constraint regeneration module comprises: the device comprises a drawing sketch cross section constraint unit, a chamfer edge unit and an assembly sketch feature constraint unit;
the part assembly constraint regeneration unit selects parts needing to be regenerated into an assembly relation in a given assembly body, deletes the original constraint relation of the selected parts, and regenerates a fixed constraint relation, thereby forming a regenerated assembly constraint relation model;
the stretching sketch cross section constraint unit obtains stretching characteristics lost by constraint in the sketch cross section in a given part, and then replaces the lost constraint in the sketch cross section with new constraint according to a characteristic element tree of the stretching characteristics, so as to obtain new constraint in the sketch cross section of the stretching characteristics;
the chamfering edge unit obtains the missing chamfering feature of the chamfering edge in a given part, and then deletes the corresponding missing chamfering edge according to the feature element tree of the chamfering feature, so as to obtain a new chamfering edge in the chamfering feature;
the assembly sketch feature constraint unit obtains constraint lost sketch features in a given assembly, and then replaces lost constraints in sketch cross sections with new constraints according to a feature element tree of the sketch features, so that new constraints in sketch cross sections of the sketch features are obtained.
2. A constraint regeneration method based on a three-dimensional model is characterized by comprising the following steps of;
step 1, loading an external input model, comprising: parts, assemblies, part features;
step 2, classifying the external input model characteristics to obtain an assembly constraint relation, a stretched sketch cross section geometric constraint relation, a chamfer edge and an assembly sketch cross section geometric constraint relation among assembly parts;
step 3, regenerating an assembly constraint relation between parts of the assembly body based on a Pro/Toolkit development tool;
step 4, obtaining geometric constraint characteristics:
step 4.1, obtaining a part containing a stretching characteristic in the assembly body, and finding out the stretching characteristic lost by geometric constraint in a sketched section of the stretching characteristic in the part; thereby regenerating the geometric constraint relationship in the sketched cross-section of the stretched feature based on the Pro/Toolkit development tool;
step 4.2, obtaining a part containing the chamfering feature in the assembly body, and finding out the chamfering feature with the lost chamfering edge in the part; thereby regenerating the chamfered edge based on the Pro/Toolkit development tool;
4.3 obtaining sketch characteristics in the assembly body, and finding out sketch characteristics of the assembly body with the geometric constraint of the sketch cross section lost; thereby re-sketching the geometric constraint relationship of the sketched sections of the feature based on the Pro/Toolkit development tool.
3. The reference-based three-dimensional model reproduction method according to claim 2, wherein said step 3 is performed by:
step 3.1, acquiring the handle of the external input model by using an acquisition function ProMdlCurrentGet () of the handle of the current model;
step 3.2, setting an access function FeatureAsmVisitAcFn and a filter function FeatFilterAction in a characteristic access function ProSolidFeatVisit (), so as to obtain all assembly elements in the assembly body;
step 3.3, obtaining the constraint of the assembly element by using a constraint obtaining function ProAsmcompConstraintsGet () and storing the constraint in a constraint array, wherein the constraint state comprises the following steps: fully constrained, incompletely constrained;
step 3.4, acquiring the constraint reference of the assembly element stored in the constraint array by using a constraint reference function ProAsmComponstraint AsmreferenceGet ();
step 3.5, based on the constraint reference, utilizing a state access function ProReferenceStatusGet () to judge the state of each constraint reference, and if the state is PRO _ REF _ NOT _ FOUND, the reference is lost and is in an incomplete constraint state;
step 3.6, deleting the constraint of the incomplete constraint state by using a function ProAsmComConstresRemove () for deleting the assembly constraint;
and 3.7, setting the relationship type of the element of which the incomplete constraint state constraint is deleted into a PRO _ ASM _ FIX fixed constraint by using a setting function ProAsmComponsorlaceTypeSet () of the constraint type, thereby regenerating the assembly constraint relationship of the assembly element.
4. A method for reference-based three-dimensional model reconstruction as claimed in claim 2, wherein in step 4.1, the geometrical constraint relationship in the sketched cross-sections of the stretched features is reconstructed as follows:
step 4.1.1, acquiring the handle of the external input model by using an acquisition function ProMdlCurrentGet () of the handle of the current model;
step 4.1.2, setting an access function FeatureAsmVisitAcfN and a filter function FeatFilterAction in a characteristic access function ProSolidFeatVisit (), so as to obtain all assembly elements in the assembly body;
step 4.1.3, acquiring feature types of the features in all the assembly elements by using a function ProFeatureTypeGet () of the feature types, wherein the stretching features comprise the following types: PRO _ FEAT _ PROTRUSION represents a boss stretch feature, PRO _ FEAT _ CUT represents a CUT feature;
step 4.1.4, obtaining the state of the feature in all the assembly elements by using the feature state function ProFeatureStatusGet (), including: PRO _ FEAT _ UNREGENERATED means that the feature cannot regenerate state;
step 4.1.5, acquiring external parent feature reference of the stretching feature by using an external parent feature function ProFeatureExternParentGet (), and acquiring the state of the stretching feature by using a state function ProExtrafStateGet () referenced by the external feature;
step 4.1.6, if the obtained states of the features in all the assembly elements include a PRO _ FEAT _ UNREGENERATED state, namely a feature non-regeneration state, or the obtained state of the tensile feature is a PRO _ REF _ MISSING state, namely an entity lacking reference in the current model; representing that the stretched feature loses geometric constraints and obtaining an identifier of a sketched section of the stretched feature using a feature element tree access function ProFeatureElemtreeExtract ();
step 4.4.7, acquiring all entities in the sketch cross section by using a cross section entity function ProSectionEntityGet (), judging whether the corresponding entities are projection-generated entities or not by using a projection judgment function ProSectionEntityIsProjection (), if so, deleting the entities generated by projection, and otherwise, not deleting;
step 4.4.8, setting the access type to PRO _ SURFACAT by using a geometric access function ProFeatureGeomitVisive (), thereby obtaining a FRONT reference plane FRONT, a RIGHT reference plane RIGHT and an upper reference plane TOP, and setting the three reference planes as new geometric constraints of the stretching characteristics by using a projection creation entity function ProSectionEntityFromProjection ();
and 4.4.9, regenerating a corresponding constraint size for the new geometric constraint in the sketched section of the stretching feature by using an automatic marking function ProSectionAutodim () so as to generate a new geometric constraint relation of the stretching feature.
5. The method of reference-based three-dimensional model reproduction according to claim 2, wherein said step 4.2 is to reproduce the chamfered edge as follows:
4.2.1, acquiring the handle of the external input model by using an acquisition function ProMdlCurrentGet () of the handle of the current model;
step 4.2.2, setting an access function FeatureAsmVisitAcfN and a filter function FeatFilterAction in a characteristic access function ProSolidFeatVisit () to acquire all assembly elements in the assembly body;
step 4.2.3, obtaining the type of the feature in all the assembly elements by using the function ProFeatureTypeGet () of the feature type, including: PRO _ feed _ ROUND represents a fillet feature, PRO _ feed _ CHAMFER represents a fillet feature;
step 4.2.4, obtaining an element tree of the chamfering feature by using a feature element tree access function ProFeatureElemtreeExtract (), obtaining a curve set in the chamfering feature by using an element set function ProElementCollectionGet (), and finally obtaining an indication array of the curve set by using a curve set indication function ProCrvccollectionInstructionGet ();
step 4.2.5, obtaining the constraint indicated by the curve set by using a chamfer edge set indication reference obtaining function ProCrvCollingStrenterReferenceGet (), and obtaining the constraint state indicated by the curve set by using a constraint state function ProReferenceStatusGet (), which comprises the following steps: the PRO _ REF _ ACTIVE state indicates that the referenced entity on the chamfered edge is up-to-date, and the PRO _ REF _ NOT _ FOUND state indicates that the constraint is lost;
step 4.2.6, reserving the chamfered edge in the PRO _ REF _ ACTIVE state, obtaining an identifier of the chamfered edge, and deleting the chamfered edge in the PRO _ REF _ NOT _ FOUND state; thereby obtaining a new curve set;
and 4.2.7, adding a new curve set into the element tree of the chamfer feature by using an element curve set setting function ProElementCollectionSet () and an element adding function ProElementreElementAdd (), thereby regenerating the chamfer edge.
CN202010977946.9A 2020-09-17 2020-09-17 Constraint regeneration system and method based on three-dimensional model Pending CN112100775A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010977946.9A CN112100775A (en) 2020-09-17 2020-09-17 Constraint regeneration system and method based on three-dimensional model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010977946.9A CN112100775A (en) 2020-09-17 2020-09-17 Constraint regeneration system and method based on three-dimensional model

Publications (1)

Publication Number Publication Date
CN112100775A true CN112100775A (en) 2020-12-18

Family

ID=73759948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010977946.9A Pending CN112100775A (en) 2020-09-17 2020-09-17 Constraint regeneration system and method based on three-dimensional model

Country Status (1)

Country Link
CN (1) CN112100775A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5390294A (en) * 1992-09-18 1995-02-14 Fujitsu Limited Graphic processing system for automatically reconstructing dimensional and geometric constraints of graphics
CN107122509A (en) * 2017-01-19 2017-09-01 北京航空航天大学 A kind of Pro/E designs a model geometry light weight method
CN107330179A (en) * 2017-06-26 2017-11-07 江苏科技大学 A kind of three-dimensional process model Method of Creation Process containing technique supplemental characteristic

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5390294A (en) * 1992-09-18 1995-02-14 Fujitsu Limited Graphic processing system for automatically reconstructing dimensional and geometric constraints of graphics
CN107122509A (en) * 2017-01-19 2017-09-01 北京航空航天大学 A kind of Pro/E designs a model geometry light weight method
CN107330179A (en) * 2017-06-26 2017-11-07 江苏科技大学 A kind of three-dimensional process model Method of Creation Process containing technique supplemental characteristic

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
董健: "基于Creo大装配体的轻量化及装配体分析的开发与研究", 中国优秀硕士论文全文数据库, no. 1, pages 2 *

Similar Documents

Publication Publication Date Title
CN107239595B (en) Tire three-dimensional modeling system based on NX software PTS module and modeling method thereof
US20140317531A1 (en) System, method, and apparatus for collaborative cax editing
CN109840359B (en) Construction method of three-dimensional machining sequence model lightweight organization mode
US20140222919A1 (en) System and methods for multi-user cax editing conflict management
CN110781625A (en) ABAQUS software-based parametric modeling simulation analysis method
CN110096033A (en) A method of check and correction numerical control program precision
CN113902877B (en) Method for mutual conductance based on revit-family primitive model
CN111984235A (en) Customizable front-end low-code development system and method
CN112149324A (en) Rapid modeling method for simulation verification of composite material tool compensation molded surface
CN105183987B (en) A kind of complex engineering multidisciplinary synthesis design optimization software platform system
CN110795835A (en) Three-dimensional process model reverse generation method based on automatic synchronous modeling
CN112100775A (en) Constraint regeneration system and method based on three-dimensional model
CN109614682B (en) Method and device for FPGA pin exchange based on Expedition PCB and storage medium
CN115113584B (en) Numerical control automatic programming method based on example and rule reasoning
CN111488671A (en) Processing method and system for converting three-dimensional model into two-dimensional model and storage medium
CN115587480A (en) Digital simulation method and digital simulation device
CN115344966A (en) CAD assembly body part replacement method and system
CN115081075A (en) Automatic method for converting three-dimensional information model into two-dimensional design drawing
CN114860689A (en) Method and system for migrating data objects between heterogeneous databases
CN115391173A (en) Method for converting Simulink-Stateflow model into NuSMV model
CN114090071A (en) Matlab-based simulink model specification generation method
CN114463491A (en) Method for automatically creating three-dimensional model based on two-dimensional CAD (computer-aided design) or CAM (computer-aided manufacturing) data
CN112214810A (en) Method and system for simulating strength of packaged product, computer equipment and storage medium
CN115729116A (en) Automatic system and method for realizing tire impression simulation process
CN110334061A (en) Method, system, device and the storage medium of batch modification device data model

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