SketchAutoConstrainBuilder Class¶
-
class
NXOpen.SketchAutoConstrainBuilder¶ Bases:
NXOpen.BuilderRepresents a
NXOpen.SketchAutoConstrainBuilderTo create a new instance of this class, use
NXOpen.SketchCollection.CreateAutoConstrainBuilder()Default values.
Property Value Horizontal True Parallel True Perpendicular True Tangent True Vertical True New in version NX5.0.0.
Properties¶
| Property | Description |
|---|---|
| AngleTolerance | Returns or sets the angle tolerance |
| ApplyRemoteConstraints | Returns or sets the apply remote constraints |
| Coincident | Returns or sets the coincident |
| Collinear | Returns or sets the collinear |
| Concentric | Returns or sets the concentric |
| CurveList | Returns the selected curve list. |
| DistanceTolerance | Returns or sets the distance tolerance |
| EqualLength | Returns or sets the equal length |
| EqualRadius | Returns or sets the equal radius |
| Horizontal | Returns or sets the horizontal |
| Parallel | Returns or sets the parallel |
| Perpendicular | Returns or sets the perpendicular |
| PointOnCurve | Returns or sets the point on curve |
| Tag | Returns the Tag for this object. |
| Tangent | Returns or sets the tangent |
| Vertical | Returns or sets the vertical |
Methods¶
| Method | Description |
|---|---|
| ClearAllConstraints | Clear all of the indivivual constraints (turn toggle to off for each one) |
| 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. |
| SetAllConstraints | Set all of the individual constraints (turn toggle to on for each one) |
| 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¶
AngleTolerance¶
-
SketchAutoConstrainBuilder.AngleTolerance¶ Returns or sets the angle tolerance
-------------------------------------Getter Method
Signature
AngleToleranceReturns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AngleToleranceParameters: angleTolerance (float) – New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
ApplyRemoteConstraints¶
-
SketchAutoConstrainBuilder.ApplyRemoteConstraints¶ Returns or sets the apply remote constraints
-------------------------------------Getter Method
Signature
ApplyRemoteConstraintsReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ApplyRemoteConstraintsParameters: applyRemoteConstraints (bool) – New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
Coincident¶
-
SketchAutoConstrainBuilder.Coincident¶ Returns or sets the coincident
-------------------------------------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: solid_modeling (“SOLIDS MODELING”)
Collinear¶
-
SketchAutoConstrainBuilder.Collinear¶ Returns or sets the collinear
-------------------------------------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: solid_modeling (“SOLIDS MODELING”)
Concentric¶
-
SketchAutoConstrainBuilder.Concentric¶ Returns or sets the concentric
-------------------------------------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: solid_modeling (“SOLIDS MODELING”)
CurveList¶
-
SketchAutoConstrainBuilder.CurveList¶ Returns the selected curve list.
-------------------------------------Getter Method
Signature
CurveListReturns: Return type: NXOpen.SelectObjectListNew in version NX5.0.0.
License requirements: None.
DistanceTolerance¶
-
SketchAutoConstrainBuilder.DistanceTolerance¶ Returns or sets the distance tolerance
-------------------------------------Getter Method
Signature
DistanceToleranceReturns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DistanceToleranceParameters: distanceTolerance (float) – New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
EqualLength¶
-
SketchAutoConstrainBuilder.EqualLength¶ Returns or sets the equal length
-------------------------------------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: solid_modeling (“SOLIDS MODELING”)
EqualRadius¶
-
SketchAutoConstrainBuilder.EqualRadius¶ Returns or sets the equal radius
-------------------------------------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: solid_modeling (“SOLIDS MODELING”)
Horizontal¶
-
SketchAutoConstrainBuilder.Horizontal¶ Returns or sets the horizontal
-------------------------------------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: solid_modeling (“SOLIDS MODELING”)
Parallel¶
-
SketchAutoConstrainBuilder.Parallel¶ Returns or sets the parallel
-------------------------------------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: solid_modeling (“SOLIDS MODELING”)
Perpendicular¶
-
SketchAutoConstrainBuilder.Perpendicular¶ Returns or sets the perpendicular
-------------------------------------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: solid_modeling (“SOLIDS MODELING”)
PointOnCurve¶
-
SketchAutoConstrainBuilder.PointOnCurve¶ Returns or sets the point on curve
-------------------------------------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: solid_modeling (“SOLIDS MODELING”)
Tangent¶
-
SketchAutoConstrainBuilder.Tangent¶ Returns or sets the tangent
-------------------------------------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: solid_modeling (“SOLIDS MODELING”)
Vertical¶
-
SketchAutoConstrainBuilder.Vertical¶ Returns or sets the vertical
-------------------------------------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: solid_modeling (“SOLIDS MODELING”)
Method Detail¶
ClearAllConstraints¶
-
SketchAutoConstrainBuilder.ClearAllConstraints¶ Clear all of the indivivual constraints (turn toggle to off for each one)
Signature
ClearAllConstraints()New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
SetAllConstraints¶
-
SketchAutoConstrainBuilder.SetAllConstraints¶ Set all of the individual constraints (turn toggle to on for each one)
Signature
SetAllConstraints()New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
Validate¶
-
SketchAutoConstrainBuilder.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.