NX Open C++ Reference Guide
Public Member Functions | List of all members
NXOpen::Tooling::ToolingSession Class Reference

Represents Tooling session
To obtain an instance of this class, refer to NXOpen::Session

Created in NX8.0.0. More...

Public Member Functions

void ClosePart (NXOpen::NXObject *part, NXOpen::BasePart::CloseWholeTree wholeTree, NXOpen::BasePart::CloseModified closeModified)
 Close an existing part
Created in NX9.0.2. More...
 
NXOpen::Tooling::CloneObjectCreateCloneObject (NXOpen::Tooling::ToolingApplication applicationType, NXOpen::Tooling::ToolingCloneaction cloneActionType)
 Creates the clone operation object. More...
 
NXOpen::Tooling::SpreadsheetDataCreateSpreadsheetData ()
 Create Tooling.SpreadsheetData object. More...
 
std::vector
< NXOpen::Assemblies::Component * > 
GetReusableComponent ()
 Gets the reusable component. More...
 
void GetReusableObjects (NXOpen::NXObject *part, std::vector< NXOpen::NXObject * > &reusableObjects)
 Gets the last added reusable object
Created in NX10.0.0. More...
 
NXOpen::BasePartLoadReusablePart (const NXString &filename, bool isNativePart)
 Opens an existing part, but does not set it to be the displayed part. More...
 
NXOpen::BasePartLoadReusablePart (const char *filename, bool isNativePart)
 Opens an existing part, but does not set it to be the displayed part. More...
 
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

Represents Tooling session
To obtain an instance of this class, refer to NXOpen::Session

Created in NX8.0.0.


Member Function Documentation

void NXOpen::Tooling::ToolingSession::ClosePart ( NXOpen::NXObject part,
NXOpen::BasePart::CloseWholeTree  wholeTree,
NXOpen::BasePart::CloseModified  closeModified 
)

Close an existing part
Created in NX9.0.2.



License requirements : None

Parameters
partTag of the part that will be closed
wholeTreeIf true, unloads all components of the part. If false, unloads only the top-level part
closeModifiedBehavior of close if component parts are modified.
NXOpen::Tooling::CloneObject* NXOpen::Tooling::ToolingSession::CreateCloneObject ( NXOpen::Tooling::ToolingApplication  applicationType,
NXOpen::Tooling::ToolingCloneaction  cloneActionType 
)

Creates the clone operation object.

Returns
the new NXOpen::Tooling::CloneObject instance
Created in NX8.0.0.

License requirements : None
Parameters
applicationTypeApplication type to determine the clone settings
cloneActionTypeClone action type
NXOpen::Tooling::SpreadsheetData* NXOpen::Tooling::ToolingSession::CreateSpreadsheetData ( )

Create Tooling.SpreadsheetData object.

Returns
the new NXOpen::Tooling::SpreadsheetData instance
Created in NX8.0.0.

License requirements : None
std::vector<NXOpen::Assemblies::Component *> NXOpen::Tooling::ToolingSession::GetReusableComponent ( )

Gets the reusable component.

Returns
The array of reuseable components
Created in NX9.0.0.

License requirements : None
void NXOpen::Tooling::ToolingSession::GetReusableObjects ( NXOpen::NXObject part,
std::vector< NXOpen::NXObject * > &  reusableObjects 
)

Gets the last added reusable object
Created in NX10.0.0.



License requirements : None

Parameters
partTag of the part that contains reusable objects
reusableObjectsObjects, mainly bodies, from the input part
NXOpen::BasePart* NXOpen::Tooling::ToolingSession::LoadReusablePart ( const NXString filename,
bool  isNativePart 
)

Opens an existing part, but does not set it to be the displayed part.

Returns
Part Tag
Created in NX9.0.1.

License requirements : None
Parameters
filenameName of part file
NOTE: The full Unicode character set is not supported for this parameter.
isNativePartIs the file from native or TC
NXOpen::BasePart* NXOpen::Tooling::ToolingSession::LoadReusablePart ( const char *  filename,
bool  isNativePart 
)

Opens an existing part, but does not set it to be the displayed part.

Returns
Part Tag
Created in NX9.0.1.

License requirements : None
Parameters
filenameName of part file
NOTE: The full Unicode character set is not supported for this parameter.
isNativePartIs the file from native or TC
tag_t NXOpen::Tooling::ToolingSession::Tag ( ) const

Returns the tag of this object.


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