SketchPasteBuilder Class

class NXOpen.SketchPasteBuilder

Bases: NXOpen.Builder

Represents a NXOpen.SketchPasteBuilder

To create a new instance of this class, use NXOpen.SketchCollection.CreateSketchPasteBuilder()

Default values.

Property Value
MoveObject.Associative false
MoveObject.CreateTraceLines false
MoveObject.Divisions 1
MoveObject.LayerOption Original
MoveObject.MoveObjectResult MoveOriginal
MoveObject.MoveParents true
MoveObject.NumberOfCopies 1
MoveObject.TransformMotion.DeltaEnum ReferenceWcsWorkPart
MoveObject.TransformMotion.DeltaXc.Value 0.0
MoveObject.TransformMotion.DeltaYc.Value 0.0
MoveObject.TransformMotion.DeltaZc.Value 0.0
MoveObject.TransformMotion.Option Dynamic

New in version NX7.5.0.

Properties

Property Description
InitialPasteLocation Returns or sets the initial paste location, this is mainly used to define default paste location of sketch objects
MoveObject Returns the move object
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.
ResetInitialPasteLocation Reset the initial paste location, after this previously set initial paste location will not be used
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.

Property Detail

InitialPasteLocation

SketchPasteBuilder.InitialPasteLocation

Returns or sets the initial paste location, this is mainly used to define default paste location of sketch objects

-------------------------------------

Getter Method

Signature InitialPasteLocation

Returns:Drop location coordinates in absolute
Return type:NXOpen.Point3d

New in version NX7.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature InitialPasteLocation

Parameters:dropLocation (NXOpen.Point3d) – Drop location coordinates in absolute

New in version NX7.5.0.

License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”)

MoveObject

SketchPasteBuilder.MoveObject

Returns the move object

-------------------------------------

Getter Method

Signature MoveObject

Returns:
Return type:NXOpen.Features.MoveObjectBuilder

New in version NX7.5.0.

License requirements: None.

Method Detail

ResetInitialPasteLocation

SketchPasteBuilder.ResetInitialPasteLocation

Reset the initial paste location, after this previously set initial paste location will not be used

Signature ResetInitialPasteLocation()

New in version NX7.5.0.

License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”)

Validate

SketchPasteBuilder.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.