NX Open C++ Reference Guide
Classes | Public Types | Public Member Functions
NXOpen::PartCollection Class Reference

Represents the collection of all parts in a session. More...

Inheritance diagram for NXOpen::PartCollection:
NXOpen::TaggedObjectCollection

List of all members.

Classes

class  iterator
 Iterator for accessing the contents of the collection. More...

Public Types

typedef NXOpen::Callback1
< void, NXOpen::BasePart * > 
PartClosedHandler
 User defined method that is called whenever a part is in the process of being closed
Created in NX6.0.0.
typedef NXOpen::Callback1
< void, NXOpen::BasePart * > 
PartCreatedHandler
 User defined method that is called whenever a new part is created
Created in NX6.0.0.
typedef NXOpen::Callback1
< void, NXOpen::BasePart * > 
PartModifiedHandler
 User defined method that is called whenever a part is modified
Created in NX6.0.0.
typedef NXOpen::Callback1
< void, NXOpen::BasePart * > 
PartOpenedHandler
 User defined method that is called whenever a part is opened
Created in NX6.0.0.
typedef NXOpen::Callback1
< void, NXOpen::BasePart * > 
PartRenamedHandler
 User defined method that is called whenever a part is renamed
Created in NX6.0.0.
typedef NXOpen::Callback1
< void, NXOpen::BasePart * > 
PartSavedAsHandler
 User defined method that is called whenever a part is saved as a specified name
Created in NX6.0.0.
typedef NXOpen::Callback1
< void, NXOpen::BasePart * > 
PartSavedHandler
 User defined method that is called whenever a part is saved
Created in NX6.0.0.
enum  RefsetOption { RefsetOptionEntire, RefsetOptionCurrent }
 Controls the reference set used when setting the work component. More...
