CutCopyPasteBuilder Class¶
-
class
NXOpen.Drafting.
CutCopyPasteBuilder
¶ Bases:
NXOpen.Builder
Represents a paste in Drafting.
To create a new instance of this class, use
NXOpen.Drafting.DraftingApplicationManager.CreateCutCopyPasteBuilder
Default values.
Property Value Transform.DeltaEnum ReferenceWcsWorkPart Transform.DeltaXc.Value 0.0 Transform.DeltaYc.Value 0.0 Transform.DeltaZc.Value 0.0 Transform.Option Distance New in version NX7.5.0.
Properties¶
Property | Description |
---|---|
CutCopyPasteLeader | Returns the leader builder. |
DestinationView | Returns or sets the destination view. |
ObjectsToCopy | Returns the objects list to copy. |
Originals | Returns or sets the operation type. |
OutputObjects | Returns the output Objects |
PasteType | Returns or sets the paste type |
PlaneToRestrictMotion | Returns or sets the plane to restrict motion |
Tag | Returns the Tag for this object. |
Transform | Returns the motion from the default paste position |
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. |
GetDefaultToPoint | Get the default to point. |
GetObject | Returns the object currently being edited by this builder. |
InitPaste | Make the initial drop. |
SetDefaultToPoint | Set the default to point. |
SetMoveOnCommit | Set the final motion from the drop location. |
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¶
CutCopyPasteBuilderTypeOperation Enumeration | Specifies the copy cut operation type. |
CutCopyPasteBuilderTypePaste Enumeration | Specifies the paste type. |
Property Detail¶
CutCopyPasteLeader¶
-
CutCopyPasteBuilder.
CutCopyPasteLeader
¶ Returns the leader builder.
-------------------------------------
Getter Method
Signature
CutCopyPasteLeader()
Returns: Return type: NXOpen.Drafting.CutCopyPasteLeaderBuilder
New in version NX8.0.0.
License requirements: None.
DestinationView¶
-
CutCopyPasteBuilder.
DestinationView
¶ Returns or sets the destination view.
Either a drafting view or sheet view.
-------------------------------------
Getter Method
Signature
DestinationView()
Returns: Return type: NXOpen.View
New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
DestinationView(destinationView)
Parameters: destinationView ( NXOpen.View
) –New in version NX7.5.0.
License requirements: drafting (“DRAFTING”)
ObjectsToCopy¶
-
CutCopyPasteBuilder.
ObjectsToCopy
¶ Returns the objects list to copy.
May include drafting geometry, sketch objects and simple annotations.
-------------------------------------
Getter Method
Signature
ObjectsToCopy()
Returns: Return type: NXOpen.SelectTaggedObjectList
New in version NX7.5.0.
License requirements: None.
Originals¶
-
CutCopyPasteBuilder.
Originals
¶ Returns or sets the operation type.
If it is copy, we will keept the originals. If it is cut, we will delete the originals
-------------------------------------
Getter Method
Signature
Originals()
Returns: Return type: NXOpen.Drafting.CutCopyPasteBuilderTypeOperation
New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Originals(originals)
Parameters: originals ( NXOpen.Drafting.CutCopyPasteBuilderTypeOperation
) –New in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
OutputObjects¶
-
CutCopyPasteBuilder.
OutputObjects
¶ Returns the output Objects
-------------------------------------
Getter Method
Signature
OutputObjects()
Returns: Return type: NXOpen.SelectTaggedObjectList
New in version NX7.5.0.
License requirements: None.
PasteType¶
-
CutCopyPasteBuilder.
PasteType
¶ Returns or sets the paste type
-------------------------------------
Getter Method
Signature
PasteType()
Returns: Return type: NXOpen.Drafting.CutCopyPasteBuilderTypePaste
New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
PasteType(pasteType)
Parameters: pasteType ( NXOpen.Drafting.CutCopyPasteBuilderTypePaste
) –New in version NX8.0.0.
License requirements: None.
PlaneToRestrictMotion¶
-
CutCopyPasteBuilder.
PlaneToRestrictMotion
¶ Returns or sets the plane to restrict motion
-------------------------------------
Getter Method
Signature
PlaneToRestrictMotion()
Returns: Return type: NXOpen.Plane
New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
PlaneToRestrictMotion(plan)
Parameters: plan ( NXOpen.Plane
) –New in version NX7.5.0.
License requirements: drafting (“DRAFTING”)
Transform¶
-
CutCopyPasteBuilder.
Transform
¶ Returns the motion from the default paste position
-------------------------------------
Getter Method
Signature
Transform()
Returns: Return type: NXOpen.GeometricUtilities.ModlMotion
New in version NX7.5.0.
License requirements: None.
Method Detail¶
GetDefaultToPoint¶
-
CutCopyPasteBuilder.
GetDefaultToPoint
¶ Get the default to point.
The drop location.
Signature
GetDefaultToPoint()
Returns: the drop location Return type: NXOpen.Point3d
New in version NX7.5.0.
License requirements: None.
InitPaste¶
-
CutCopyPasteBuilder.
InitPaste
¶ Make the initial drop.
Signature
InitPaste()
New in version NX7.5.0.
License requirements: drafting (“DRAFTING”)
SetDefaultToPoint¶
-
CutCopyPasteBuilder.
SetDefaultToPoint
¶ Set the default to point.
The drop location.
Signature
SetDefaultToPoint(dropLocation)
Parameters: dropLocation ( NXOpen.Point3d
) – the drop locationNew in version NX7.5.0.
License requirements: drafting (“DRAFTING”)
SetMoveOnCommit¶
-
CutCopyPasteBuilder.
SetMoveOnCommit
¶ Set the final motion from the drop location.
Signature
SetMoveOnCommit(rot, trans)
Parameters: - rot (
NXOpen.Matrix3x3
) – rotational part of motion - trans (
NXOpen.Vector3d
) – translation part of motion
New in version NX7.5.0.
License requirements: drafting (“DRAFTING”)
- rot (
Validate¶
-
CutCopyPasteBuilder.
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.