LawExtensionBuilderEx Class¶
-
class
NXOpen.Features.LawExtensionBuilderEx¶ Bases:
NXOpen.Features.FeatureBuilderRepresents a
NXOpen.Features.LawExtensionExbuilderTo create a new instance of this class, use
NXOpen.Features.FeatureCollection.CreateLawExtensionBuilderEx()Default values.
Property Value AngleLaw.Function ft AngleLaw.LawType Constant AngleLaw.Parameter t CurveFitData.CurveJoinMethod No CurveFitData.Degree 7 CurveFitData.FitMethod DegreeAndSegments CurveFitData.IsAdvancedFit 0 CurveFitData.IsAlignShape 0 CurveFitData.MaximumDegree 7 CurveFitData.MaximumSegments 1 CurveFitData.MinimumDegree 5 CurveFitData.Segments 1 LaydownCurve True LengthLaw.LawType Constant MergeFacesIfPossible False MiterOption Blend MiterRadius.Value 2.5 (millimeters part), 0.1 (inches part) OppositeSideLengthLaw.LawType Constant SpineDefinition.Method None New in version NX8.5.0.
Properties¶
| Property | Description |
|---|---|
| AngleLaw | Returns the angle law |
| AngleTolerance | Returns or sets the angle tolerance |
| BaseProfile | Returns the base profile |
| CurveFitData | Returns the curve fit data |
| DistanceTolerance | Returns or sets the distance tolerance |
| Faces | Returns the faces. |
| IsAngleCorrected | Returns or sets a value indicating whether to correct the angle |
| IsReferenceFaceNormalReversed | Returns or sets a value indicating whether to reverse the reference face normal. |
| LaydownCurve | Returns or sets a value indicating whether to laydown the base curve to base faces |
| LengthLaw | Returns the length law |
| MaxCorrectionAngle | Returns the max anlge deviation allowed for the correction |
| MergeFacesIfPossible | Returns or sets a value indicating whether to merge the faces if possible |
| MiterOption | Returns or sets the miter option |
| MiterRadius | Returns the miter radius |
| OppositeSideExtensionOption | Returns or sets the opposite side extension option |
| OppositeSideLengthLaw | Returns the opposite side length law. |
| 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 |
| SpineDefinition | Returns the spine definition |
| SurroundingPatchSurfaceFilename | Returns or sets the surrounding patch surface filename |
| Tag | Returns the Tag for this object. |
| Type | Returns or sets the type |
| Vector | Returns or sets the vector. |
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. |
| 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¶
| LawExtensionBuilderExMiterOptions Enumeration | Miter options |
| LawExtensionBuilderExOppositeSideExtensionOptions Enumeration | Opposite side extension options |
| LawExtensionBuilderExTypes Enumeration | Law extension creation types |
Property Detail¶
AngleLaw¶
-
LawExtensionBuilderEx.AngleLaw¶ Returns the angle law
-------------------------------------Getter Method
Signature
AngleLawReturns: Return type: NXOpen.GeometricUtilities.LawBuilderNew in version NX8.5.0.
License requirements: None.
AngleTolerance¶
-
LawExtensionBuilderEx.AngleTolerance¶ Returns or sets the angle tolerance
-------------------------------------Getter Method
Signature
AngleToleranceReturns: Return type: float New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AngleToleranceParameters: angleTolerance (float) – New in version NX8.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR free_form_modeling (“FREE-FORM MODELING”)
BaseProfile¶
-
LawExtensionBuilderEx.BaseProfile¶ Returns the base profile
-------------------------------------Getter Method
Signature
BaseProfileReturns: Return type: NXOpen.SectionNew in version NX8.5.0.
License requirements: None.
CurveFitData¶
-
LawExtensionBuilderEx.CurveFitData¶ Returns the curve fit data
-------------------------------------Getter Method
Signature
CurveFitDataReturns: Return type: NXOpen.GeometricUtilities.CurveFitDataNew in version NX8.5.0.
License requirements: None.
DistanceTolerance¶
-
LawExtensionBuilderEx.DistanceTolerance¶ Returns or sets the distance tolerance
-------------------------------------Getter Method
Signature
DistanceToleranceReturns: Return type: float New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DistanceToleranceParameters: distanceTolerance (float) – New in version NX8.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR free_form_modeling (“FREE-FORM MODELING”)
Faces¶
-
LawExtensionBuilderEx.Faces¶ Returns the faces.
Faces are used only when
NXOpen.Features.LawExtensionBuilderExTypesisNXOpen.Features.LawExtensionBuilderExTypes.Faces. The faces must be sewable to form a single sheet body. The normal of the sewed sheet body and base profile direction provide local reference co-ordinate system for the orientation of the surface rule lines.-------------------------------------Getter Method
Signature
FacesReturns: Return type: NXOpen.ScCollectorNew in version NX8.5.0.
License requirements: None.
IsAngleCorrected¶
-
LawExtensionBuilderEx.IsAngleCorrected¶ Returns or sets a value indicating whether to correct the angle
-------------------------------------Getter Method
Signature
IsAngleCorrectedReturns: Return type: bool New in version NX10.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
IsAngleCorrectedParameters: isCorrected (bool) – New in version NX10.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR free_form_modeling (“FREE-FORM MODELING”)
IsReferenceFaceNormalReversed¶
-
LawExtensionBuilderEx.IsReferenceFaceNormalReversed¶ Returns or sets a value indicating whether to reverse the reference face normal.
When
NXOpen.Features.LawExtensionBuilderExTypesisNXOpen.Features.LawExtensionBuilderExTypes.Faces, the input faces are sewed to form a single sheet body. The normal of the sheet body is decided based on the face which is nearest to the parametric mid point of the base profile and acts as the reference face normal.-------------------------------------Getter Method
Signature
IsReferenceFaceNormalReversedReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
IsReferenceFaceNormalReversedParameters: reverseNormal (bool) – New in version NX8.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR free_form_modeling (“FREE-FORM MODELING”)
LaydownCurve¶
-
LawExtensionBuilderEx.LaydownCurve¶ Returns or sets a value indicating whether to laydown the base curve to base faces
-------------------------------------Getter Method
Signature
LaydownCurveReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
LaydownCurveParameters: laydownCurve (bool) – New in version NX8.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR free_form_modeling (“FREE-FORM MODELING”)
LengthLaw¶
-
LawExtensionBuilderEx.LengthLaw¶ Returns the length law
-------------------------------------Getter Method
Signature
LengthLawReturns: Return type: NXOpen.GeometricUtilities.LawBuilderNew in version NX8.5.0.
License requirements: None.
MaxCorrectionAngle¶
-
LawExtensionBuilderEx.MaxCorrectionAngle¶ Returns the max anlge deviation allowed for the correction
-------------------------------------Getter Method
Signature
MaxCorrectionAngleReturns: Return type: NXOpen.ExpressionNew in version NX10.0.0.
License requirements: None.
MergeFacesIfPossible¶
-
LawExtensionBuilderEx.MergeFacesIfPossible¶ Returns or sets a value indicating whether to merge the faces if possible
-------------------------------------Getter Method
Signature
MergeFacesIfPossibleReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
MergeFacesIfPossibleParameters: mergeFacesIfPossible (bool) – New in version NX8.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR free_form_modeling (“FREE-FORM MODELING”)
MiterOption¶
-
LawExtensionBuilderEx.MiterOption¶ Returns or sets the miter option
-------------------------------------Getter Method
Signature
MiterOptionReturns: Return type: NXOpen.Features.LawExtensionBuilderExMiterOptionsNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
MiterOptionParameters: miterOption ( NXOpen.Features.LawExtensionBuilderExMiterOptions) –New in version NX8.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR free_form_modeling (“FREE-FORM MODELING”)
MiterRadius¶
-
LawExtensionBuilderEx.MiterRadius¶ Returns the miter radius
-------------------------------------Getter Method
Signature
MiterRadiusReturns: Return type: NXOpen.ExpressionNew in version NX8.5.0.
License requirements: None.
OppositeSideExtensionOption¶
-
LawExtensionBuilderEx.OppositeSideExtensionOption¶ Returns or sets the opposite side extension option
-------------------------------------Getter Method
Signature
OppositeSideExtensionOptionReturns: Return type: NXOpen.Features.LawExtensionBuilderExOppositeSideExtensionOptionsNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
OppositeSideExtensionOptionParameters: oppositeSideExtension ( NXOpen.Features.LawExtensionBuilderExOppositeSideExtensionOptions) –New in version NX8.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR free_form_modeling (“FREE-FORM MODELING”)
OppositeSideLengthLaw¶
-
LawExtensionBuilderEx.OppositeSideLengthLaw¶ Returns the opposite side length law.
Opposite side extension law is required only when
NXOpen.Features.LawExtensionBuilderExOppositeSideExtensionOptionsisNXOpen.Features.LawExtensionBuilderExOppositeSideExtensionOptions.Asymmetric-------------------------------------Getter Method
Signature
OppositeSideLengthLawReturns: Return type: NXOpen.GeometricUtilities.LawBuilderNew in version NX8.5.0.
License requirements: None.
SpineDefinition¶
-
LawExtensionBuilderEx.SpineDefinition¶ Returns the spine definition
-------------------------------------Getter Method
Signature
SpineDefinitionReturns: Return type: NXOpen.GeometricUtilities.SpineDefinitionBuilderNew in version NX8.5.0.
License requirements: None.
Type¶
-
LawExtensionBuilderEx.Type¶ Returns or sets the type
-------------------------------------Getter Method
Signature
TypeReturns: Return type: NXOpen.Features.LawExtensionBuilderExTypesNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TypeParameters: type ( NXOpen.Features.LawExtensionBuilderExTypes) –New in version NX8.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR free_form_modeling (“FREE-FORM MODELING”)
Vector¶
-
LawExtensionBuilderEx.Vector¶ Returns or sets the vector.
Vector is used only when
NXOpen.Features.LawExtensionBuilderExTypesisNXOpen.Features.LawExtensionBuilderExTypes.Vector-------------------------------------Getter Method
Signature
VectorReturns: Return type: NXOpen.DirectionNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
VectorParameters: vector ( NXOpen.Direction) –New in version NX8.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR free_form_modeling (“FREE-FORM MODELING”)
Method Detail¶
Validate¶
-
LawExtensionBuilderEx.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.