LawExtensionBuilderEx Class¶
-
class
NXOpen.Features.
LawExtensionBuilderEx
¶ Bases:
NXOpen.Features.FeatureBuilder
Represents a
NXOpen.Features.LawExtensionEx
builderTo 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 @return |
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
AngleLaw()
Returns: Return type: NXOpen.GeometricUtilities.LawBuilder
New in version NX8.5.0.
License requirements: None.
AngleTolerance¶
-
LawExtensionBuilderEx.
AngleTolerance
¶ Returns or sets the angle tolerance
-------------------------------------
Getter Method
Signature
AngleTolerance()
Returns: Return type: float New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
AngleTolerance(angleTolerance)
Parameters: 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
BaseProfile()
Returns: Return type: NXOpen.Section
New in version NX8.5.0.
License requirements: None.
CurveFitData¶
-
LawExtensionBuilderEx.
CurveFitData
¶ Returns the curve fit data
-------------------------------------
Getter Method
Signature
CurveFitData()
Returns: Return type: NXOpen.GeometricUtilities.CurveFitData
New in version NX8.5.0.
License requirements: None.
DistanceTolerance¶
-
LawExtensionBuilderEx.
DistanceTolerance
¶ Returns or sets the distance tolerance
-------------------------------------
Getter Method
Signature
DistanceTolerance()
Returns: Return type: float New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
DistanceTolerance(distanceTolerance)
Parameters: 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.LawExtensionBuilderExTypes
isNXOpen.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
Faces()
Returns: Return type: NXOpen.ScCollector
New 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
IsAngleCorrected()
Returns: Return type: bool New in version NX10.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsAngleCorrected(isCorrected)
Parameters: 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.LawExtensionBuilderExTypes
isNXOpen.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
IsReferenceFaceNormalReversed()
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsReferenceFaceNormalReversed(reverseNormal)
Parameters: 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
LaydownCurve()
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
LaydownCurve(laydownCurve)
Parameters: 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
LengthLaw()
Returns: Return type: NXOpen.GeometricUtilities.LawBuilder
New in version NX8.5.0.
License requirements: None.
MaxCorrectionAngle¶
-
LawExtensionBuilderEx.
MaxCorrectionAngle
¶ Returns the max anlge deviation allowed for the correction
-------------------------------------
Getter Method
Signature
MaxCorrectionAngle()
Returns: Return type: NXOpen.Expression
New 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
MergeFacesIfPossible()
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
MergeFacesIfPossible(mergeFacesIfPossible)
Parameters: 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
MiterOption()
Returns: Return type: NXOpen.Features.LawExtensionBuilderExMiterOptions
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
MiterOption(miterOption)
Parameters: 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
MiterRadius()
Returns: Return type: NXOpen.Expression
New in version NX8.5.0.
License requirements: None.
OppositeSideExtensionOption¶
-
LawExtensionBuilderEx.
OppositeSideExtensionOption
¶ Returns or sets the opposite side extension option
-------------------------------------
Getter Method
Signature
OppositeSideExtensionOption()
Returns: Return type: NXOpen.Features.LawExtensionBuilderExOppositeSideExtensionOptions
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
OppositeSideExtensionOption(oppositeSideExtension)
Parameters: 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.LawExtensionBuilderExOppositeSideExtensionOptions
isNXOpen.Features.LawExtensionBuilderExOppositeSideExtensionOptions.Asymmetric
-------------------------------------
Getter Method
Signature
OppositeSideLengthLaw()
Returns: Return type: NXOpen.GeometricUtilities.LawBuilder
New in version NX8.5.0.
License requirements: None.
SpineDefinition¶
-
LawExtensionBuilderEx.
SpineDefinition
¶ Returns the spine definition
-------------------------------------
Getter Method
Signature
SpineDefinition()
Returns: Return type: NXOpen.GeometricUtilities.SpineDefinitionBuilder
New in version NX8.5.0.
License requirements: None.
Type¶
-
LawExtensionBuilderEx.
Type
¶ Returns or sets the type
-------------------------------------
Getter Method
Signature
Type()
Returns: Return type: NXOpen.Features.LawExtensionBuilderExTypes
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Type(type)
Parameters: 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.LawExtensionBuilderExTypes
isNXOpen.Features.LawExtensionBuilderExTypes.Vector
-------------------------------------
Getter Method
Signature
Vector()
Returns: Return type: NXOpen.Direction
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Vector(vector)
Parameters: 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.