InferredConstraintsBuilder Class¶
-
class
NXOpen.InferredConstraintsBuilder¶ Bases:
NXOpen.BuilderRepresents a
NXOpen.InferredConstraintsBuilderTo create a new instance of this class, use
NXOpen.SketchCollection.CreateInferredConstraintsBuilder()New in version NX5.0.0.
Properties¶
| Property | Description |
|---|---|
| Coincident | Returns or sets the coincident infer-constraint setting. |
| Collinear | Returns or sets the collinear infer-constraint setting. |
| Concentric | Returns or sets the concentric infer-constraint setting. |
| DimensionalConstraint | Returns or sets the dimensional constraint infer-constraint setting. |
| EqualLength | Returns or sets the equal length infer-constraint setting. |
| EqualRadius | Returns or sets the equal radius infer-constraint setting. |
| Horizontal | Returns or sets the horizontal infer-constraint setting. |
| HorizontalAlignment | Returns or sets the horizontal alignment infer-constraint setting. |
| Midpoint | Returns or sets the midpoint infer-constraint setting. |
| Parallel | Returns or sets the parallel infer-constraint setting. |
| Perpendicular | Returns or sets the perpendicular infer-constraint setting. |
| PointOnCurve | Returns or sets the point on curve infer-constraint setting. |
| PointOnString | Returns or sets the point on string infer-constraint setting. |
| PreferStringConstraints | Returns or sets the prefer string constraints setting. |
| Tag | Returns the Tag for this object. |
| Tangent | Returns or sets the tangent infer-constraint setting. |
| Vertical | Returns or sets the vertical infer-constraint setting. |
| VerticalAlignment | Returns or sets the vertical alignment infer-constraint setting. |
Methods¶
| Method | Description |
|---|---|
| Commit | Commits any edits that have been applied to the builder. |
| Destroy | Deletes the builder, and cleans up any objects created by the builder. |
| GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit. |
| GetObject | Returns the object currently being edited by this builder. |
| GetRules | Get the auto dimensioning rule list into an array |
| SetRules | Set the auto dimensioning rule list to builder |
| ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
| Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Property Detail¶
Coincident¶
-
InferredConstraintsBuilder.Coincident¶ Returns or sets the coincident infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all coincident entities created after this command.
-------------------------------------Getter Method
Signature
CoincidentReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CoincidentParameters: coincident (bool) – New in version NX5.0.0.
License requirements: None.
Collinear¶
-
InferredConstraintsBuilder.Collinear¶ Returns or sets the collinear infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all collinear entities created after this command.
-------------------------------------Getter Method
Signature
CollinearReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CollinearParameters: collinear (bool) – New in version NX5.0.0.
License requirements: None.
Concentric¶
-
InferredConstraintsBuilder.Concentric¶ Returns or sets the concentric infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all concentric entities created after this command.
-------------------------------------Getter Method
Signature
ConcentricReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ConcentricParameters: concentric (bool) – New in version NX5.0.0.
License requirements: None.
DimensionalConstraint¶
-
InferredConstraintsBuilder.DimensionalConstraint¶ Returns or sets the dimensional constraint infer-constraint setting.
If this constraint flag is switched ON, sketcher will create dimensional constraints automatically for entities created after this command.
-------------------------------------Getter Method
Signature
DimensionalConstraintReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DimensionalConstraintParameters: dimensionalConstraint (bool) – New in version NX5.0.0.
License requirements: None.
EqualLength¶
-
InferredConstraintsBuilder.EqualLength¶ Returns or sets the equal length infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all entities having equal length and created after this command.
-------------------------------------Getter Method
Signature
EqualLengthReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
EqualLengthParameters: equalLength (bool) – New in version NX5.0.0.
License requirements: None.
EqualRadius¶
-
InferredConstraintsBuilder.EqualRadius¶ Returns or sets the equal radius infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all entities with equal radius and created after this command.
-------------------------------------Getter Method
Signature
EqualRadiusReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
EqualRadiusParameters: equalRadius (bool) – New in version NX5.0.0.
License requirements: None.
Horizontal¶
-
InferredConstraintsBuilder.Horizontal¶ Returns or sets the horizontal infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all horizonal entities created after this command.
-------------------------------------Getter Method
Signature
HorizontalReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
HorizontalParameters: horizontal (bool) – New in version NX5.0.0.
License requirements: None.
HorizontalAlignment¶
-
InferredConstraintsBuilder.HorizontalAlignment¶ Returns or sets the horizontal alignment infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all horizontally aligned entities created after this command.
-------------------------------------Getter Method
Signature
HorizontalAlignmentReturns: Return type: bool New in version NX11.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
HorizontalAlignmentParameters: horizontalAlign (bool) – New in version NX11.0.0.
License requirements: None.
Midpoint¶
-
InferredConstraintsBuilder.Midpoint¶ Returns or sets the midpoint infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all midpoints created after this command.
-------------------------------------Getter Method
Signature
MidpointReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
MidpointParameters: midpoint (bool) – New in version NX5.0.0.
License requirements: None.
Parallel¶
-
InferredConstraintsBuilder.Parallel¶ Returns or sets the parallel infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all parallel entities created after this command.
-------------------------------------Getter Method
Signature
ParallelReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ParallelParameters: parallel (bool) – New in version NX5.0.0.
License requirements: None.
Perpendicular¶
-
InferredConstraintsBuilder.Perpendicular¶ Returns or sets the perpendicular infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all perpendicular entities created after this command.
-------------------------------------Getter Method
Signature
PerpendicularReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
PerpendicularParameters: perpendicular (bool) – New in version NX5.0.0.
License requirements: None.
PointOnCurve¶
-
InferredConstraintsBuilder.PointOnCurve¶ Returns or sets the point on curve infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all points on curves created after this command.
-------------------------------------Getter Method
Signature
PointOnCurveReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
PointOnCurveParameters: pointOnCurve (bool) – New in version NX5.0.0.
License requirements: None.
PointOnString¶
-
InferredConstraintsBuilder.PointOnString¶ Returns or sets the point on string infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all points on strings created after this command.
-------------------------------------Getter Method
Signature
PointOnStringReturns: Return type: bool New in version NX5.0.0.
Deprecated since version NX11.0.0: Please use
NXOpen.InferredConstraintsBuilder.PreferStringConstraints`()License requirements: None.
-------------------------------------Setter Method
Signature
PointOnStringParameters: pointOnString (bool) – New in version NX5.0.0.
Deprecated since version NX11.0.0: Please use
NXOpen.InferredConstraintsBuilder.PreferStringConstraints`()License requirements: None.
PreferStringConstraints¶
-
InferredConstraintsBuilder.PreferStringConstraints¶ Returns or sets the prefer string constraints setting.
If this flag is switched ON, the sketcher will create constraint on string type constraints automatically for all point on curve, tangent, and perpendicular constraints inferred to a string of curves after this command.
-------------------------------------Getter Method
Signature
PreferStringConstraintsReturns: Return type: bool New in version NX11.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
PreferStringConstraintsParameters: preferStringCons (bool) – New in version NX11.0.0.
License requirements: None.
Tangent¶
-
InferredConstraintsBuilder.Tangent¶ Returns or sets the tangent infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all tangent entities created after this command.
-------------------------------------Getter Method
Signature
TangentReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TangentParameters: tangent (bool) – New in version NX5.0.0.
License requirements: None.
Vertical¶
-
InferredConstraintsBuilder.Vertical¶ Returns or sets the vertical infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all vertical entities created after this command.
-------------------------------------Getter Method
Signature
VerticalReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
VerticalParameters: vertical (bool) – New in version NX5.0.0.
License requirements: None.
VerticalAlignment¶
-
InferredConstraintsBuilder.VerticalAlignment¶ Returns or sets the vertical alignment infer-constraint setting.
If this constraint flag is switched ON, sketcher will create this constraint automatically for all vertically aligned entities created after this command.
-------------------------------------Getter Method
Signature
VerticalAlignmentReturns: Return type: bool New in version NX11.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
VerticalAlignmentParameters: verticalAlign (bool) – New in version NX11.0.0.
License requirements: None.
Method Detail¶
GetRules¶
-
InferredConstraintsBuilder.GetRules¶ Get the auto dimensioning rule list into an array
Signature
GetRules()Returns: Return type: list of NXOpen.SketchAutoDimensioningRuleNew in version NX7.5.0.
License requirements: None.
SetRules¶
-
InferredConstraintsBuilder.SetRules¶ Set the auto dimensioning rule list to builder
Signature
SetRules(rules)Parameters: rules (list of NXOpen.SketchAutoDimensioningRule) – Auto Dimension RulesNew in version NX7.5.0.
License requirements: None.
Validate¶
-
InferredConstraintsBuilder.Validate¶ Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.
Signature
Validate()Returns: Was self validation successful Return type: bool New in version NX3.0.1.
License requirements: None.