enum  SdpsStatus {
  SdpsStatusOk, SdpsStatusOutsideModelling, SdpsStatusDrawingDisplayed, SdpsStatusInPartsList,
  SdpsStatusGdt, SdpsStatusUnitsMismatch
}
 Indicates the reason why it was not possible to use Design in Context (i.e. More...
enum  WorkComponentOption { WorkComponentOptionVisible, WorkComponentOptionGiven }
 Controls the behavior when setting the work component. More...
typedef NXOpen::Callback1
< void, NXOpen::BasePart * > 
WorkPartChangedHandler
 User defined method that is called whenever the work part changes
Created in NX6.0.0.

Public Member Functions

int AddPartClosedHandler (const NXOpen::PartCollection::PartClosedHandler &handler)
 Registers a user defined method that is called whenever a part is in the process of being closed.
int AddPartCreatedHandler (const NXOpen::PartCollection::PartCreatedHandler &handler)
 Registers a user defined method that is called whenever a new part is created.
int AddPartModifiedHandler (const NXOpen::PartCollection::PartModifiedHandler &handler)
 Registers a user defined method that is called whenever a part is modified.
int AddPartOpenedHandler (const NXOpen::PartCollection::PartOpenedHandler &handler)
 Registers a user defined method that is called whenever a part is opened.
int AddPartRenamedHandler (const NXOpen::PartCollection::PartRenamedHandler &handler)
 Registers a user defined method that is called whenever a part is renamed.
int AddPartSavedAsHandler (const NXOpen::PartCollection::PartSavedAsHandler &handler)
 Registers a user defined method that is called whenever a part is saved as a specified name.
int AddPartSavedHandler (const NXOpen::PartCollection::PartSavedHandler &handler)
 Registers a user defined method that is called whenever a part is saved.
int AddWorkPartChangedHandler (const NXOpen::PartCollection::WorkPartChangedHandler &handler)
 Registers a method that is called whenever the work part changes.
NXOpen::BasePartBaseDisplay ()
 Returns the current display part of the session.
NXOpen::BasePartBaseWork ()
 Returns the current work part of the session.
iterator begin ()
 Returns an iterator addressing the first element.
void CloseAll (NXOpen::BasePart::CloseModified closeModified, NXOpen::PartCloseResponses *responses)
 Closes all the parts open in the session.
void CloseAll (NXOpen::Part::CloseModified closeModified, NXOpen::PartCloseResponses *responses)
 Closes all the parts open in the session.
NXOpen::PartDisplay ()
 Returns the current display part of the session.
iterator end ()
 Returns an iterator addressing one past the last element.
NXOpen::FileNewFileNew ()
 Creates a FileNew.
NXOpen::BasePartFindObject (const NXString &name)
 Finds the BasePart with the given name.
NXOpen::PartSaveStatusForceSaveAll ()
 Saves all modified parts in a session.
NXOpen::LoadOptionsLoadOptions ()
 The LoadOptions that determines how parts are loaded in this session
Created in NX3.0.0.
NXOpen::BasePartNewBaseDisplay (const NXString &name, NXOpen::BasePart::Units units)
 Creates a new part and sets this part as the display part.
NXOpen::PartNewDisplay (const NXString &name, NXOpen::Part::Units units)
 Creates a new .prt part and sets this part as the display part.
NXOpen::PartCloseResponsesNewPartCloseResponses ()
 Constructs a new PartCloseResponses class.
NXOpen::PartOpen (const NXString &filename, NXOpen::PartLoadStatus **loadStatus)
 Opens an existing .prt part, but does not set it to be the displayed part.
NXOpen::BasePartOpenBase (const NXString &filename, NXOpen::PartLoadStatus **loadStatus)
 Opens an existing part, but does not set it to be the displayed part.
NXOpen::BasePartOpenBaseDisplay (const NXString &filename, NXOpen::PartLoadStatus **loadStatus)
 Opens an existing part and sets this part as the display part.
NXOpen::PartOpenDisplay (const NXString &filename, NXOpen::PartLoadStatus **loadStatus)
 Opens an existing .prt part and sets this part as the display part.
void OpenSeedPartBlankTemplate (const NXString &filename, bool addMaster)
 Open unpopulated dataset with blank template
Created in NX6.0.0.
NXOpen::PDM::PartManagerPDMPartManager ()
 The NXOpen::PDM::PartManager that manages creation of parts in NX Manager mode
Created in NX3.0.0.
void RemovePartClosedHandler (int id)
 Unregisters a user defined method that is called whenever a part is in the process of being closed
Created in NX6.0.0.
void RemovePartCreatedHandler (int id)
 Unregisters a user defined method that is called whenever a new part is created
Created in NX6.0.0.
void RemovePartModifiedHandler (int id)
 Unregisters a user defined method that is called whenever a part is modified
Created in NX6.0.0.
void RemovePartOpenedHandler (int id)
 Unregisters a user defined method that is called whenever a part is opened
Created in NX6.0.0.
void RemovePartRenamedHandler (int id)
 Unregisters a user defined method that is called whenever a part is renamed
Created in NX6.0.0.
void RemovePartSavedAsHandler (int id)
 Unregisters a user defined method that is called whenever a part is saved as a specified name
Created in NX6.0.0.
void RemovePartSavedHandler (int id)
 Unregisters a user defined method that is called whenever a part is saved
Created in NX6.0.0.
void RemoveWorkPartChangedHandler (int id)
 Unregisters a method that is called whenever the work part changes
Created in NX6.0.0.
NXOpen::PartReopenReportReopenAll (NXOpen::BasePart::CloseModified closeModified, NXOpen::PartCloseResponses *responses)
 Reopens all modified parts in the session.
void ReopenAll (NXOpen::Part::CloseModified closeModified, NXOpen::PartCloseResponses *responses, NXOpen::PartReopenReport **reopenReport)
 Reopens all modified parts in the session.
void SaveAll (bool *anyPartsModified, NXOpen::PartSaveStatus **saveStatus)
 Saves all modified parts in a session.
NXOpen::SaveOptionsSaveOptions ()
 The SaveOptions that determines how parts are saved in this session
Created in NX3.0.0.
NXOpen::PartCollection::SdpsStatus SetDisplay (NXOpen::BasePart *part, bool maintainWorkPart, bool setEntirePart, NXOpen::PartLoadStatus **loadStatus)
 Sets the displayed part.
void SetNonmasterSeedPartData (const NXString &filename)
 Set non master seed part data for opening unpopulated non master part
Created in NX6.0.0.
void SetSeedPartTemplateData (const NXString &filename, const NXString &templateName, bool addMaster)
 Specify template data to open seed part or empty item revision
Created in NX6.0.0.
void SetWork (NXOpen::BasePart *part)
 Sets the current work part.
void SetWorkComponent (NXOpen::Assemblies::Component *workComponent, NXOpen::PartLoadStatus **loadStatus)
 Sets the work component.
void SetWorkComponent (NXOpen::Assemblies::Component *workComponent, NXOpen::PartCollection::RefsetOption refsetOption, NXOpen::PartCollection::WorkComponentOption visibility, NXOpen::PartLoadStatus **loadStatus)
 Sets the work component.
NXOpen::ShapeSearch::SearchManagerShapeSearchManager ()
 The ShapeSearch::SearchManager that manages shape search in this session
Created in NX6.0.0.
tag_t Tag () const
 Returns the tag of this object.
NXOpen::PartWork ()
 Returns the current work part of the session.
NXOpen::Assemblies::ComponentWorkComponent ()
 Returns the work component.

Detailed Description

Represents the collection of all parts in a session.


Several methods including PartCollection::NewDisplay , PartCollection::OpenDisplay and BasePart::SaveAs can take part names in NX Manager command-line format while running in NX Manager mode. This format is as follows:

         Master Part:        \<@\>DB/part-number/revision
                             \<@\>DB/part-number/revision/master
                             \<@\>DB/part-number/revision/master
                             \<@\>DB/part-number/revision/master/version
         Non-Master Part:    \<@\>DB/part-number/revision/type/name
                             \<@\>DB/part-number/revision/type/name/version


The separator character ('/') may be any character not used in the part-number, revision or type fields. It is inferred as the first character after the "\<@\>DB" prefix.

To obtain an instance of this class, refer to Session

Created in NX3.0.0.


Member Typedef Documentation

User defined method that is called whenever a part is in the process of being closed
Created in NX6.0.0.



License requirements : None

User defined method that is called whenever a new part is created
Created in NX6.0.0.



License requirements : None

User defined method that is called whenever a part is modified
Created in NX6.0.0.



License requirements : None

User defined method that is called whenever a part is opened
Created in NX6.0.0.



License requirements : None

User defined method that is called whenever a part is renamed
Created in NX6.0.0.



License requirements : None

User defined method that is called whenever a part is saved as a specified name
Created in NX6.0.0.



License requirements : None

User defined method that is called whenever a part is saved
Created in NX6.0.0.



License requirements : None

User defined method that is called whenever the work part changes
Created in NX6.0.0.



License requirements : None


Member Enumeration Documentation

Controls the reference set used when setting the work component.

See SetWorkComponent

Enumerator:
RefsetOptionEntire 

Use the "Entire Part" reference set for the new work component.

RefsetOptionCurrent 

Use the component's current reference set.

Indicates the reason why it was not possible to use Design in Context (i.e.

to set the work part to a component of the displayed part.)

Used as a return code for SetDisplay

Enumerator:
SdpsStatusOk 

The work part was set successfully.

This code indicates success: all other codes indicate failure

SdpsStatusOutsideModelling 

The modelling application is not active.

SdpsStatusDrawingDisplayed 

A drawing is currently displayed.

SdpsStatusInPartsList 

The Part List module is active.

SdpsStatusGdt 

The Tolerancing module is active.

SdpsStatusUnitsMismatch 

The work part and displayed part have different units.

Controls the behavior when setting the work component.

See SetWorkComponent

Enumerator:
WorkComponentOptionVisible 

If the given work component is not visible, chose another component that represents the same part.

If no suitable visible component can be found, throw an exception. This option ensures that the new work component will always be visible.

WorkComponentOptionGiven 

Use the given work component, regardless of visibility.


Member Function Documentation

Registers a user defined method that is called whenever a part is in the process of being closed.

Returns:
identifier of registered method (used to unregister the method)
Created in NX6.0.0.

License requirements : None
Parameters:
handlermethod to register

Registers a user defined method that is called whenever a new part is created.

Returns:
identifier of registered method (used to unregister the method)
Created in NX6.0.0.

License requirements : None
Parameters:
handlermethod to register

Registers a user defined method that is called whenever a part is modified.

Returns:
identifier of registered method (used to unregister the method)
Created in NX6.0.0.

License requirements : None
Parameters:
handlermethod to register

Registers a user defined method that is called whenever a part is opened.

Returns:
identifier of registered method (used to unregister the method)
Created in NX6.0.0.

License requirements : None
Parameters:
handlermethod to register

Registers a user defined method that is called whenever a part is renamed.

Returns:
identifier of registered method (used to unregister the method)
Created in NX6.0.0.

License requirements : None
Parameters:
handlermethod to register

Registers a user defined method that is called whenever a part is saved as a specified name.

Returns:
identifier of registered method (used to unregister the method)
Created in NX6.0.0.

License requirements : None
Parameters:
handlermethod to register

Registers a user defined method that is called whenever a part is saved.

Returns:
identifier of registered method (used to unregister the method)
Created in NX6.0.0.

License requirements : None
Parameters:
handlermethod to register

Registers a method that is called whenever the work part changes.

Returns:
identifier of registered method (used to unregister the method)
Created in NX6.0.0.

License requirements : None
Parameters:
handlermethod to register

Returns the current display part of the session.


Created in NX4.0.0.

License requirements : None

Returns the current work part of the session.

This is either the displayed part, or a part represented by a component in the displayed part's NXOpen::Assemblies::ComponentAssembly . See: WorkComponent


Created in NX4.0.0.

License requirements : None

Returns an iterator addressing the first element.

Closes all the parts open in the session.


Created in NX3.0.0.

License requirements : None

Parameters:
closeModifiedBehavior of close if component parts are modified.
responsesClass representing list of parts to close or leave open if modified. Only used if closed_modified is set to BasePart::CloseModifiedUseResponses . If BasePart::CloseModifiedUseResponses is set, then any parts that are candidates for being closed that are not in this list will be closed whether modified or not. See PartCloseResponses for how to add responses to this class.

Closes all the parts open in the session.


This method is deprecated. Use the overloaded version of this method that takes BasePart::CloseModified instead.

Deprecated:
Deprecated in NX4.0.0.


Created in NX3.0.0.

License requirements : None

Parameters:
closeModifiedBehavior of close if component parts are modified.
responsesClass representing list of parts to close or leave open if modified. Only used if closed_modified is set to Part::CloseModifiedUseResponses . If Part::CloseModifiedUseResponses is set, then any parts that are candidates for being closed that are not in this list will be closed whether modified or not. See PartCloseResponses for how to add responses to this class.

Returns the current display part of the session.

An error will be thrown if the display part is not a .prt part.
Created in NX3.0.0.

License requirements : None

Returns an iterator addressing one past the last element.

Creates a FileNew.

Returns:

Created in NX5.0.0.

License requirements : None

Finds the BasePart with the given name.

The part must have been loaded in this session.

An exception will be thrown if no object can be found with the given name.

Returns:
The part with the given name.
Created in NX3.0.0.

License requirements : None
Parameters:
nameThe name of the BasePart . This may either be the full pathname of the leaf name.

Saves all modified parts in a session.

Returns:
Parts that could not be saved and their associated errors.
Created in NX6.0.0.

License requirements : None

The LoadOptions that determines how parts are loaded in this session
Created in NX3.0.0.


Creates a new part and sets this part as the display part.

Returns:
Newly created part
Created in NX4.0.0.

License requirements : None
Parameters:
nameName of new part
NOTE: The full Unicode character set is not supported for this parameter.
unitsUnits of new part

Creates a new .prt part and sets this part as the display part.


Note: This method should only be used to create new .prt parts. Use PartCollection::NewDisplay to create other types of parts other than .prt parts.

Returns:
Newly created part
Created in NX3.0.0.

License requirements : None
Parameters:
nameName of new part
NOTE: The full Unicode character set is not supported for this parameter.
unitsUnits of new part

Constructs a new PartCloseResponses class.

This class is used to communicate whether to close certain parts if they are modified during part close.

Returns:

Created in NX4.0.0.

License requirements : None
NXOpen::Part* NXOpen::PartCollection::Open ( const NXString filename,
NXOpen::PartLoadStatus **  loadStatus 
)

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

See OpenDisplay .


Note: This method should only be used to open .prt parts. Use PartCollection::OpenBase to open other types of parts other than .prt parts.

Returns:

Created in NX3.0.0.

License requirements : None
Parameters:
filename
NOTE: The full Unicode character set is not supported for this parameter.
loadStatusParts that could not be loaded and their associated errors.

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

See OpenBaseDisplay .


Note: This method can also be used to open bookmark files and parts other than .prt parts.

Returns:

Created in NX4.0.0.

License requirements : None
Parameters:
filename
NOTE: The full Unicode character set is not supported for this parameter.
loadStatusParts that could not be loaded and their associated errors.

Opens an existing part and sets this part as the display part.

This method will load components in the following manner depending on how the NXOpen::LoadOptions::ComponentsToLoad property is set:
1) "All Components" (NXOpen::LoadOptions::LoadComponentsAll ) will load all components of the assembly.

