FitSurfaceBuilder Class¶
-
class
NXOpen.Features.FitSurfaceBuilder¶ Bases:
NXOpen.Features.FeatureBuilderThis class will provide the ability to fit surfaces through facet bodies or point sets/groups.
To create a new instance of this class, use
NXOpen.Features.FeatureCollection.CreateFitSurfaceBuilder()Default values.
Property Value AngleValue.Value 30 DirectionOption BestFit IsAutomatic 0 IsBoundary 0 IsClosed 1 IsConstrained 0 IsHalfAngle 0 IsMultipleFeatures 0 IsRadius 0 IsUniformU 0 IsUniformV 0 Parameterization.Degree 3 Parameterization.SegmentsOrPatches 1 Parameterization.UDegree 5 Parameterization.UPatches 1 Parameterization.VDegree 5 Parameterization.VPatches 1 RadiusValue.Value 50 (millimeters part), 2 (inches part) RejectionThresholdValue.Value 10 (millimeters part), 0.5 (inches part) SmoothFactor 0 TargetOption Object TargetRegion.AllSameColor 0 New in version NX8.5.0.
Properties¶
| Property | Description |
|---|---|
| AngleValue | Returns the angle is fixed to a specific value |
| CoordinateSystem | Returns or sets the coordinate system |
| DirectionOption | Returns or sets the direction option |
| IsAutomatic | Returns or sets the automatic point rejection |
| IsBoundary | Returns or sets the boundary will limit or extend to the boundaries |
| IsClosed | Returns or sets the closed or open surface |
| IsConstrained | Returns or sets the constraint option |
| IsHalfAngle | Returns or sets the half angle option |
| IsMultipleFeatures | Returns or sets the creation of multiple features or single feature |
| IsRadius | Returns or sets the radius option |
| IsUniformU | Returns or sets the uniform pathches in U |
| IsUniformV | Returns or sets the uniform patches in V |
| Parameterization | Returns the parameterization |
| 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 |
| Point1 | Returns or sets the first point of the boundary |
| Point2 | Returns or sets the second point of the boundary |
| Point3 | Returns or sets the third point of the boundary |
| Point4 | Returns or sets the fourth point of the boundary |
| RadiusValue | Returns the radius is fixed to a specific value |
| RejectionThresholdValue | Returns the rejection threshold value |
| SmoothFactor | Returns or sets the smooth factor influences the smoothness of the surface |
| SurroundingPatchSurfaceFilename | Returns or sets the surrounding patch surface filename |
| Tag | Returns the Tag for this object. |
| TargetObject | Returns the target object to which the face is fitted to can be a facet body, a convergent object, a point set or a point group |
| TargetObjects | Returns the target objects to which the face is fitted to can be a facet body, a point set or a point group |
| TargetOption | Returns or sets the target option |
| TargetRegion | Returns the target regions which is a color coded region |
| Type | Returns or sets the type |
| Vector | Returns or sets the vector specifies the projection direction |
| VectorConstraint | Returns or sets the direction constraint |
Methods¶
| Method | Description |
|---|---|
| Commit | Commits any edits that have been applied to the builder. |
| CommitFeature | Commits the feature parameters and creates the feature |
| Destroy | Deletes the builder, and cleans up any objects created by the builder. |
| EditCSYS | The edit CSYS for Orientation option |
| 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. |
| 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. |
| 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 |
| Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
| FitSurfaceBuilderDirectionType Enumeration | Direction method provides the ability to specify the projection direction and orientation |
| FitSurfaceBuilderTargetType Enumeration | Target type provides the ability to specify a object or a color coded region as the target |
| FitSurfaceBuilderTypes Enumeration | Fit Surface creation types |
Property Detail¶
AngleValue¶
-
FitSurfaceBuilder.AngleValue¶ Returns the angle is fixed to a specific value
-------------------------------------Getter Method
Signature
AngleValueReturns: Return type: NXOpen.ExpressionNew in version NX8.5.0.
License requirements: None.
CoordinateSystem¶
-
FitSurfaceBuilder.CoordinateSystem¶ Returns or sets the coordinate system
-------------------------------------Getter Method
Signature
CoordinateSystemReturns: Return type: NXOpen.CoordinateSystemNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CoordinateSystemParameters: coordSystem ( NXOpen.CoordinateSystem) –New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
DirectionOption¶
-
FitSurfaceBuilder.DirectionOption¶ Returns or sets the direction option
-------------------------------------Getter Method
Signature
DirectionOptionReturns: Return type: NXOpen.Features.FitSurfaceBuilderDirectionTypeNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DirectionOptionParameters: directionOption ( NXOpen.Features.FitSurfaceBuilderDirectionType) –New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
IsAutomatic¶
-
FitSurfaceBuilder.IsAutomatic¶ Returns or sets the automatic point rejection
-------------------------------------Getter Method
Signature
IsAutomaticReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
IsAutomaticParameters: isAutomatic (bool) – New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
IsBoundary¶
-
FitSurfaceBuilder.IsBoundary¶ Returns or sets the boundary will limit or extend to the boundaries
-------------------------------------Getter Method
Signature
IsBoundaryReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
IsBoundaryParameters: isBoundary (bool) – New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
IsClosed¶
-
FitSurfaceBuilder.IsClosed¶ Returns or sets the closed or open surface
-------------------------------------Getter Method
Signature
IsClosedReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
IsClosedParameters: isClosed (bool) – New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
IsConstrained¶
-
FitSurfaceBuilder.IsConstrained¶ Returns or sets the constraint option
-------------------------------------Getter Method
Signature
IsConstrainedReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
IsConstrainedParameters: isConstrained (bool) – New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
IsHalfAngle¶
-
FitSurfaceBuilder.IsHalfAngle¶ Returns or sets the half angle option
-------------------------------------Getter Method
Signature
IsHalfAngleReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
IsHalfAngleParameters: isHalfAngle (bool) – New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
IsMultipleFeatures¶
-
FitSurfaceBuilder.IsMultipleFeatures¶ Returns or sets the creation of multiple features or single feature
-------------------------------------Getter Method
Signature
IsMultipleFeaturesReturns: Return type: bool New in version NX10.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
IsMultipleFeaturesParameters: isMultiFeature (bool) – New in version NX10.0.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
IsRadius¶
-
FitSurfaceBuilder.IsRadius¶ Returns or sets the radius option
-------------------------------------Getter Method
Signature
IsRadiusReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
IsRadiusParameters: isRadius (bool) – New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
IsUniformU¶
-
FitSurfaceBuilder.IsUniformU¶ Returns or sets the uniform pathches in U
-------------------------------------Getter Method
Signature
IsUniformUReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
IsUniformUParameters: isUniform (bool) – New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
IsUniformV¶
-
FitSurfaceBuilder.IsUniformV¶ Returns or sets the uniform patches in V
-------------------------------------Getter Method
Signature
IsUniformVReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
IsUniformVParameters: isUniform (bool) – New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
Parameterization¶
-
FitSurfaceBuilder.Parameterization¶ Returns the parameterization
-------------------------------------Getter Method
Signature
ParameterizationReturns: Return type: NXOpen.GeometricUtilities.DegreesAndSegmentsOrPatchesBuilderNew in version NX8.5.0.
License requirements: None.
Point1¶
-
FitSurfaceBuilder.Point1¶ Returns or sets the first point of the boundary
-------------------------------------Getter Method
Signature
Point1Returns: Return type: NXOpen.PointNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
Point1Parameters: point1 ( NXOpen.Point) –New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
Point2¶
-
FitSurfaceBuilder.Point2¶ Returns or sets the second point of the boundary
-------------------------------------Getter Method
Signature
Point2Returns: Return type: NXOpen.PointNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
Point2Parameters: point ( NXOpen.Point) –New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
Point3¶
-
FitSurfaceBuilder.Point3¶ Returns or sets the third point of the boundary
-------------------------------------Getter Method
Signature
Point3Returns: Return type: NXOpen.PointNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
Point3Parameters: point ( NXOpen.Point) –New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
Point4¶
-
FitSurfaceBuilder.Point4¶ Returns or sets the fourth point of the boundary
-------------------------------------Getter Method
Signature
Point4Returns: Return type: NXOpen.PointNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
Point4Parameters: point ( NXOpen.Point) –New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
RadiusValue¶
-
FitSurfaceBuilder.RadiusValue¶ Returns the radius is fixed to a specific value
-------------------------------------Getter Method
Signature
RadiusValueReturns: Return type: NXOpen.ExpressionNew in version NX8.5.0.
License requirements: None.
RejectionThresholdValue¶
-
FitSurfaceBuilder.RejectionThresholdValue¶ Returns the rejection threshold value
-------------------------------------Getter Method
Signature
RejectionThresholdValueReturns: Return type: NXOpen.ExpressionNew in version NX8.5.0.
License requirements: None.
SmoothFactor¶
-
FitSurfaceBuilder.SmoothFactor¶ Returns or sets the smooth factor influences the smoothness of the surface
-------------------------------------Getter Method
Signature
SmoothFactorReturns: Return type: int New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SmoothFactorParameters: smoothFactor (int) – New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
TargetObject¶
-
FitSurfaceBuilder.TargetObject¶ Returns the target object to which the face is fitted to can be a facet body, a convergent object, a point set or a point group
-------------------------------------Getter Method
Signature
TargetObjectReturns: Return type: NXOpen.SelectNXObjectNew in version NX8.5.0.
Deprecated since version NX10.0.0: Use
Features.FitSurfaceBuilder.TargetObjects().License requirements: None.
TargetObjects¶
-
FitSurfaceBuilder.TargetObjects¶ Returns the target objects to which the face is fitted to can be a facet body, a point set or a point group
-------------------------------------Getter Method
Signature
TargetObjectsReturns: Return type: NXOpen.SelectNXObjectListNew in version NX10.0.0.
License requirements: None.
TargetOption¶
-
FitSurfaceBuilder.TargetOption¶ Returns or sets the target option
-------------------------------------Getter Method
Signature
TargetOptionReturns: Return type: NXOpen.Features.FitSurfaceBuilderTargetTypeNew in version NX10.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TargetOptionParameters: targetOption ( NXOpen.Features.FitSurfaceBuilderTargetType) –New in version NX10.0.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
TargetRegion¶
-
FitSurfaceBuilder.TargetRegion¶ Returns the target regions which is a color coded region
-------------------------------------Getter Method
Signature
TargetRegionReturns: Return type: NXOpen.GeometricUtilities.ColorCodedRegionBuilderNew in version NX10.0.0.
License requirements: None.
Type¶
-
FitSurfaceBuilder.Type¶ Returns or sets the type
-------------------------------------Getter Method
Signature
TypeReturns: Return type: NXOpen.Features.FitSurfaceBuilderTypesNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TypeParameters: type ( NXOpen.Features.FitSurfaceBuilderTypes) –New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
Vector¶
-
FitSurfaceBuilder.Vector¶ Returns or sets the vector specifies the projection direction
-------------------------------------Getter Method
Signature
VectorReturns: Return type: NXOpen.DirectionNew in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
-------------------------------------Setter Method
Signature
VectorParameters: vector ( NXOpen.Direction) –New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
VectorConstraint¶
-
FitSurfaceBuilder.VectorConstraint¶ Returns or sets the direction constraint
-------------------------------------Getter Method
Signature
VectorConstraintReturns: Return type: NXOpen.DirectionNew in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
-------------------------------------Setter Method
Signature
VectorConstraintParameters: vector ( NXOpen.Direction) –New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
Method Detail¶
EditCSYS¶
-
FitSurfaceBuilder.EditCSYS¶ The edit CSYS for Orientation option
Signature
EditCSYS(originCsys, matCsys)Parameters: - originCsys (
NXOpen.Point3d) – - matCsys (
NXOpen.Matrix3x3) –
New in version NX8.5.0.
License requirements: None.
- originCsys (
Validate¶
-
FitSurfaceBuilder.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.