FitSurfaceBuilder Class¶
-
class
NXOpen.Features.
FitSurfaceBuilder
¶ Bases:
NXOpen.Features.FeatureBuilder
This 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
AngleValue
Returns: Return type: NXOpen.Expression
New in version NX8.5.0.
License requirements: None.
CoordinateSystem¶
-
FitSurfaceBuilder.
CoordinateSystem
¶ Returns or sets the coordinate system
-------------------------------------
Getter Method
Signature
CoordinateSystem
Returns: Return type: NXOpen.CoordinateSystem
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
CoordinateSystem
Parameters: 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
DirectionOption
Returns: Return type: NXOpen.Features.FitSurfaceBuilderDirectionType
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
DirectionOption
Parameters: 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
IsAutomatic
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsAutomatic
Parameters: 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
IsBoundary
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsBoundary
Parameters: 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
IsClosed
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsClosed
Parameters: 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
IsConstrained
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsConstrained
Parameters: 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
IsHalfAngle
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsHalfAngle
Parameters: 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
IsMultipleFeatures
Returns: Return type: bool New in version NX10.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsMultipleFeatures
Parameters: 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
IsRadius
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsRadius
Parameters: 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
IsUniformU
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsUniformU
Parameters: 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
IsUniformV
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsUniformV
Parameters: 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
Parameterization
Returns: Return type: NXOpen.GeometricUtilities.DegreesAndSegmentsOrPatchesBuilder
New in version NX8.5.0.
License requirements: None.
Point1¶
-
FitSurfaceBuilder.
Point1
¶ Returns or sets the first point of the boundary
-------------------------------------
Getter Method
Signature
Point1
Returns: Return type: NXOpen.Point
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Point1
Parameters: 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
Point2
Returns: Return type: NXOpen.Point
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Point2
Parameters: 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
Point3
Returns: Return type: NXOpen.Point
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Point3
Parameters: 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
Point4
Returns: Return type: NXOpen.Point
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Point4
Parameters: 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
RadiusValue
Returns: Return type: NXOpen.Expression
New in version NX8.5.0.
License requirements: None.
RejectionThresholdValue¶
-
FitSurfaceBuilder.
RejectionThresholdValue
¶ Returns the rejection threshold value
-------------------------------------
Getter Method
Signature
RejectionThresholdValue
Returns: Return type: NXOpen.Expression
New 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
SmoothFactor
Returns: Return type: int New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
SmoothFactor
Parameters: 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
TargetObject
Returns: Return type: NXOpen.SelectNXObject
New 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
TargetObjects
Returns: Return type: NXOpen.SelectNXObjectList
New in version NX10.0.0.
License requirements: None.
TargetOption¶
-
FitSurfaceBuilder.
TargetOption
¶ Returns or sets the target option
-------------------------------------
Getter Method
Signature
TargetOption
Returns: Return type: NXOpen.Features.FitSurfaceBuilderTargetType
New in version NX10.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
TargetOption
Parameters: 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
TargetRegion
Returns: Return type: NXOpen.GeometricUtilities.ColorCodedRegionBuilder
New in version NX10.0.0.
License requirements: None.
Type¶
-
FitSurfaceBuilder.
Type
¶ Returns or sets the type
-------------------------------------
Getter Method
Signature
Type
Returns: Return type: NXOpen.Features.FitSurfaceBuilderTypes
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Type
Parameters: 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
Vector
Returns: Return type: NXOpen.Direction
New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
-------------------------------------
Setter Method
Signature
Vector
Parameters: 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
VectorConstraint
Returns: Return type: NXOpen.Direction
New in version NX8.5.0.
License requirements: nx_freeform_2 (“advanced freeform modeling”)
-------------------------------------
Setter Method
Signature
VectorConstraint
Parameters: 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.