2) "Last Used Component Set" (NXOpen::LoadOptions::LoadComponentsLastSet ) will load the components in the last saved component set.



3) "No Components" (NXOpen::LoadOptions::LoadComponentsNone ), "Use Last Filter" (NXOpen::LoadOptions::LoadComponentsLastFilter ) or "Specify Filter" (NXOpen::LoadOptions::LoadComponentsSpecifyFilter ) will load none of the components of the assembly.


Note: This method can also be used to open bookmark files and parts other than .prt parts.

Returns:

Created in NX4.0.0.

License requirements : None
Parameters:
filename
NOTE: The full Unicode character set is not supported for this parameter.
loadStatusParts that could not be loaded and their associated errors.

Opens an existing .prt part and sets this part as the display part.


Note: This method should only be used to open .prt parts. Use PartCollection::OpenBaseDisplay to open other types of parts other than .prt parts.

This method will load components in the following manner depending on how the NXOpen::LoadOptions::ComponentsToLoad property is set:
1) "All Components" (NXOpen::LoadOptions::LoadComponentsAll ) will load all components of the assembly.

2) "Last Used Component Set" (NXOpen::LoadOptions::LoadComponentsLastSet ) will load the components in the last saved component set.



3) "No Components" (NXOpen::LoadOptions::LoadComponentsNone ), "Use Last Filter" (NXOpen::LoadOptions::LoadComponentsLastFilter ) or "Specify Filter" (NXOpen::LoadOptions::LoadComponentsSpecifyFilter ) will load none of the components of the assembly.

