PenetrationRequestBuilder Class¶
-
class
NXOpen.Features.ShipDesign.PenetrationRequestBuilder¶ Bases:
NXOpen.BuilderRepresents a
NXOpen.Features.ShipDesign.PenetrationRequestbuilderTo create a new instance of this class, use
NXOpen.Features.ShipDesign.PenetrationRequestCollection.CreatePenetrationRequestBuilder()Default values.
Property Value CompensationType NotRequired CornerRadius.Value 0 (millimeters part), 0 (inches part) CoutoutType Circular Cut 0 Diameter.Value 0 (millimeters part), 0 (inches part) DirectionType PerpendiculartoStructure Hanger 0 Height.Value 0 (millimeters part), 0 (inches part) Offset.Value 0 (millimeters part), 0 (inches part) PenetrationType PenetratingObject Radius.Value 0 (millimeters part), 0 (inches part) RequestType Single Spill 0 Width.Value 0 (millimeters part), 0 (inches part) New in version NX8.0.0.
Properties¶
| Property | Description |
|---|---|
| CompensationNumber | Returns or sets the compensation number |
| CompensationType | Returns or sets the compensation type |
| CornerRadius | Returns the corner radius expression |
| CoutoutType | Returns or sets the coutout type |
| Cut | Returns or sets the cut |
| DialogType | Returns or sets the dialog type |
| Diameter | Returns the diameter expression |
| DirectionType | Returns or sets the direction |
| DueDate | Returns or sets the due date |
| Hanger | Returns or sets the hanger |
| HangerNumber | Returns or sets the hanger number |
| Height | Returns the height expression |
| HoleSubType | Returns or sets the hole sub-type |
| HoleType | Returns or sets the hole type |
| HorizontalDirection | Returns or sets the horizontal direction |
| ModifiedSketch | Returns or sets the modified sketch |
| Offset | Returns the offset expression |
| Orientation | Returns or sets the orientation |
| PenetrationType | Returns or sets the penetration type |
| Point | Returns or sets the penetrating point |
| Radius | Returns the radius expression |
| RequestName | Returns or sets the request name |
| RequestType | Returns or sets the request type |
| RouteObjectCollector | Returns the route object collector |
| RoutePenetrating | Returns the route penetrating |
| SelectedSegment | Returns or sets the selected segment |
| SelectionCompensation | Returns the selection compensation |
| SelectionHanger | Returns the selection hanger |
| SelectionStructure | Returns the selection structure |
| Sketch | Returns the sketch |
| Spill | Returns or sets the spill |
| Tag | Returns the Tag for this object. |
| Width | Returns the width expression |
Methods¶
| Method | Description |
|---|---|
| AddAdjacentStructure | Adds adjacent structures |
| AddNonIntersectedStructure | Adds nonintersected structures |
| 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. |
| GetRequestDescription | Returns the description |
| RemoveAllAdjacentStructures | Removes all adjacent structures |
| RemoveNonIntersectedStructures | Removes all nonintersected structures |
| SetApplyOffset | Sets the value that whether the offset is applied |
| SetOffsetValue | Sets the offset value |
| SetRequestDescription | Sets the description |
| 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¶
| PenetrationRequestBuilderRequestDialogType Enumeration | Represents the dialog type |
Property Detail¶
CompensationNumber¶
-
PenetrationRequestBuilder.CompensationNumber¶ Returns or sets the compensation number
-------------------------------------Getter Method
Signature
CompensationNumberReturns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CompensationNumberParameters: stringCompensationNumber (str) – New in version NX8.0.0.
License requirements: nx_ship_concept (“Ship Concept”)
CompensationType¶
-
PenetrationRequestBuilder.CompensationType¶ Returns or sets the compensation type
-------------------------------------Getter Method
Signature
CompensationTypeReturns: Return type: NXOpen.Features.ShipDesign.PenetrationRequestCompensationTypeNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CompensationTypeParameters: enumCompensationType ( NXOpen.Features.ShipDesign.PenetrationRequestCompensationType) –New in version NX8.0.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
CornerRadius¶
-
PenetrationRequestBuilder.CornerRadius¶ Returns the corner radius expression
-------------------------------------Getter Method
Signature
CornerRadiusReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
CoutoutType¶
-
PenetrationRequestBuilder.CoutoutType¶ Returns or sets the coutout type
-------------------------------------Getter Method
Signature
CoutoutTypeReturns: Return type: NXOpen.Features.ShipDesign.PenetrationRequestCoutoutTypeNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CoutoutTypeParameters: enumCoutoutType ( NXOpen.Features.ShipDesign.PenetrationRequestCoutoutType) –New in version NX8.0.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
Cut¶
-
PenetrationRequestBuilder.Cut¶ Returns or sets the cut
-------------------------------------Getter Method
Signature
CutReturns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CutParameters: toggleCut (bool) – New in version NX8.0.0.
License requirements: nx_ship_concept (“Ship Concept”)
DialogType¶
-
PenetrationRequestBuilder.DialogType¶ Returns or sets the dialog type
-------------------------------------Getter Method
Signature
DialogTypeReturns: Return type: NXOpen.Features.ShipDesign.PenetrationRequestBuilderRequestDialogTypeNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DialogTypeParameters: dialogType ( NXOpen.Features.ShipDesign.PenetrationRequestBuilderRequestDialogType) –New in version NX8.5.0.
License requirements: nx_ship_concept (“Ship Concept”)
Diameter¶
-
PenetrationRequestBuilder.Diameter¶ Returns the diameter expression
-------------------------------------Getter Method
Signature
DiameterReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
DirectionType¶
-
PenetrationRequestBuilder.DirectionType¶ Returns or sets the direction
-------------------------------------Getter Method
Signature
DirectionTypeReturns: Return type: NXOpen.Features.ShipDesign.PenetrationRequestDirectionTypeNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DirectionTypeParameters: enumDirection ( NXOpen.Features.ShipDesign.PenetrationRequestDirectionType) –New in version NX8.0.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
DueDate¶
-
PenetrationRequestBuilder.DueDate¶ Returns or sets the due date
-------------------------------------Getter Method
Signature
DueDateReturns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DueDateParameters: stringDueDate (str) – New in version NX8.0.0.
License requirements: nx_ship_concept (“Ship Concept”)
Hanger¶
-
PenetrationRequestBuilder.Hanger¶ Returns or sets the hanger
-------------------------------------Getter Method
Signature
HangerReturns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
HangerParameters: toggleHanger (bool) – New in version NX8.0.0.
License requirements: nx_ship_concept (“Ship Concept”)
HangerNumber¶
-
PenetrationRequestBuilder.HangerNumber¶ Returns or sets the hanger number
-------------------------------------Getter Method
Signature
HangerNumberReturns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
HangerNumberParameters: stringHangerNumber (str) – New in version NX8.0.0.
License requirements: nx_ship_concept (“Ship Concept”)
Height¶
-
PenetrationRequestBuilder.Height¶ Returns the height expression
-------------------------------------Getter Method
Signature
HeightReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
HoleSubType¶
-
PenetrationRequestBuilder.HoleSubType¶ Returns or sets the hole sub-type
-------------------------------------Getter Method
Signature
HoleSubTypeReturns: Return type: str New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
HoleSubTypeParameters: stringHoleType (str) – New in version NX8.5.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
HoleType¶
-
PenetrationRequestBuilder.HoleType¶ Returns or sets the hole type
-------------------------------------Getter Method
Signature
HoleTypeReturns: Return type: str New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
HoleTypeParameters: stringHoleType (str) – New in version NX8.5.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
HorizontalDirection¶
-
PenetrationRequestBuilder.HorizontalDirection¶ Returns or sets the horizontal direction
-------------------------------------Getter Method
Signature
HorizontalDirectionReturns: Return type: NXOpen.DirectionNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
HorizontalDirectionParameters: vectorHorizontalDirection ( NXOpen.Direction) –New in version NX8.0.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
ModifiedSketch¶
-
PenetrationRequestBuilder.ModifiedSketch¶ Returns or sets the modified sketch
-------------------------------------Getter Method
Signature
ModifiedSketchReturns: Return type: NXOpen.SketchNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ModifiedSketchParameters: modifiedSketch ( NXOpen.Sketch) –New in version NX8.5.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
Offset¶
-
PenetrationRequestBuilder.Offset¶ Returns the offset expression
-------------------------------------Getter Method
Signature
OffsetReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
Orientation¶
-
PenetrationRequestBuilder.Orientation¶ Returns or sets the orientation
-------------------------------------Getter Method
Signature
OrientationReturns: Return type: NXOpen.DirectionNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
OrientationParameters: vectorOrientation ( NXOpen.Direction) –New in version NX8.0.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
PenetrationType¶
-
PenetrationRequestBuilder.PenetrationType¶ Returns or sets the penetration type
-------------------------------------Getter Method
Signature
PenetrationTypeReturns: Return type: NXOpen.Features.ShipDesign.PenetrationRequestPenetrationTypeNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
PenetrationTypeParameters: enumPenetrationType ( NXOpen.Features.ShipDesign.PenetrationRequestPenetrationType) –New in version NX8.0.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
Point¶
-
PenetrationRequestBuilder.Point¶ Returns or sets the penetrating point
-------------------------------------Getter Method
Signature
PointReturns: Return type: NXOpen.PointNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
PointParameters: pointPenetrating ( NXOpen.Point) –New in version NX8.0.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
Radius¶
-
PenetrationRequestBuilder.Radius¶ Returns the radius expression
-------------------------------------Getter Method
Signature
RadiusReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
RequestName¶
-
PenetrationRequestBuilder.RequestName¶ Returns or sets the request name
-------------------------------------Getter Method
Signature
RequestNameReturns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
RequestNameParameters: stringName (str) – New in version NX8.0.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
RequestType¶
-
PenetrationRequestBuilder.RequestType¶ Returns or sets the request type
-------------------------------------Getter Method
Signature
RequestTypeReturns: Return type: NXOpen.Features.ShipDesign.PenetrationRequestRequestTypeNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
RequestTypeParameters: enumRequestType ( NXOpen.Features.ShipDesign.PenetrationRequestRequestType) –New in version NX8.0.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
RouteObjectCollector¶
-
PenetrationRequestBuilder.RouteObjectCollector¶ Returns the route object collector
-------------------------------------Getter Method
Signature
RouteObjectCollectorReturns: Return type: NXOpen.SelectNXObjectListNew in version NX8.0.0.
License requirements: None.
RoutePenetrating¶
-
PenetrationRequestBuilder.RoutePenetrating¶ Returns the route penetrating
-------------------------------------Getter Method
Signature
RoutePenetratingReturns: Return type: NXOpen.SelectNXObjectListNew in version NX8.0.0.
License requirements: None.
SelectedSegment¶
-
PenetrationRequestBuilder.SelectedSegment¶ Returns or sets the selected segment
-------------------------------------Getter Method
Signature
SelectedSegmentReturns: Return type: NXOpen.NXObjectNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SelectedSegmentParameters: selectedSegment ( NXOpen.NXObject) –New in version NX8.0.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
SelectionCompensation¶
-
PenetrationRequestBuilder.SelectionCompensation¶ Returns the selection compensation
-------------------------------------Getter Method
Signature
SelectionCompensationReturns: Return type: NXOpen.SelectNXObjectNew in version NX8.0.0.
License requirements: None.
SelectionHanger¶
-
PenetrationRequestBuilder.SelectionHanger¶ Returns the selection hanger
-------------------------------------Getter Method
Signature
SelectionHangerReturns: Return type: NXOpen.SelectNXObjectNew in version NX8.0.0.
License requirements: None.
SelectionStructure¶
-
PenetrationRequestBuilder.SelectionStructure¶ Returns the selection structure
-------------------------------------Getter Method
Signature
SelectionStructureReturns: Return type: NXOpen.SelectNXObjectNew in version NX8.0.0.
License requirements: None.
Sketch¶
-
PenetrationRequestBuilder.Sketch¶ Returns the sketch
-------------------------------------Getter Method
Signature
SketchReturns: Return type: NXOpen.SectionNew in version NX8.0.0.
License requirements: None.
Spill¶
-
PenetrationRequestBuilder.Spill¶ Returns or sets the spill
-------------------------------------Getter Method
Signature
SpillReturns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SpillParameters: toggleSpill (bool) – New in version NX8.0.0.
License requirements: nx_ship_concept (“Ship Concept”)
Width¶
-
PenetrationRequestBuilder.Width¶ Returns the width expression
-------------------------------------Getter Method
Signature
WidthReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
Method Detail¶
AddAdjacentStructure¶
-
PenetrationRequestBuilder.AddAdjacentStructure¶ Adds adjacent structures
Signature
AddAdjacentStructure(adjacentStructure)Parameters: adjacentStructure ( NXOpen.Body) –New in version NX8.5.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
AddNonIntersectedStructure¶
-
PenetrationRequestBuilder.AddNonIntersectedStructure¶ Adds nonintersected structures
Signature
AddNonIntersectedStructure(structure)Parameters: structure ( NXOpen.Body) –New in version NX8.5.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
GetRequestDescription¶
-
PenetrationRequestBuilder.GetRequestDescription¶ Returns the description
Signature
GetRequestDescription()Returns: Return type: list of str New in version NX8.0.0.
License requirements: None.
RemoveAllAdjacentStructures¶
-
PenetrationRequestBuilder.RemoveAllAdjacentStructures¶ Removes all adjacent structures
Signature
RemoveAllAdjacentStructures()New in version NX8.5.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
RemoveNonIntersectedStructures¶
-
PenetrationRequestBuilder.RemoveNonIntersectedStructures¶ Removes all nonintersected structures
Signature
RemoveNonIntersectedStructures()New in version NX8.5.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
SetApplyOffset¶
-
PenetrationRequestBuilder.SetApplyOffset¶ Sets the value that whether the offset is applied
Signature
SetApplyOffset(applyOffset)Parameters: applyOffset (bool) – New in version NX12.0.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
SetOffsetValue¶
-
PenetrationRequestBuilder.SetOffsetValue¶ Sets the offset value
Signature
SetOffsetValue(offsetValue)Parameters: offsetValue (float) – New in version NX12.0.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
SetRequestDescription¶
-
PenetrationRequestBuilder.SetRequestDescription¶ Sets the description
Signature
SetRequestDescription(stringDesc)Parameters: stringDesc (list of str) – New in version NX8.0.0.
License requirements: nx_penetration_mgmt (“Penetration Management”)
Validate¶
-
PenetrationRequestBuilder.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.