SlopeBuilder Class¶
-
class
NXOpen.Features.VehicleDesign.SlopeBuilder¶ Bases:
NXOpen.BuilderThe builder to create slope feature.
To create a new instance of this class, use
NXOpen.Features.VehicleDesignCollection.CreateSlopeBuilder()Default values.
Property Value Position Front RequirementsControl StandardDriven Visualization Surface New in version NX8.5.0.
Properties¶
| Property | Description |
|---|---|
| FrontAngle | Returns the expression containing the front angle. |
| FrontLoading | Returns or sets the loading applied to the vehicle front used in the slope. |
| FrontObjects | Returns the selected front faces for slope measurement. |
| Position | Returns or sets the slope position. |
| RearAngle | Returns the expression containing the rear angle. |
| RearLoading | Returns or sets the loading applied to the vehicle rear used in the slope. |
| RearObjects | Returns the selected rear faces for slope measurement. |
| RequirementsControl | Returns or sets the requirements control for standard or user defined. |
| ShowDistanceMeasurement | Returns or sets the value to show distance measurement. |
| Standard | Returns or sets the standard used to define the slope. |
| Tag | Returns the Tag for this object. |
| Visualization | Returns or sets the visualization type of the slope output. |
| WheelSize | Returns or sets the wheel size used in the slope. |
Methods¶
| Method | Description |
|---|---|
| Commit | Commits any edits that have been applied to the builder. |
| 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. |
| GetObject | Returns the object currently being edited by this builder. |
| ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
| Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
| SlopeBuilderPositionType Enumeration | Represents the slope positions. |
| SlopeBuilderRequirementsControlType Enumeration | Represents the requirements control types to define the slope. |
| SlopeBuilderVisualizationType Enumeration | Represents the visualization types of the output. |
| SlopeBuilderWheelSizeType Enumeration | Represents the wheel size types to calculate slope output. |
Property Detail¶
FrontAngle¶
-
SlopeBuilder.FrontAngle¶ Returns the expression containing the front angle.
-------------------------------------Getter Method
Signature
FrontAngleReturns: Return type: NXOpen.ExpressionNew in version NX8.5.0.
License requirements: None.
FrontLoading¶
-
SlopeBuilder.FrontLoading¶ Returns or sets the loading applied to the vehicle front used in the slope.
-------------------------------------Getter Method
Signature
FrontLoadingReturns: Return type: str New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
FrontLoadingParameters: frontLoading (str) – New in version NX8.5.0.
License requirements: nx_general_packaging (“NX General Packaging”)
FrontObjects¶
-
SlopeBuilder.FrontObjects¶ Returns the selected front faces for slope measurement.
-------------------------------------Getter Method
Signature
FrontObjectsReturns: Return type: NXOpen.ScCollectorNew in version NX8.5.0.
License requirements: None.
Position¶
-
SlopeBuilder.Position¶ Returns or sets the slope position.
-------------------------------------Getter Method
Signature
PositionReturns: Return type: NXOpen.Features.VehicleDesign.SlopeBuilderPositionTypeNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
PositionParameters: position ( NXOpen.Features.VehicleDesign.SlopeBuilderPositionType) –New in version NX8.5.0.
License requirements: nx_general_packaging (“NX General Packaging”)
RearAngle¶
-
SlopeBuilder.RearAngle¶ Returns the expression containing the rear angle.
-------------------------------------Getter Method
Signature
RearAngleReturns: Return type: NXOpen.ExpressionNew in version NX8.5.0.
License requirements: None.
RearLoading¶
-
SlopeBuilder.RearLoading¶ Returns or sets the loading applied to the vehicle rear used in the slope.
-------------------------------------Getter Method
Signature
RearLoadingReturns: Return type: str New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
RearLoadingParameters: rearLoading (str) – New in version NX8.5.0.
License requirements: nx_general_packaging (“NX General Packaging”)
RearObjects¶
-
SlopeBuilder.RearObjects¶ Returns the selected rear faces for slope measurement.
-------------------------------------Getter Method
Signature
RearObjectsReturns: Return type: NXOpen.ScCollectorNew in version NX8.5.0.
License requirements: None.
RequirementsControl¶
-
SlopeBuilder.RequirementsControl¶ Returns or sets the requirements control for standard or user defined.
-------------------------------------Getter Method
Signature
RequirementsControlReturns: Return type: NXOpen.Features.VehicleDesign.SlopeBuilderRequirementsControlTypeNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
RequirementsControlParameters: requirement ( NXOpen.Features.VehicleDesign.SlopeBuilderRequirementsControlType) –New in version NX8.5.0.
License requirements: nx_general_packaging (“NX General Packaging”)
ShowDistanceMeasurement¶
-
SlopeBuilder.ShowDistanceMeasurement¶ Returns or sets the value to show distance measurement.
True will show the distance measurement. False will hide the distance measurement.
-------------------------------------Getter Method
Signature
ShowDistanceMeasurementReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ShowDistanceMeasurementParameters: showDistanceMeasurement (bool) – New in version NX8.5.0.
License requirements: nx_general_packaging (“NX General Packaging”)
Standard¶
-
SlopeBuilder.Standard¶ Returns or sets the standard used to define the slope.
-------------------------------------Getter Method
Signature
StandardReturns: Return type: str New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
StandardParameters: standard (str) – New in version NX8.5.0.
License requirements: nx_general_packaging (“NX General Packaging”)
Visualization¶
-
SlopeBuilder.Visualization¶ Returns or sets the visualization type of the slope output.
See
NXOpen.Features.VehicleDesign.SlopeBuilderVisualizationTypefor valid values.-------------------------------------Getter Method
Signature
VisualizationReturns: Return type: NXOpen.Features.VehicleDesign.SlopeBuilderVisualizationTypeNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
VisualizationParameters: visualization ( NXOpen.Features.VehicleDesign.SlopeBuilderVisualizationType) –New in version NX8.5.0.
License requirements: nx_general_packaging (“NX General Packaging”)
WheelSize¶
-
SlopeBuilder.WheelSize¶ Returns or sets the wheel size used in the slope.
-------------------------------------Getter Method
Signature
WheelSizeReturns: Return type: NXOpen.Features.VehicleDesign.SlopeBuilderWheelSizeTypeNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
WheelSizeParameters: wheelSize ( NXOpen.Features.VehicleDesign.SlopeBuilderWheelSizeType) –New in version NX8.5.0.
License requirements: nx_general_packaging (“NX General Packaging”)
Method Detail¶
Validate¶
-
SlopeBuilder.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.