Returns:

Created in NX3.0.0.

License requirements : None
Parameters:
filename
NOTE: The full Unicode character set is not supported for this parameter.
loadStatusParts that could not be loaded and their associated errors.
void NXOpen::PartCollection::OpenSeedPartBlankTemplate ( const NXString filename,
bool  addMaster 
)

Open unpopulated dataset with blank template
Created in NX6.0.0.



License requirements : None

Parameters:
filenameName of the part
NOTE: The full Unicode character set is not supported for this parameter.
addMasterwhether to add master as component

The NXOpen::PDM::PartManager that manages creation of parts in NX Manager mode
Created in NX3.0.0.


Unregisters a user defined method that is called whenever a part is in the process of being closed
Created in NX6.0.0.



License requirements : None

Parameters:
ididentifier for method to unregister

Unregisters a user defined method that is called whenever a new part is created
Created in NX6.0.0.



License requirements : None

Parameters:
ididentifier for method to unregister

Unregisters a user defined method that is called whenever a part is modified
Created in NX6.0.0.



License requirements : None

Parameters:
ididentifier for method to unregister

Unregisters a user defined method that is called whenever a part is opened
Created in NX6.0.0.



License requirements : None

Parameters:
ididentifier for method to unregister

Unregisters a user defined method that is called whenever a part is renamed
Created in NX6.0.0.



