ShellTemplateBuilder Class¶
-
class
NXOpen.Features.ShipDesign.ShellTemplateBuilder¶ Bases:
NXOpen.Features.FeatureBuilderUsed to edit or create a
NXOpen.Features.ShipDesign.ShellTemplatefeature.The shell templates are defined on a surface by specifying a primary orientation coordinate system. The orientation coordinate system is then used to build, or filter, planes used to locate each individual template. There are 2 primary methods for defining the input. Manual allows for specific, selected, data to limit various aspects of the build (for example, build with only 1 plane). Inferred allows for the tools to generate data, thus building with a minimal of predefined input data.
To create a new instance of this class, use
NXOpen.Features.ShipCollection.CreateShellTemplateBuilder()Default values.
Property Value CornerCutType None CreateSeparateParts 0 EndXTemplateOffset.Value 0 (millimeters part), 0 (inches part) EndYTemplateOffset.Value 0 (millimeters part), 0 (inches part) MarkingLinesDirectionType XandYDirections PlaneMethod Existing SightLineCutType None StartXTemplateOffset.Value 0 (millimeters part), 0 (inches part) StartYTemplateOffset.Value 0 (millimeters part), 0 (inches part) Thickness.Value 0 (millimeters part), 0 (inches part) XOffset.Value 300.0 (millimeters part), 12.0 (inches part) YOffset.Value 300.0 (millimeters part), 12.0 (inches part) New in version NX8.0.0.
Properties¶
| Property | Description |
|---|---|
| AngleTolerance | Returns or sets the modeling angle tolerance. |
| CoordinateSystem | Returns or sets the coordinate system defining the origin as well as the X and Y axis for the templates. |
| CornerCutType | Returns or sets the value that specifies if and where to create corner cuts |
| CreateSeparateParts | Returns or sets the value that determines if separate pars are created |
| DistanceTolerance | Returns or sets the modeling distance tolerance. |
| EndXTemplateOffset | Returns the expression defining the value of the end offset of the template for set 1 (X). |
| EndYTemplateOffset | Returns the expression defining the value of the end offset of the template for set 2 (Y). |
| MarkingLinesDirectionType | Returns or sets the value that specifies which marking lines are drawn on the plate |
| 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 |
| PlaneAutomatic | Returns the planes specifying both the X and Y orientations of the templates. |
| PlaneMethod | Returns or sets the value identifying how the planes (used for sections) will be specified (See NXOpen.Features.ShipDesign.ShellTemplateBuilderPlaneLocationTypes for the plane methods). |
| SightLineCutType | Returns or sets the value that specifies if and where to create sight line cuts |
| SpecifyXPlane | Returns or sets the plane specifying the X direction for the coordinate system. |
| SpecifyYPlane | Returns or sets the plane specifying the Y direction for the coordinate system. |
| StartXTemplateOffset | Returns the expression defining the value of the start offset of the template for set 1 (X). |
| StartYTemplateOffset | Returns the expression defining the value of the start offset of the template for set 2 (Y). |
| Surface | Returns the surface that the templates will be built to. |
| SurroundingPatchSurfaceFilename | Returns or sets the surrounding patch surface filename |
| Tag | Returns the Tag for this object. |
| TemplateSetName | Returns or sets the template set name assigned to the part attribute |
| Thickness | Returns the expression defining the value of the thickness of the template. |
| Type | Returns or sets the value defining how the coordinate system will be defined. |
| XOffset | Returns the expression defining the value of the offset to apply in the X direction. |
| XPlaneUserDefined | Returns or sets the value specifying that the plane for the X direction was user defined. |
| YOffset | Returns the expression defining the value of the offset to apply in the Y direction. |
| YPlaneUserDefined | Returns or sets the value specifying that the plane for the Y direction was user defined. |
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¶
| ShellTemplateBuilderCornerCutTypes Enumeration | The option for creating corner cuts on the templates. |
| ShellTemplateBuilderMarkingTypes Enumeration | The option for controlling which marking lines are drawn on the plate |
| ShellTemplateBuilderPlaneLocationTypes Enumeration | The option for how the plane locations will be specified as input. |
| ShellTemplateBuilderSightLineCutTypes Enumeration | The option for creating sight line cuts on the templates. |
| ShellTemplateBuilderTypes Enumeration | The option for controlling how the coordinate system for template creation is specified. |
Property Detail¶
AngleTolerance¶
-
ShellTemplateBuilder.AngleTolerance¶ Returns or sets the modeling angle tolerance.
-------------------------------------Getter Method
Signature
AngleToleranceReturns: Return type: float New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AngleToleranceParameters: angleTolerance (float) – New in version NX8.0.0.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
CoordinateSystem¶
-
ShellTemplateBuilder.CoordinateSystem¶ Returns or sets the coordinate system defining the origin as well as the X and Y axis for the templates.
-------------------------------------Getter Method
Signature
CoordinateSystemReturns: Return type: NXOpen.CoordinateSystemNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CoordinateSystemParameters: coordinateSystem ( NXOpen.CoordinateSystem) –New in version NX8.0.0.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
CornerCutType¶
-
ShellTemplateBuilder.CornerCutType¶ Returns or sets the value that specifies if and where to create corner cuts
-------------------------------------Getter Method
Signature
CornerCutTypeReturns: Return type: NXOpen.Features.ShipDesign.ShellTemplateBuilderCornerCutTypesNew in version NX10.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CornerCutTypeParameters: cornerCutType ( NXOpen.Features.ShipDesign.ShellTemplateBuilderCornerCutTypes) –New in version NX10.0.0.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
CreateSeparateParts¶
-
ShellTemplateBuilder.CreateSeparateParts¶ Returns or sets the value that determines if separate pars are created
-------------------------------------Getter Method
Signature
CreateSeparatePartsReturns: Return type: bool New in version NX10.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CreateSeparatePartsParameters: createSeparateParts (bool) – New in version NX10.0.0.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
DistanceTolerance¶
-
ShellTemplateBuilder.DistanceTolerance¶ Returns or sets the modeling distance tolerance.
-------------------------------------Getter Method
Signature
DistanceToleranceReturns: Return type: float New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DistanceToleranceParameters: distanceTolerance (float) – New in version NX8.0.0.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
EndXTemplateOffset¶
-
ShellTemplateBuilder.EndXTemplateOffset¶ Returns the expression defining the value of the end offset of the template for set 1 (X).
-------------------------------------Getter Method
Signature
EndXTemplateOffsetReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
EndYTemplateOffset¶
-
ShellTemplateBuilder.EndYTemplateOffset¶ Returns the expression defining the value of the end offset of the template for set 2 (Y).
-------------------------------------Getter Method
Signature
EndYTemplateOffsetReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
MarkingLinesDirectionType¶
-
ShellTemplateBuilder.MarkingLinesDirectionType¶ Returns or sets the value that specifies which marking lines are drawn on the plate
-------------------------------------Getter Method
Signature
MarkingLinesDirectionTypeReturns: Return type: NXOpen.Features.ShipDesign.ShellTemplateBuilderMarkingTypesNew in version NX10.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
MarkingLinesDirectionTypeParameters: markingLinesDirectionType ( NXOpen.Features.ShipDesign.ShellTemplateBuilderMarkingTypes) –New in version NX10.0.0.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
PlaneAutomatic¶
-
ShellTemplateBuilder.PlaneAutomatic¶ Returns the planes specifying both the X and Y orientations of the templates.
They will automatically be separated, or grouped, for X and Y as needed. This is only valid when
NXOpen.Features.ShipDesign.ShellTemplateBuilderPlaneLocationTypesisNXOpen.Features.ShipDesign.ShellTemplateBuilderPlaneLocationTypes.Existing.-------------------------------------Getter Method
Signature
PlaneAutomaticReturns: Return type: NXOpen.SelectIBasePlaneListNew in version NX8.0.0.
License requirements: None.
PlaneMethod¶
-
ShellTemplateBuilder.PlaneMethod¶ Returns or sets the value identifying how the planes (used for sections) will be specified (See
NXOpen.Features.ShipDesign.ShellTemplateBuilderPlaneLocationTypesfor the plane methods).-------------------------------------Getter Method
Signature
PlaneMethodReturns: Return type: NXOpen.Features.ShipDesign.ShellTemplateBuilderPlaneLocationTypesNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
PlaneMethodParameters: planeMethod ( NXOpen.Features.ShipDesign.ShellTemplateBuilderPlaneLocationTypes) –New in version NX8.0.0.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
SightLineCutType¶
-
ShellTemplateBuilder.SightLineCutType¶ Returns or sets the value that specifies if and where to create sight line cuts
-------------------------------------Getter Method
Signature
SightLineCutTypeReturns: Return type: NXOpen.Features.ShipDesign.ShellTemplateBuilderSightLineCutTypesNew in version NX10.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SightLineCutTypeParameters: sightLineCutType ( NXOpen.Features.ShipDesign.ShellTemplateBuilderSightLineCutTypes) –New in version NX10.0.0.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
SpecifyXPlane¶
-
ShellTemplateBuilder.SpecifyXPlane¶ Returns or sets the plane specifying the X direction for the coordinate system.
-------------------------------------Getter Method
Signature
SpecifyXPlaneReturns: Return type: NXOpen.PlaneNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SpecifyXPlaneParameters: specifyXPlane ( NXOpen.Plane) –New in version NX8.0.0.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
SpecifyYPlane¶
-
ShellTemplateBuilder.SpecifyYPlane¶ Returns or sets the plane specifying the Y direction for the coordinate system.
-------------------------------------Getter Method
Signature
SpecifyYPlaneReturns: Return type: NXOpen.PlaneNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SpecifyYPlaneParameters: specifyYPlane ( NXOpen.Plane) –New in version NX8.0.0.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
StartXTemplateOffset¶
-
ShellTemplateBuilder.StartXTemplateOffset¶ Returns the expression defining the value of the start offset of the template for set 1 (X).
-------------------------------------Getter Method
Signature
StartXTemplateOffsetReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
StartYTemplateOffset¶
-
ShellTemplateBuilder.StartYTemplateOffset¶ Returns the expression defining the value of the start offset of the template for set 2 (Y).
-------------------------------------Getter Method
Signature
StartYTemplateOffsetReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
Surface¶
-
ShellTemplateBuilder.Surface¶ Returns the surface that the templates will be built to.
-------------------------------------Getter Method
Signature
SurfaceReturns: Return type: NXOpen.ScCollectorNew in version NX8.0.0.
License requirements: None.
TemplateSetName¶
-
ShellTemplateBuilder.TemplateSetName¶ Returns or sets the template set name assigned to the part attribute
-------------------------------------Getter Method
Signature
TemplateSetNameReturns: Return type: str New in version NX10.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TemplateSetNameParameters: templateSetName (str) – New in version NX10.0.0.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
Thickness¶
-
ShellTemplateBuilder.Thickness¶ Returns the expression defining the value of the thickness of the template.
-------------------------------------Getter Method
Signature
ThicknessReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
Type¶
-
ShellTemplateBuilder.Type¶ Returns or sets the value defining how the coordinate system will be defined.
See
NXOpen.Features.ShipDesign.ShellTemplateBuilderTypes.-------------------------------------Getter Method
Signature
TypeReturns: Return type: NXOpen.Features.ShipDesign.ShellTemplateBuilderTypesNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TypeParameters: type ( NXOpen.Features.ShipDesign.ShellTemplateBuilderTypes) –New in version NX8.0.0.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
XOffset¶
-
ShellTemplateBuilder.XOffset¶ Returns the expression defining the value of the offset to apply in the X direction.
-------------------------------------Getter Method
Signature
XOffsetReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
XPlaneUserDefined¶
-
ShellTemplateBuilder.XPlaneUserDefined¶ Returns or sets the value specifying that the plane for the X direction was user defined.
-------------------------------------Getter Method
Signature
XPlaneUserDefinedReturns: Return type: bool New in version NX8.0.1.
License requirements: None.
-------------------------------------Setter Method
Signature
XPlaneUserDefinedParameters: xPlaneUserDefined (bool) – New in version NX8.0.1.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
YOffset¶
-
ShellTemplateBuilder.YOffset¶ Returns the expression defining the value of the offset to apply in the Y direction.
-------------------------------------Getter Method
Signature
YOffsetReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
YPlaneUserDefined¶
-
ShellTemplateBuilder.YPlaneUserDefined¶ Returns or sets the value specifying that the plane for the Y direction was user defined.
-------------------------------------Getter Method
Signature
YPlaneUserDefinedReturns: Return type: bool New in version NX8.0.1.
License requirements: None.
-------------------------------------Setter Method
Signature
YPlaneUserDefinedParameters: yPlaneUserDefined (bool) – New in version NX8.0.1.
License requirements: nx_ship_concept (“Ship Concept”) OR nx_ship_mfg_prep (“Ship Manufacturing”)
Method Detail¶
Validate¶
-
ShellTemplateBuilder.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.