NX Open C++ Reference Guide
Public Types | Public Member Functions | List of all members
NXOpen::Gateway::CopyCutBuilder Class Reference

Represents a NXOpen::Gateway::CopyCutBuilder
To create a new instance of this class, use NXOpen::ClipboardOperationsManager::CreateCopyCutBuilder

Created in NX7.5.0. More...

Inheritance diagram for NXOpen::Gateway::CopyCutBuilder:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public Types

enum  Status {
  StatusNoObjectsCopied, StatusNonExportableObjects, StatusPartExportFailed, StatusErrorDuringCut,
  StatusAllObjectsCopied
}
 Status of Copy or Cut Operation. More...
 

Public Member Functions

bool CanCopyAsSketch ()
 Returns a flag indicating whether to copy as sketch curves or not
Created in NX7.5.0. More...
 
NXString DestinationFilename ()
 Returns the string of the filename to which to copy or cut the objects to
Created in NX7.5.0. More...
 
NXOpen::Gateway::CopyCutBuilder::Status GetCopyCutStatus ()
 Gets the status of copy-cut operation. More...
 
std::vector< NXOpen::NXObject * > GetNonExportableObjects ()
 Gets all non-exportable objects. More...
 
std::vector< NXOpen::NXObject * > GetObjects ()
 Gets all objects to be copied or to be cut. More...
 
NXOpen::Point3d InitialCopyLocation ()
 Returns the initial copy location mainly used to define default copy location of sketch objects
Created in NX7.5.0. More...
 
bool IsCut ()
 Returns a flag indicating whether it is a copy or cut operation
Created in NX7.5.0. More...
 
void ResetInitialCopyLocation ()
 Reset the initial copy location. More...
 
void SetCanCopyAsSketch (bool canCopyAsSketch)
 Sets a flag indicating whether to copy as sketch curves or not
Created in NX7.5.0. More...
 
void SetCut (bool isCut)
 Sets a flag indicating whether it is a copy or cut operation
Created in NX7.5.0. More...
 
void SetDestinationFilename (const NXString &filename)
 Sets the string of the filename to which to copy or cut the objects to
Created in NX7.5.0. More...
 
void SetDestinationFilename (const char *filename)
 Sets the string of the filename to which to copy or cut the objects to
Created in NX7.5.0. More...
 
void SetInitialCopyLocation (const NXOpen::Point3d &copyLocation)
 Sets the initial copy location mainly used to define default copy location of sketch objects
Created in NX7.5.0. More...
 
void SetObjects (const std::vector< NXOpen::NXObject * > &objects)
 Sets all objects to be copied or to be cut
Created in NX7.5.0. More...
 
void SetToClipboard (bool isToClipboard)
 Sets a flag indicating whether copy cut to clipboard or copy cut to a file
Created in NX7.5.0. More...
 
bool ToClipboard ()
 Returns a flag indicating whether copy cut to clipboard or copy cut to a file
Created in NX7.5.0. More...
 
- Public Member Functions inherited from NXOpen::Builder
NXOpen::NXObjectCommit ()
 Commits any edits that have been applied to the builder. More...
 
void Destroy ()
 Deletes the builder, and cleans up any objects created by the builder. More...
 
std::vector< NXOpen::NXObject * > GetCommittedObjects ()
 For builders that create more than one object, this method returns the objects that are created by commit. More...
 
NXOpen::NXObjectGetObject ()
 Returns the object currently being edited by this builder. More...
 
void ShowResults ()
 Updates the model to reflect the result of an edit to the model for all builders that support showing results. More...
 
virtual bool Validate ()
 Validate whether the inputs to the component are sufficient for commit to be called. More...
 
- Public Member Functions inherited from NXOpen::TaggedObject
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

Represents a NXOpen::Gateway::CopyCutBuilder
To create a new instance of this class, use NXOpen::ClipboardOperationsManager::CreateCopyCutBuilder

Created in NX7.5.0.


Member Enumeration Documentation

Status of Copy or Cut Operation.

Enumerator
StatusNoObjectsCopied 

No objects were successfully copied.