License requirements : None

Parameters:
ididentifier for method to unregister

Unregisters a user defined method that is called whenever a part is saved as a specified name
Created in NX6.0.0.



License requirements : None

Parameters:
ididentifier for method to unregister

Unregisters a user defined method that is called whenever a part is saved
Created in NX6.0.0.



License requirements : None

Parameters:
ididentifier for method to unregister

Unregisters a method that is called whenever the work part changes
Created in NX6.0.0.



License requirements : None

Parameters:
ididentifier for method to unregister

Reopens all modified parts in the session.

Returns:
Report containing results of reopen command
Created in NX4.0.0.

License requirements : None
Parameters:
closeModifiedBehavior of close if component parts are modified.
responsesClass representing list of parts to close or leave open if modified. Only used if closed_modified is set to BasePart::CloseModifiedUseResponses . If BasePart::CloseModifiedUseResponses is set, then any parts that are candidates for being closed that are not in this list will be closed whether modified or not. See PartCloseResponses for how to add responses to this class.

Reopens all modified parts in the session.


This method is deprecated. Use the overloaded version of this method that takes BasePart::CloseModified instead.

Deprecated:
Deprecated in NX4.0.0.


Created in NX3.0.0.

License requirements : None

Parameters:
closeModifiedBehavior of close if component parts are modified.
responsesClass representing list of parts to close or leave open if modified. Only used if closed_modified is set to BasePart::CloseModifiedUseResponses . If BasePart::CloseModifiedUseResponses is set, then any parts that are candidates for being closed that are not in this list will be closed whether modified or not. See PartCloseResponses for how to add responses to this class.
reopenReportReport containing results of reopen command
void NXOpen::PartCollection::SaveAll ( bool *  anyPartsModified,
NXOpen::PartSaveStatus **  saveStatus 
)

