SketchFitCurveBuilder Class¶
-
class
NXOpen.Features.
SketchFitCurveBuilder
¶ Bases:
NXOpen.Features.FitCurveBuilder
Sketch Fit Curve builder class.
To create a new instance of this class, use
NXOpen.Features.FeatureCollection.CreateSketchFitCurveBuilder()
Default values.
Property Value IsClosedCurve true ProjectionDirectionOption Normal Radius.Value 50.0 (millimeters part), 2.0 (inches part) RejectionThreshold.Value 10.0 (millimeters part), 0.5 (inches part) New in version NX8.5.0.
Properties¶
Property | Description |
---|---|
CanKeepTemplateSelected | Returns or sets the flag indicating if template curve should be kept selected |
CanRejectPointsAutomatically | Returns or sets the flag indicating if points beyond a threshold value should be ignored during fitting |
CanUseAllPointsInPart | Returns or sets the flag indicating if all points in the part can be used for chaining |
ConstraintManager | Returns the constraint manager |
Degree | Returns or sets the degree |
Extender | Returns the extension option |
FittingParameters | Returns or sets the fitting parameters |
HasRadius | Returns or sets the has radius |
HasReversedDirection | Returns or sets the flag indicating if fitted curve direction should be reversed |
HasUniformSegments | Returns or sets the flag indicating if uniform segments should be created |
IsAssociative | Returns or sets the flag indicating if a feature should be created |
IsClosedBSpline | Returns or sets the flag indicating if a closed b-spline is to be fitted |
IsClosedCurve | Returns or sets the flag indicating if a full circle or ellipse is to be fitted |
ParentFeatureInternal | Returns or sets whether or not the latest timestamped parent feature of this feature should be made internal |
PatchSolutionFlag | Returns or sets the patch solution flag |
PatchSurfaceFilename | Returns or sets the patch surface filename |
ProjectionDirection | Returns or sets the projection direction |
ProjectionDirectionOption | Returns or sets the projection direction option |
Radius | Returns the circle radius |
RejectionThreshold | Returns the rejection threshold |
Segments | Returns or sets the segments |
SurroundingPatchSurfaceFilename | Returns or sets the surrounding patch surface filename |
Tag | Returns the Tag for this object. |
Target | Returns the target objects. |
TargetSourceType | Returns or sets the target type |
TemplateCurve | Returns the template curve |
Tolerance | Returns or sets the tolerance |
Type | Returns or sets the type |
Methods¶
Method | Description |
---|---|
ChainAllPoints | Chains all the points in work part based on one selected point and evaluates the curve. |
Commit | Commits any edits that have been applied to the builder. |
CommitFeature | Commits the feature parameters and creates the feature |
DeleteTargetPoints | Deletes target points |
Destroy | Deletes the builder, and cleans up any objects created by the builder. |
Evaluate | Evaluates the curve |
GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit. |
GetFeature | Returns the feature currently being edited by this builder. |
GetFinalTargetPoint | Returns the target point that are finally used for fitting |
GetFinalTargetPointsSize | Returns the number of target points that are finally used for fitting |
GetObject | Returns the object currently being edited by this builder. |
HideInternalParentFeatureAfterEdit | Re-suppress an internal parent feature (a slave feature) after it has been edited. |
MakeConstraint | In case of point targets, makes a target point a positional constraint. |
RemoveConstraint | Makes existing positional constraint a free target point |
SetParentFeatureInternal | Set the parent features which would be internal or slaves to the feature being created or commited |
ShowInternalParentFeatureForEdit | Unsuppress an internal parent feature (a slave feature) so it can be edited. |
ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
UnsetParentFeatureInternal | Set the internal parent feature of the feature being edited to external |
UpdateTargetSelectionOnPointEditing | Updates target selection by replacing original point by edited point. |
Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Method Detail¶
Validate¶
-
SketchFitCurveBuilder.
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.