CopyObjectsBuilder Class¶
-
class
NXOpen.Features.ShipDesign.
CopyObjectsBuilder
¶ Bases:
NXOpen.Builder
Represents a
NXOpen.Features.ShipDesign.CopyObjectsBuilder
It is used in Ship Building Application.The operation copies one or more components and pastes them to new parts while re-parenting and maintaining WAVE links
To create a new instance of this class, use
NXOpen.Features.ShipCollection.CreateCopyObjectsBuilder
Default values.
Property Value ObjectType Part New in version NX10.0.0.
Properties¶
Property | Description |
---|---|
CopyFrom | Returns the plane where the source objects to be copied from. |
CopyTo | Returns the target objects where the source objects to be copied to. |
InputObjects | Returns the source input objects to copy. |
ObjectType | Returns or sets the type of objects to copy. |
ShipNames | Returns the Ship Names builder, used to assign names to the copied objects created. |
Tag | Returns the Tag for this object. |
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¶
CopyObjectsBuilderType Enumeration | Type of Source Objects. |
Property Detail¶
CopyFrom¶
-
CopyObjectsBuilder.
CopyFrom
¶ Returns the plane where the source objects to be copied from.
-------------------------------------
Getter Method
Signature
CopyFrom()
Returns: Return type: NXOpen.SelectNXObject
New in version NX10.0.0.
License requirements: None.
CopyTo¶
-
CopyObjectsBuilder.
CopyTo
¶ Returns the target objects where the source objects to be copied to.
-------------------------------------
Getter Method
Signature
CopyTo()
Returns: Component or Plane Return type: NXOpen.SelectNXObjectList
New in version NX10.0.0.
License requirements: None.
InputObjects¶
-
CopyObjectsBuilder.
InputObjects
¶ Returns the source input objects to copy.
-------------------------------------
Getter Method
Signature
InputObjects()
Returns: Component or Feature Return type: NXOpen.SelectNXObjectList
New in version NX10.0.0.
License requirements: None.
ObjectType¶
-
CopyObjectsBuilder.
ObjectType
¶ Returns or sets the type of objects to copy.
-------------------------------------
Getter Method
Signature
ObjectType()
Returns: Return type: NXOpen.Features.ShipDesign.CopyObjectsBuilderType
New in version NX10.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ObjectType(objectType)
Parameters: objectType ( NXOpen.Features.ShipDesign.CopyObjectsBuilderType
) –New in version NX10.0.0.
License requirements: nx_ship_basic (“Ship Basic Design”)
ShipNames¶
-
CopyObjectsBuilder.
ShipNames
¶ Returns the Ship Names builder, used to assign names to the copied objects created.
-------------------------------------
Getter Method
Signature
ShipNames()
Returns: Ship Names List Builder Return type: NXOpen.Features.ShipDesign.ShipNamesListBuilder
New in version NX10.0.0.
License requirements: None.
Method Detail¶
Validate¶
-
CopyObjectsBuilder.
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.