Saves all modified parts in a session.


Created in NX3.0.0.

License requirements : None

Parameters:
anyPartsModifiedIndicates whether any parts in the session were actually modified before the save operation was called. If false, then no parts were modified and, thus, a save was not attempted on any of the parts.
saveStatusParts that could not be saved and their associated errors.

The SaveOptions that determines how parts are saved in this session
Created in NX3.0.0.


NXOpen::PartCollection::SdpsStatus NXOpen::PartCollection::SetDisplay ( NXOpen::BasePart part,
bool  maintainWorkPart,
bool  setEntirePart,
NXOpen::PartLoadStatus **  loadStatus 
)

Sets the displayed part.

Returns:
Returns OK if the work part could be maintained, or a status code indicating the reason
Created in NX3.0.0.

License requirements : None
Parameters:
partThe new displayed part
maintainWorkPartIf true, and if the current work part is a component of the new displayed part, then the work part remains unchanged. Otherwise the work part is set to the new displayed part.
setEntirePartIf true, and if maintain_work_part is true, the reference set of the work_component will be set to "Entire Part". If false, it will be left unchanged. See NXOpen::Assemblies::ComponentAssembly::ReplaceReferenceSet
loadStatusAny errors found when loading the new work part.

Set non master seed part data for opening unpopulated non master part
Created in NX6.0.0.



License requirements : None

Parameters:
filenameName of the part
NOTE: The full Unicode character set is not supported for this parameter.
void NXOpen::PartCollection::SetSeedPartTemplateData ( const NXString filename,
const NXString templateName,
bool  addMaster 
)

Specify template data to open seed part or empty item revision
Created in NX6.0.0.



License requirements : None

Parameters:
filenameName of the part
NOTE: The full Unicode character set is not supported for this parameter.
templateNameName of the template
NOTE: The full Unicode character set is not supported for this parameter.
addMasterWhether master should be added as child

Sets the current work part.

The work component will be set to one of the visible components that represent this part in the current visible assembly. See SetWorkComponent . If no visible component is available, then an exception is thrown.


Created in NX3.0.0.

License requirements : None

Parameters:
partThe new work part.

Sets the work component.

If the part represented by the new work component is not already the work part, then sets the work part appropriately. The new component's reference set will be set to "Entire Part".
Note that if the given work component is not visible, but an alternative component which represents the same part is visible, then the alternative component will be chosen as the new work component. If no visible component can be found, an exception is thrown


Created in NX3.0.0.

License requirements : None

Parameters:
workComponentThe new work component. This must be a component defined in the NXOpen::Assemblies::ComponentAssembly of the current displayed part. May be null, in which case the work part is reset to the displayed part.
loadStatusAny errors found when loading the new work part.

Sets the work component.

If the part represented by the new work component is not already the work part, then sets the work part appropriately.


Created in NX3.0.0.

License requirements : None

Parameters:
workComponentThe new work component. This must be a component defined in the NXOpen::Assemblies::ComponentAssembly of the current displayed part. May be null, in which case the work part is reset to the displayed part.
refsetOptionControls the reference set of the new component.
visibilityControls the behavior if the new component is not visible
loadStatusAny errors found when loading the new work part.

The ShapeSearch::SearchManager that manages shape search in this session
Created in NX6.0.0.


tag_t NXOpen::PartCollection::Tag ( ) const

Returns the tag of this object.

Returns the current work part of the session.

This is either the displayed part, or a part represented by a component in the displayed part's NXOpen::Assemblies::ComponentAssembly . See: WorkComponent


An error will be thrown if the work part is not a .prt part.


Created in NX3.0.0.

License requirements : None

Returns the work component.

This is the component in the displayed part's NXOpen::Assemblies::ComponentAssembly which represents the current work part. Note that there may be several different components which represent the same work part. In this case, one of them will be selected as the work component, while the others will be greyed out on the main display.


Created in NX3.0.0.

License requirements : None


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