SketchProjectBuilder Class¶
-
class
NXOpen.
SketchProjectBuilder
¶ Bases:
NXOpen.Features.EmbeddedOperationBuilder
Represents a
NXOpen.SketchProjectBuilder
builderTo create a new instance of this class, use
NXOpen.SketchCollection.CreateProjectBuilder()
Default values.
Property Value Associativity True CurveType Original New in version NX5.0.0.
Properties¶
Property | Description |
---|---|
Associativity | Returns or sets the associativity of projection. |
CurveList | Returns the curve list. |
CurveType | Returns or sets the output curve type generated by the projection. |
ProjectAsDumbFixedCurves | Returns or sets the flag to indicate if the projection output needs to be converted to dumb fully fixed curves in the sketch. |
Section | Returns the section. |
Tag | Returns the Tag for this object. |
Tolerance | Returns or sets the tolerance value used for the projection. |
Methods¶
Method | Description |
---|---|
Commit | Commits any edits that have been applied to the builder. |
CommitOperation | Commits the operation and creates the feature. |
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. |
GetOperation | Returns the feature currently being edited by this 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. |
Enumerations¶
SketchProjectBuilderOutputCurve Enumeration | This enum represents the kind of output curves |
Property Detail¶
Associativity¶
-
SketchProjectBuilder.
Associativity
¶ Returns or sets the associativity of projection.
If this variable is turned on, the output curves will always depend on the input curves. So that when the input curves change, the output curves will change accordingly. If this variable is set to false, the output curves derive their shape from current stage of the input curves and then become independent of the input curves. In drafting mode, one can not project curves in associative manner. Also if the curves belong to multiple parts, they can not be projected in associative manner.
-------------------------------------
Getter Method
Signature
Associativity
Returns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Associativity
Parameters: associativity (bool) – New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR geometric_tol (“GDT”)
CurveList¶
-
SketchProjectBuilder.
CurveList
¶ Returns the curve list.
The curves to project should be added to this list only if they belong to multiple parts and they are to be projected in non associative manner. All the curves to be projected should either go to the section or the curve list depending on their owning parts.
-------------------------------------
Getter Method
Signature
CurveList
Returns: Return type: NXOpen.SelectNXObjectList
New in version NX5.0.0.
License requirements: None.
CurveType¶
-
SketchProjectBuilder.
CurveType
¶ Returns or sets the output curve type generated by the projection.
Depending on this value, the projected curve can have the same geometry as the input curves or it can be a single spline curve or a set of splines.
-------------------------------------
Getter Method
Signature
CurveType
Returns: Return type: NXOpen.SketchProjectBuilderOutputCurve
New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
CurveType
Parameters: curveType ( NXOpen.SketchProjectBuilderOutputCurve
) –New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR geometric_tol (“GDT”)
ProjectAsDumbFixedCurves¶
-
SketchProjectBuilder.
ProjectAsDumbFixedCurves
¶ Returns or sets the flag to indicate if the projection output needs to be converted to dumb fully fixed curves in the sketch.
This flag overrides the associativity flag i.e. if both projectAsDumbFixed and associativity are set to true, the result will be dumb fixed curves and not an associative projection.
-------------------------------------
Getter Method
Signature
ProjectAsDumbFixedCurves
Returns: Return type: bool New in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR geometric_tol (“GDT”)
-------------------------------------
Setter Method
Signature
ProjectAsDumbFixedCurves
Parameters: projectAsDumbFixed (bool) – New in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR geometric_tol (“GDT”)
Section¶
-
SketchProjectBuilder.
Section
¶ Returns the section.
The curves to project should be added to the section if they do not belong to multiple parts. All the curves to be projected should either go to the section or the curve list depending on their owning parts.
-------------------------------------
Getter Method
Signature
Section
Returns: Return type: NXOpen.Section
New in version NX5.0.0.
License requirements: None.
Tolerance¶
-
SketchProjectBuilder.
Tolerance
¶ Returns or sets the tolerance value used for the projection.
The same value is used for the tolerances related to the section.
-------------------------------------
Getter Method
Signature
Tolerance
Returns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Tolerance
Parameters: tolerance (float) – New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR geometric_tol (“GDT”)
Method Detail¶
Validate¶
-
SketchProjectBuilder.
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.