NX Open C++ Reference Guide
|
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::CloneObject * | CreateCloneObject (NXOpen::Tooling::ToolingApplication applicationType, NXOpen::Tooling::ToolingCloneaction cloneActionType) |
Creates the clone operation object. More... | |
void | CreateComponentPattern (NXOpen::NXObject *component, NXOpen::NXObject *targetEntity) |
Create component pattern Created in NX11.0.2. More... | |
NXOpen::Tooling::SpreadsheetData * | CreateSpreadsheetData () |
Creates an instance of class NXOpen::Tooling::SpreadsheetData . 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::BasePart * | LoadReusablePart (const NXString &filename, bool isNativePart) |
Opens an existing part, but does not set it to be the displayed part. More... | |
NXOpen::BasePart * | LoadReusablePart (const char *filename, bool isNativePart) |
Opens an existing part, but does not set it to be the displayed part. More... | |
void | SetWizardType (int type) |
Sets the wizard type of tooling application. More... | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
Represents Tooling session
To obtain an instance of this class, refer to NXOpen::Session
Created in NX8.0.0.
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
part | Tag of the part that will be closed |
wholeTree | If true, unloads all components of the part. If false, unloads only the top-level part |
closeModified | Behavior 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.
applicationType | Application type to determine the clone settings |
cloneActionType | Clone action type |
void NXOpen::Tooling::ToolingSession::CreateComponentPattern | ( | NXOpen::NXObject * | component, |
NXOpen::NXObject * | targetEntity | ||
) |
Create component pattern
Created in NX11.0.2.
License requirements : None
component | component |
targetEntity | targetentity |
NXOpen::Tooling::SpreadsheetData* NXOpen::Tooling::ToolingSession::CreateSpreadsheetData | ( | ) |
Creates an instance of class NXOpen::Tooling::SpreadsheetData .
Please note this method will only create an empty class NXOpen::Tooling::SpreadsheetData object, it needs to call other method NXOpen::Tooling::SpreadsheetData::ReadData to retrieve the data.
std::vector<NXOpen::Assemblies::Component *> NXOpen::Tooling::ToolingSession::GetReusableComponent | ( | ) |
Gets the reusable component.
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
part | Tag of the part that contains reusable objects |
reusableObjects | Objects, 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.
filename | Name of part file |
isNativePart | Is 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.
filename | Name of part file |
isNativePart | Is the file from native or TC |
void NXOpen::Tooling::ToolingSession::SetWizardType | ( | int | type | ) |
Sets the wizard type of tooling application.
Created in NX11.0.2.
License requirements : None
type | wizard type of current tooling application |
tag_t NXOpen::Tooling::ToolingSession::Tag | ( | ) | const |
Returns the tag of this object.