StatusNonExportableObjects 

Certain non-exportable objects were not copied.

StatusPartExportFailed 

Error while exporting part with copied/cut objects.

StatusErrorDuringCut 

Error during the cut operation.

StatusAllObjectsCopied 

All objects were successfully copied.

Member Function Documentation

bool NXOpen::Gateway::CopyCutBuilder::CanCopyAsSketch ( )

Returns a flag indicating whether to copy as sketch curves or not
Created in NX7.5.0.



License requirements : None

NXString NXOpen::Gateway::CopyCutBuilder::DestinationFilename ( )

Returns the string of the filename to which to copy or cut the objects to
Created in NX7.5.0.



License requirements : None

NXOpen::Gateway::CopyCutBuilder::Status NXOpen::Gateway::CopyCutBuilder::GetCopyCutStatus ( )

Gets the status of copy-cut operation.

Returns

Created in NX7.5.0.

License requirements : None
std::vector<NXOpen::NXObject *> NXOpen::Gateway::CopyCutBuilder::GetNonExportableObjects ( )

Gets all non-exportable objects.

Returns
All the non-exportable objects
Created in NX7.5.0.

License requirements : None
std::vector<NXOpen::NXObject *> NXOpen::Gateway::CopyCutBuilder::GetObjects ( )

Gets all objects to be copied or to be cut.

Returns
All the objects to be copied or to be cut
Created in NX7.5.0.

License requirements : None
NXOpen::Point3d NXOpen::Gateway::CopyCutBuilder::InitialCopyLocation ( )

Returns the initial copy location mainly used to define default copy location of sketch objects
Created in NX7.5.0.



License requirements : None

bool NXOpen::Gateway::CopyCutBuilder::IsCut ( )

Returns a flag indicating whether it is a copy or cut operation
Created in NX7.5.0.



License requirements : None

void NXOpen::Gateway::CopyCutBuilder::ResetInitialCopyLocation ( )

Reset the initial copy location.

After this previously set initial copy location will not be used
Created in NX7.5.0.

License requirements : None

void NXOpen::Gateway::CopyCutBuilder::SetCanCopyAsSketch ( bool  canCopyAsSketch)

Sets a flag indicating whether to copy as sketch curves or not
Created in NX7.5.0.



License requirements : None

Parameters
canCopyAsSketchcancopyassketch
void NXOpen::Gateway::CopyCutBuilder::SetCut ( bool  isCut)

Sets a flag indicating whether it is a copy or cut operation
Created in NX7.5.0.



License requirements : None

Parameters
isCutiscut
void NXOpen::Gateway::CopyCutBuilder::SetDestinationFilename ( const NXString filename)

Sets the string of the filename to which to copy or cut the objects to
Created in NX7.5.0.



License requirements : None

Parameters
filenamefilename
void NXOpen::Gateway::CopyCutBuilder::SetDestinationFilename ( const char *  filename)

Sets the string of the filename to which to copy or cut the objects to
Created in NX7.5.0.



License requirements : None

Parameters
filenamefilename
void NXOpen::Gateway::CopyCutBuilder::SetInitialCopyLocation ( const NXOpen::Point3d copyLocation)

Sets the initial copy location mainly used to define default copy location of sketch objects
Created in NX7.5.0.



License requirements : None

Parameters
copyLocationCopy location in absolute coordinates
void NXOpen::Gateway::CopyCutBuilder::SetObjects ( const std::vector< NXOpen::NXObject * > &  objects)

Sets all objects to be copied or to be cut
Created in NX7.5.0.



License requirements : None

Parameters
objectsAll the objects to be copied or to be cut
void NXOpen::Gateway::CopyCutBuilder::SetToClipboard ( bool  isToClipboard)

Sets a flag indicating whether copy cut to clipboard or copy cut to a file
Created in NX7.5.0.



License requirements : None

Parameters
isToClipboardistoclipboard
bool NXOpen::Gateway::CopyCutBuilder::ToClipboard ( )

Returns a flag indicating whether copy cut to clipboard or copy cut to a file
Created in NX7.5.0.



License requirements : None


The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.