NXOpen .NET Reference Guide
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Classes | Public Types | Public Member Functions | Protected Member Functions | Properties | List of all members
NXOpen.PartCollection Class Reference

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

Inheritance diagram for NXOpen.PartCollection:
NXOpen.TaggedObjectCollection NXOpen.Utilities.NXRemotableObject IEnumerable IMessageSink

Classes

class  _PartCollectionPartClosedHandlerAdapter
 
class  _PartCollectionPartCreatedHandlerAdapter
 
class  _PartCollectionPartModifiedHandlerAdapter
 
class  _PartCollectionPartOpenedHandlerAdapter
 
class  _PartCollectionPartRenamedHandlerAdapter
 
class  _PartCollectionPartSavedAsHandlerAdapter
 
class  _PartCollectionPartSavedHandlerAdapter
 
class  _PartCollectionWorkPartChangedHandlerAdapter
 

Public Types

enum  MultipleDisplayedPartStatus { Enabled, DisabledByCustomer, Disabled }
 Represents the status if Multiple Display Parts are allowed or not. More...
 
enum  RefsetOption { Entire, Current, PreserveRefset }
 Controls the reference set used when setting the work component. More...
 
enum  SdpsStatus {
  Ok, OutsideModelling, DrawingDisplayed, InPartsList,
  Gdt, UnitsMismatch
}
 Indicates the reason why it was not possible to use Design in Context (i.e. More...
 
enum  SetProtectionOn { DisplayedPart, DisplayedPartandComponents, AllParts }
 Specifies the parts to which the password protection operation will apply. More...
 
enum  WorkComponentOption { Visible, Given }
 Controls the behavior when setting the work component. More...
 

Public Member Functions

unsafe int AddPartClosedHandler (NXOpen.PartCollection.PartClosedHandler handler)
 Registers a user defined method that is called whenever a part is in the process of being closed More...
 
unsafe int AddPartCreatedHandler (NXOpen.PartCollection.PartCreatedHandler handler)
 Registers a user defined method that is called whenever a new part is created More...
 
unsafe int AddPartModifiedHandler (NXOpen.PartCollection.PartModifiedHandler handler)
 Registers a user defined method that is called whenever a part is modified More...
 
unsafe int AddPartOpenedHandler (NXOpen.PartCollection.PartOpenedHandler handler)
 Registers a user defined method that is called whenever a part is opened. More...
 
unsafe int AddPartRenamedHandler (NXOpen.PartCollection.PartRenamedHandler handler)
 Registers a user defined method that is called whenever a part is renamed More...
 
unsafe int AddPartSavedAsHandler (NXOpen.PartCollection.PartSavedAsHandler handler)
 Registers a user defined method that is called whenever a part is saved as a specified name More...
 
unsafe int AddPartSavedHandler (NXOpen.PartCollection.PartSavedHandler handler)
 Registers a user defined method that is called whenever a part is saved More...
 
unsafe int AddWorkPartChangedHandler (NXOpen.PartCollection.WorkPartChangedHandler handler)
 Registers a method that is called whenever the work part changes More...
 
unsafe void CloseAll (NXOpen.BasePart.CloseModified closeModified, NXOpen.PartCloseResponses responses)
 Closes all the parts open in the session. More...
 
unsafe void ClosePasswordSafe ()
 This method is for closing the currently open password safe. More...
 
unsafe
NXOpen.Gateway.GenericFileNewBuilder 
CreateGenericFileNewBuilder ()
 Creates a NXOpen.Gateway.GenericFileNewBuilder More...
 
unsafe
NXOpen.LinkedMirrorPartBuilder 
CreateLinkedMirrorPartBuilder (NXOpen.Part part)
 Creates a NXOpen.LinkedMirrorPartBuilder More...
 
unsafe NXOpen.PartLoadStatus EnsurePartsLoadedFully (NXOpen.BasePart[] parts, bool includeChildren)
 Ensures that the input parts are fully loaded. More...
 
unsafe NXOpen.PartLoadStatus EnsurePartsLoadedPartially (NXOpen.BasePart[] parts, bool includeChildren)
 Ensures that the input parts are at least partially loaded. More...
 
unsafe NXOpen.FileNew FileNew ()
 Creates a NXOpen.FileNew More...
 
unsafe NXOpen.BasePart FindObject (string name)
 Finds the NXOpen.BasePart with the given name. More...
 
unsafe NXOpen.PartSaveStatus ForceSaveAll ()
 Saves all parts in a session. More...
 
unsafe NXOpen.BasePart[] GetDisplayedParts ()
 Returns all parts that are currently displayed. More...
 
unsafe
NXOpen.LinkedMirrorPartBuilder.MirrorCsysOption 
GetMirrorCsysOptionOfMirrorPart (NXOpen.Part part)
 Get the type of mirror coordinate system for the given linked mirrored part More...
 
unsafe
NXOpen.LinkedMirrorPartBuilder.MirrorPartTypeOption 
GetMirrorPartType (NXOpen.Part part)
 Get the type of linked mirrored part More...
 
unsafe void GetMirrorPlaneDataOfMirrorPart (NXOpen.Part part, out NXOpen.Point3d mirrorPlaneOrigin, out NXOpen.Vector3d mirrorPlaneDirection)
 Get the origin point and the normal direction of the mirror plane for the given linked mirrored part More...
 
unsafe NXOpen.PartLoadState GetPartLoadStateOfFileName (string fileName)
 Returns the load state from part file name. More...
 
unsafe string GetSourcePartNameOfMirrorPart (NXOpen.Part mirrorPart)
 Get source part name of mirror part More...
 
unsafe NXOpen.Part ImportToolDesignPackage (string filename, string outputDirectory, out NXOpen.PartLoadStatus loadStatus, out NXOpen.PartSaveStatus saveStatus)
 Import tool design package More...
 
unsafe bool IsExactMirroredPart (NXOpen.Part part)
 Check whether given part is an exact linked mirrored part More...
 
unsafe bool IsMirroredPart (NXOpen.Part part)
 Check whether given part is a linked mirrored part More...
 
unsafe NXOpen.BasePart NewBase (string name, NXOpen.BasePart.Units units)
 Creates a new part. More...
 
unsafe NXOpen.BasePart NewBaseDisplay (string name, NXOpen.BasePart.Units units)
 Creates a new part and sets this part as the active display part. More...
 
unsafe NXOpen.Part NewDisplay (string name, NXOpen.Part.Units units)
 Creates a new .prt part and sets this part as the active display part. More...
 
unsafe NXOpen.PartCloseResponses NewPartCloseResponses ()
 Constructs a new PartCloseResponses class. More...
 
unsafe NXOpen.Part Open (string filename, out NXOpen.PartLoadStatus loadStatus)
 Opens an existing .prt part, but does not set it to be the active display part. More...
 
unsafe NXOpen.BasePart OpenActiveDisplay (string filename, NXOpen.DisplayPartOption displayPartOption, out NXOpen.PartLoadStatus loadStatus)
 Opens an existing part and sets this part as the active display part. More...
 
unsafe NXOpen.BasePart OpenBase (string filename, out NXOpen.PartLoadStatus loadStatus)
 Opens an existing part, but does not set it to be the active display part. More...
 
unsafe NXOpen.BasePart OpenBaseDisplay (string filename, out NXOpen.PartLoadStatus loadStatus)
 Opens an existing part and sets this part as the active display part. More...
 
unsafe NXOpen.Part OpenDisplay (string filename, out NXOpen.PartLoadStatus loadStatus)
 Opens an existing .prt part and sets this part as the active display part. More...
 
unsafe void OpenPasswordSafe (string fileName, string password)
 This method is for opening a password safe. More...
 
unsafe void OpenSeedPartBlankTemplate (string filename, bool addMaster)
 Open unpopulated dataset with blank template More...
 
delegate void PartClosedHandler (NXOpen.BasePart part)
 User defined method that is called whenever a part is in the process of being closed. More...
 
delegate void PartCreatedHandler (NXOpen.BasePart part)
 User defined method that is called whenever a new part is created. More...
 
delegate void PartModifiedHandler (NXOpen.BasePart part)
 User defined method that is called whenever a part is modified More...
 
delegate void PartOpenedHandler (NXOpen.BasePart part)
 User defined method that is called whenever a part is opened. More...
 
delegate void PartRenamedHandler (NXOpen.BasePart part)
 User defined method that is called whenever a part is renamed More...
 
delegate void PartSavedAsHandler (NXOpen.BasePart part)
 User defined method that is called whenever a part is saved as a specified name. More...
 
delegate void PartSavedHandler (NXOpen.BasePart part)
 User defined method that is called whenever a part is saved. More...
 
unsafe void RefreshPartNavigator ()
 Refreshes the part navigator. More...
 
unsafe void RemovePartClosedHandler (int id)
 Unregisters a user defined method that is called whenever a part is in the process of being closed More...
 
unsafe void RemovePartCreatedHandler (int id)
 Unregisters a user defined method that is called whenever a new part is created More...
 
unsafe void RemovePartModifiedHandler (int id)
 Unregisters a user defined method that is called whenever a part is modified More...
 
unsafe void RemovePartOpenedHandler (int id)
 Unregisters a user defined method that is called whenever a part is opened More...
 
unsafe void RemovePartRenamedHandler (int id)
 Unregisters a user defined method that is called whenever a part is renamed More...
 
unsafe void RemovePartSavedAsHandler (int id)
 Unregisters a user defined method that is called whenever a part is saved as a specified name More...
 
unsafe void RemovePartSavedHandler (int id)
 Unregisters a user defined method that is called whenever a part is saved More...
 
unsafe void RemovePassword (NXOpen.Part part)
 Remove password of the part. More...
 
unsafe void RemovePassword (NXOpen.Part part, NXOpen.PartCollection.SetProtectionOn partoption)
 This method is for deleting security on part(s). More...
 
unsafe void RemoveWorkPartChangedHandler (int id)
 Unregisters a method that is called whenever the work part changes. More...
 
unsafe NXOpen.PartReopenReport ReopenAll (NXOpen.BasePart.CloseModified closeModified, NXOpen.PartCloseResponses responses)
 Reopens all modified parts in the session. More...
 
unsafe void SaveAll (out bool anyPartsModified, out NXOpen.PartSaveStatus saveStatus)
 Saves all modified parts in a session. More...
 
unsafe
NXOpen.PartCollection.SdpsStatus 
SetActiveDisplay (NXOpen.BasePart part, NXOpen.DisplayPartOption displayPartOption, NXOpen.PartDisplayPartWorkPartOption workPartOption, out NXOpen.PartLoadStatus loadStatus)
 Sets the active display part. More...
 
unsafe void SetAllowMultipleDisplayedParts (bool additionalPartsDisplayed)
 Sets the option indicating if more than one displayed part is allowed in this session. More...
 
unsafe
NXOpen.PartCollection.SdpsStatus 
SetDisplay (NXOpen.BasePart part, bool maintainWorkPart, bool setEntirePart, out NXOpen.PartLoadStatus loadStatus)
 Sets the active display part. More...
 
unsafe void SetMirrorPartType (NXOpen.Part part, NXOpen.LinkedMirrorPartBuilder.MirrorPartTypeOption mirrorOption)
 Set the type of linked mirrored part More...
 
unsafe void SetNonmasterSeedPartData (string filename)
 Set non master seed part data for opening unpopulated non master part More...
 
unsafe void SetOpenPassword (string fileName, string password)
 Input password for opening the part. More...
 
unsafe void SetPassword (NXOpen.Part part, string uAdminPassword, string uReadPassword, string uWritePassword, string uFullControlPassword)
 Set password to the part. More...
 
unsafe void SetPassword (NXOpen.Part part, string adminPassword, string readPassword, string writePassword, string fullControlPassword, NXOpen.PartCollection.SetProtectionOn partoption)
 This method is for setting a new password for a part. More...
 
unsafe void SetSeedPartTemplateData (string filename, string templateName, bool addMaster)
 Specify template data to open seed part or empty item revision More...
 
unsafe void SetWork (NXOpen.BasePart part)
 Sets the current work part in the active display part. More...
 
unsafe void SetWorkComponent (NXOpen.Assemblies.Component workComponent, out NXOpen.PartLoadStatus loadStatus)
 Sets the work component in the currently active display part. More...
 
unsafe void SetWorkComponent (NXOpen.Assemblies.Component workComponent, NXOpen.PartCollection.RefsetOption refsetOption, NXOpen.PartCollection.WorkComponentOption visibility, out NXOpen.PartLoadStatus loadStatus)
 Sets the work component in the active display part. More...
 
unsafe NXOpen.PartLoadStatus SetWorkComponentOverride (NXOpen.Assemblies.Component workComponent)
 Sets the component with override part as the work component in the active display part. More...
 
unsafe void SolveAllPostponedConstraints ()
 Solves all the constraints, that have been postponed in their arrangement, in every loaded part in the session. More...
 
NXOpen.BasePart[] ToArray ()
 Returns an array of NXOpen.BasePart objects. More...
 
delegate void WorkPartChangedHandler (NXOpen.BasePart part)
 User defined method that is called whenever the work part has changed. More...
 
- Public Member Functions inherited from NXOpen.TaggedObjectCollection
IEnumerator GetEnumerator ()
 Returns an enumerator that iterates through a collection. More...
 
- Public Member Functions inherited from NXOpen.Utilities.NXRemotableObject
IMessageCtrl AsyncProcessMessage (IMessage msg, IMessageSink replySink)
 Asynchronously processes the given message. More...
 
IMessage SyncProcessMessage (IMessage msg)
 Synchronously processes the given message. More...
 

Protected Member Functions

override int EnumerateMoveNext (ref Tag currentTag, byte[] state)
 Advances the enumerator to the next element of the collection. More...
 
- Protected Member Functions inherited from NXOpen.TaggedObjectCollection
new void initialize ()
 <exclude> More...
 
- Protected Member Functions inherited from NXOpen.Utilities.NXRemotableObject
void initialize ()
 <exclude> More...
 

Properties

unsafe
NXOpen.PartCollection.MultipleDisplayedPartStatus 
AllowMultipleDisplayedParts [get]
 Returns the option indicating if more than one displayed part is allowed in this session. More...
 
unsafe NXOpen.BasePart BaseDisplay [get]
 Returns the currently active display part of the session. More...
 
unsafe NXOpen.BasePart BaseWork [get]
 Returns the current work part of the session. More...
 
unsafe NXOpen.Part Display [get]
 Returns the currently active display part of the session. More...
 
NXOpen.LoadOptions LoadOptions [get]
 The NXOpen.LoadOptions that determines how parts are loaded in this session More...
 
NXOpen.PDM.PartManager PDMPartManager [get]
 The NXOpen.PDM.PartManager that manages creation of parts in NX Manager mode More...
 
NXOpen.SaveOptions SaveOptions [get]
 The NXOpen.SaveOptions that determines how parts are saved in this session More...
 
NXOpen.ShapeSearch.SearchManager ShapeSearchManager [get]
 The NXOpen.ShapeSearch.SearchManager that manages shape search in this session More...
 
Tag Tag [get]
 Returns the tag of this object. More...
 
unsafe NXOpen.Part Work [get]
 Returns the current work part of the session. More...
 
unsafe NXOpen.Assemblies.Component WorkComponent [get]
 Returns the work component. More...
 

Detailed Description

Represents the collection of all parts in a session.

Several methods including NXOpen.PartCollection.NewDisplay , NXOpen.PartCollection.OpenDisplay and NXOpen.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: &lt;@&gt;DB/part-number/revision
&lt;@&gt;DB/part-number/revision/master
&lt;@&gt;DB/part-number/revision/master
&lt;@&gt;DB/part-number/revision/master/version
Non-Master Part: &lt;@&gt;DB/part-number/revision/type/name
&lt;@&gt;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 "&lt;@&gt;DB" prefix.

To obtain an instance of this class, refer to NXOpen.Session

Created in NX3.0.0

Member Enumeration Documentation

Represents the status if Multiple Display Parts are allowed or not.

Enumerator
Enabled 

It is possible to have more than one part be displayed (i.e.

additional different displayed parts).

DisabledByCustomer 

Indicates that only one part can be displayed at a time.

Multiple Displayed Parts was disabled by the customer, for example by disabling it through NXOpen.PartCollection.SetAllowMultipleDisplayedParts rather than by the NX session itself.

Disabled 

Indicates that only one part can be displayed at a time.

Multiple Display Parts is disabled by the NX session and not the customer.

Controls the reference set used when setting the work component.

See NXOpen.PartCollection.SetWorkComponent

Enumerator
Entire 

Use the "Entire Part" reference set for the new work component, and restore the reference set of the previous work component

Current 

Use the component's current reference set, and restore the reference set of the previous work component

PreserveRefset 

Use the component's current reference set, and do not reset the reference set of the previous work component

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 new active displayed part.)

Used as a return code for NXOpen.PartCollection.SetDisplay

Enumerator
Ok 

The work part was set successfully.

This code indicates success: all other codes indicate failure

OutsideModelling 

The modelling application is not active

DrawingDisplayed 

A drawing is currently displayed

InPartsList 

The Part List module is active

Gdt 

The Tolerancing module is active

UnitsMismatch 

The work part and displayed part have different units

Specifies the parts to which the password protection operation will apply.

This structure should only be used with GC Toolkits.

Enumerator
DisplayedPart 

The Displayed part

DisplayedPartandComponents 

All fully open parts in the session

AllParts 

Displayed part and full open components of the part

Controls the behavior when setting the work component.

See SetWorkComponent

Enumerator
Visible 

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.

Given 

Use the given work component, regardless of visibility.

Member Function Documentation

unsafe int NXOpen.PartCollection.AddPartClosedHandler ( NXOpen.PartCollection.PartClosedHandler  handler)
inline

Registers 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
handlermethod to register
Returns
identifier of registered method (used to unregister the method)
unsafe int NXOpen.PartCollection.AddPartCreatedHandler ( NXOpen.PartCollection.PartCreatedHandler  handler)
inline

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

Created in NX6.0.0

License requirements: None.

Parameters
handlermethod to register
Returns
identifier of registered method (used to unregister the method)
unsafe int NXOpen.PartCollection.AddPartModifiedHandler ( NXOpen.PartCollection.PartModifiedHandler  handler)
inline

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

Created in NX6.0.0

License requirements: None.

Parameters
handlermethod to register
Returns
identifier of registered method (used to unregister the method)
unsafe int NXOpen.PartCollection.AddPartOpenedHandler ( NXOpen.PartCollection.PartOpenedHandler  handler)
inline

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

The part opened handler is called just after the "target parts of the load operation" (e.g. the top level part of an assembly and its component parts have been loaded), but is only issued for the "target parts of the load operation". This callback may be called if more data is loaded for an already partially loaded part.

Created in NX6.0.0

License requirements: None.

Parameters
handlermethod to register
Returns
identifier of registered method (used to unregister the method)
unsafe int NXOpen.PartCollection.AddPartRenamedHandler ( NXOpen.PartCollection.PartRenamedHandler  handler)
inline

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

Created in NX6.0.0

License requirements: None.

Parameters
handlermethod to register
Returns
identifier of registered method (used to unregister the method)
unsafe int NXOpen.PartCollection.AddPartSavedAsHandler ( NXOpen.PartCollection.PartSavedAsHandler  handler)
inline

Registers 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
handlermethod to register
Returns
identifier of registered method (used to unregister the method)
unsafe int NXOpen.PartCollection.AddPartSavedHandler ( NXOpen.PartCollection.PartSavedHandler  handler)
inline

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

Created in NX6.0.0

License requirements: None.

Parameters
handlermethod to register
Returns
identifier of registered method (used to unregister the method)
unsafe int NXOpen.PartCollection.AddWorkPartChangedHandler ( NXOpen.PartCollection.WorkPartChangedHandler  handler)
inline

Registers a method that is called whenever the work part changes

Created in NX6.0.0

License requirements: None.

Parameters
handlermethod to register
Returns
identifier of registered method (used to unregister the method)
unsafe void NXOpen.PartCollection.CloseAll ( NXOpen.BasePart.CloseModified  closeModified,
NXOpen.PartCloseResponses  responses 
)
inline

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 NXOpen.BasePart.CloseModified.UseResponses . If NXOpen.BasePart.CloseModified.UseResponses 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 NXOpen.PartCloseResponses for how to add responses to this class.
unsafe void NXOpen.PartCollection.ClosePasswordSafe ( )
inline

This method is for closing the currently open password safe.

This method should only be used with GC Toolkits.

Created in NX11.0.0

License requirements: None.

unsafe NXOpen.Gateway.GenericFileNewBuilder NXOpen.PartCollection.CreateGenericFileNewBuilder ( )
inline

Creates a NXOpen.Gateway.GenericFileNewBuilder

Created in NX11.0.0

License requirements: None.

Returns
unsafe NXOpen.LinkedMirrorPartBuilder NXOpen.PartCollection.CreateLinkedMirrorPartBuilder ( NXOpen.Part  part)
inline

Creates a NXOpen.LinkedMirrorPartBuilder

Created in NX8.5.0

License requirements: solid_modeling ("SOLIDS MODELING")

Parameters
part
Returns
the LinkedMirrorPartBuilder object
unsafe NXOpen.PartLoadStatus NXOpen.PartCollection.EnsurePartsLoadedFully ( NXOpen.BasePart[]  parts,
bool  includeChildren 
)
inline

Ensures that the input parts are fully loaded.

If the part is already fully loaded then this method has no effect.

Created in NX12.0.1

License requirements: None.

Parameters
parts
includeChildrenIf true, includes the children of each input part (and recursively their children too) in load processing, otherwise children of input parts will be ignored. The 'children' of a given part, are the immediate child instance parts, which are not in suppressed state due to instance suppression.
Returns
If one or more parts could not be loaded, this object will contain error information.
unsafe NXOpen.PartLoadStatus NXOpen.PartCollection.EnsurePartsLoadedPartially ( NXOpen.BasePart[]  parts,
bool  includeChildren 
)
inline

Ensures that the input parts are at least partially loaded.

This only has an effect on minimally loaded parts, so if any of the input parts is already at least partially loaded then this method will ignore such part.

Created in NX12.0.1

License requirements: None.

Parameters
parts
includeChildrenIf true, includes the children of each input part (and recursively their children too) in partial load processing, otherwise children of input parts will be ignored. The 'children' of a given part, are the immediate child instance parts, which are not in suppressed state due to instance suppression.
Returns
If one or more parts could not be loaded, this object will contain error information.
override int NXOpen.PartCollection.EnumerateMoveNext ( ref Tag  currentTag,
byte[]  state 
)
inlineprotectedvirtual

Advances the enumerator to the next element of the collection.

Implements NXOpen.TaggedObjectCollection.

unsafe NXOpen.FileNew NXOpen.PartCollection.FileNew ( )
inline

Creates a NXOpen.FileNew

Created in NX5.0.0

License requirements: None.

Returns
unsafe NXOpen.BasePart NXOpen.PartCollection.FindObject ( string  name)
inline

Finds the NXOpen.BasePart with the given name.

The part must have been loaded in this session. This function acceps full path name or leaf name in case of native mode and would expect CLI format name (e.g., "@DB/peters-part/A/spec/sheet1") in case of managed mode NX. An exception will be thrown if no object can be found with the given name.

Created in NX3.0.0

License requirements: None.

Parameters
nameFull name or leaf name or CLI name (in managed mode)
Returns
The part with the given name.
unsafe NXOpen.PartSaveStatus NXOpen.PartCollection.ForceSaveAll ( )
inline

Saves all parts in a session.

Created in NX6.0.0

License requirements: None.

Returns
Parts that could not be saved and their associated errors.
unsafe NXOpen.BasePart [] NXOpen.PartCollection.GetDisplayedParts ( )
inline

Returns all parts that are currently displayed.

The first part in this list will be the active display part. See also NXOpen.PartCollection.Display , NXOpen.PartCollection.Work

Note: NX operations are generally performed in the active display part. Before performing operations in a display part you should first activate it with NXOpen.PartCollection.SetActiveDisplay .

Created in NX12.0.0

License requirements: None.

Returns
Parts that are currently displayed
unsafe NXOpen.LinkedMirrorPartBuilder.MirrorCsysOption NXOpen.PartCollection.GetMirrorCsysOptionOfMirrorPart ( NXOpen.Part  part)
inline

Get the type of mirror coordinate system for the given linked mirrored part

Created in NX8.5.1

License requirements: solid_modeling ("SOLIDS MODELING")

Parameters
partinput linked mirror part. Error is raised if input is not a linked mirror part
Returns
unsafe NXOpen.LinkedMirrorPartBuilder.MirrorPartTypeOption NXOpen.PartCollection.GetMirrorPartType ( NXOpen.Part  part)
inline

Get the type of linked mirrored part

Created in NX8.5.0

License requirements: solid_modeling ("SOLIDS MODELING")

Parameters
partinput part
Returns
unsafe void NXOpen.PartCollection.GetMirrorPlaneDataOfMirrorPart ( NXOpen.Part  part,
out NXOpen.Point3d  mirrorPlaneOrigin,
out NXOpen.Vector3d  mirrorPlaneDirection 
)
inline

Get the origin point and the normal direction of the mirror plane for the given linked mirrored part

Created in NX8.5.1

License requirements: solid_modeling ("SOLIDS MODELING")

Parameters
partinput linked mirror part. Error is raised if input is not a linked mirror part
mirrorPlaneOriginmirror plane origin
mirrorPlaneDirectionmirror plane normal direction
unsafe NXOpen.PartLoadState NXOpen.PartCollection.GetPartLoadStateOfFileName ( string  fileName)
inline

Returns the load state from part file name.

It returns NXOpen.PartLoadState.NotLoaded if the part is not loaded.

Created in NX12.0.1

License requirements: None.

Parameters
fileName
Returns
unsafe string NXOpen.PartCollection.GetSourcePartNameOfMirrorPart ( NXOpen.Part  mirrorPart)
inline

Get source part name of mirror part

Created in NX8.5.0

License requirements: solid_modeling ("SOLIDS MODELING")

Parameters
mirrorPartinput part
Returns
unsafe NXOpen.Part NXOpen.PartCollection.ImportToolDesignPackage ( string  filename,
string  outputDirectory,
out NXOpen.PartLoadStatus  loadStatus,
out NXOpen.PartSaveStatus  saveStatus 
)
inline

Import tool design package

Created in NX9.0.0

License requirements: None.

Parameters
filenameTool design package
outputDirectoryOutput directory
Returns
Top level assembly
Parameters
loadStatusParts that could not be loaded and their associated errors.
saveStatusParts that could not be saved and their associated errors.
unsafe bool NXOpen.PartCollection.IsExactMirroredPart ( NXOpen.Part  part)
inline

Check whether given part is an exact linked mirrored part

Created in NX8.5.0

License requirements: solid_modeling ("SOLIDS MODELING")

Parameters
partinput part
Returns
unsafe bool NXOpen.PartCollection.IsMirroredPart ( NXOpen.Part  part)
inline

Check whether given part is a linked mirrored part

Created in NX8.5.0

License requirements: solid_modeling ("SOLIDS MODELING")

Parameters
partinput part
Returns
unsafe NXOpen.BasePart NXOpen.PartCollection.NewBase ( string  name,
NXOpen.BasePart.Units  units 
)
inline

Creates a new part.

Created in NX1847.0.0

License requirements: None.

Parameters
nameName of new part
unitsUnits of new part
Returns
Newly created part
unsafe NXOpen.BasePart NXOpen.PartCollection.NewBaseDisplay ( string  name,
NXOpen.BasePart.Units  units 
)
inline

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

Created in NX4.0.0

License requirements: None.

Parameters
nameName of new part
unitsUnits of new part
Returns
Newly created part
unsafe NXOpen.Part NXOpen.PartCollection.NewDisplay ( string  name,
NXOpen.Part.Units  units 
)
inline

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

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

Created in NX3.0.0

License requirements: None.

Parameters
nameName of new part
unitsUnits of new part
Returns
Newly created part
unsafe NXOpen.PartCloseResponses NXOpen.PartCollection.NewPartCloseResponses ( )
inline

Constructs a new PartCloseResponses class.

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

Created in NX4.0.0

License requirements: None.

Returns
unsafe NXOpen.Part NXOpen.PartCollection.Open ( string  filename,
out NXOpen.PartLoadStatus  loadStatus 
)
inline

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

See OpenDisplay .

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

Created in NX3.0.0

License requirements: None.

Parameters
filename
Returns
Parameters
loadStatusParts that could not be loaded and their associated errors.
unsafe NXOpen.BasePart NXOpen.PartCollection.OpenActiveDisplay ( string  filename,
NXOpen.DisplayPartOption  displayPartOption,
out NXOpen.PartLoadStatus  loadStatus 
)
inline

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

Depending on the input options this part may be displayed in addition to other, already displayed part. See also See NXOpen.DisplayPartOption .

Created in NX12.0.0

License requirements: None.

Parameters
filename
displayPartOptionControls whether or not the part will replace the existing active display part.
Returns
Parameters
loadStatusParts that could not be loaded and their associated errors and warnings.
unsafe NXOpen.BasePart NXOpen.PartCollection.OpenBase ( string  filename,
out NXOpen.PartLoadStatus  loadStatus 
)
inline

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

See OpenBaseDisplay .

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

Created in NX4.0.0

License requirements: None.

Parameters
filename
Returns
Parameters
loadStatusParts that could not be loaded and their associated errors.
unsafe NXOpen.BasePart NXOpen.PartCollection.OpenBaseDisplay ( string  filename,
out NXOpen.PartLoadStatus  loadStatus 
)
inline

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

This is equivalent to OpenActiveDisplay with the option NXOpen.DisplayPartOption.ReplaceExisting .

This method will load components in the following manner depending on how the NXOpen.LoadOptions.ComponentsToLoad property is set:

1) "All Components" (NXOpen.LoadOptions.LoadComponents.All ) will load all components of the assembly.

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

3) "No Components" (NXOpen.LoadOptions.LoadComponents.None ), "Use Last Filter" (NXOpen.LoadOptions.LoadComponents.LastFilter ) or "Specify Filter" (NXOpen.LoadOptions.LoadComponents.SpecifyFilter ) 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.

Note: If this method is used in batch mode for a bookmark file which had been created using any of these options: BasePart.BookmarkOption.AllPlusDisplay BasePart.BookmarkOption.ComponentGroupsLoadOptionsPlusDisplay BasePart.BookmarkOption.ComponentGroupsOnlyPlusDisplay BasePart.BookmarkOption.DisplayOnly the display data in the bookmark file will not be applied to the active display part.

Created in NX4.0.0

License requirements: None.

Parameters
filename
Returns
Parameters
loadStatusParts that could not be loaded and their associated errors.
unsafe NXOpen.Part NXOpen.PartCollection.OpenDisplay ( string  filename,
out NXOpen.PartLoadStatus  loadStatus 
)
inline

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

Note: This method should only be used to open .prt parts. Use NXOpen.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.LoadComponents.All ) will load all components of the assembly.

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

3) "No Components" (NXOpen.LoadOptions.LoadComponents.None ), "Use Last Filter" (NXOpen.LoadOptions.LoadComponents.LastFilter ) or "Specify Filter" (NXOpen.LoadOptions.LoadComponents.SpecifyFilter ) will load none of the components of the assembly.

Created in NX3.0.0

License requirements: None.

Parameters
filename
Returns
Parameters
loadStatusParts that could not be loaded and their associated errors.
unsafe void NXOpen.PartCollection.OpenPasswordSafe ( string  fileName,
string  password 
)
inline

This method is for opening a password safe.

This method should only be used with GC Toolkits.

Created in NX11.0.0

License requirements: None.

Parameters
fileName
passwordopen password
unsafe void NXOpen.PartCollection.OpenSeedPartBlankTemplate ( string  filename,
bool  addMaster 
)
inline

Open unpopulated dataset with blank template

Created in NX6.0.0

License requirements: None.

Parameters
filenameName of the part
addMasterwhether to add master as component
delegate void NXOpen.PartCollection.PartClosedHandler ( NXOpen.BasePart  part)

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

Do not create, open, save other parts or change active display part inside this callback.

Created in NX6.0.0

License requirements: None.

Parameters
partpart that is in the process of being closed
delegate void NXOpen.PartCollection.PartCreatedHandler ( NXOpen.BasePart  part)

User defined method that is called whenever a new part is created.

Do not create, open, save other parts or change active display part inside this callback.

Created in NX6.0.0

License requirements: None.

Parameters
partnewly created part
delegate void NXOpen.PartCollection.PartModifiedHandler ( NXOpen.BasePart  part)

User defined method that is called whenever a part is modified

Created in NX6.0.0

License requirements: None.

Parameters
partnewly modified part
delegate void NXOpen.PartCollection.PartOpenedHandler ( NXOpen.BasePart  part)

User defined method that is called whenever a part is opened.

Do not create, open, save other parts or change active display part inside this callback. The part opened handler is called just after the "target parts of the load operation" (e.g. the top level part of an assembly and its component parts have been loaded), but is only issued for the "target parts of the load operation". This callback may be called if more data is loaded for an already partially loaded part.

Created in NX6.0.0

License requirements: None.

Parameters
partnewly opened part
delegate void NXOpen.PartCollection.PartRenamedHandler ( NXOpen.BasePart  part)

User defined method that is called whenever a part is renamed

Created in NX6.0.0

License requirements: None.

Parameters
partnewly renamed part
delegate void NXOpen.PartCollection.PartSavedAsHandler ( NXOpen.BasePart  part)

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

Do not create, open, save other parts or change active display part inside this callback.

Created in NX6.0.0

License requirements: None.

Parameters
partnewly saved as part
delegate void NXOpen.PartCollection.PartSavedHandler ( NXOpen.BasePart  part)

User defined method that is called whenever a part is saved.

Do not create, open, save other parts or change active display part inside this callback.

Created in NX6.0.0

License requirements: None.

Parameters
partnewly saved part
unsafe void NXOpen.PartCollection.RefreshPartNavigator ( )
inline

Refreshes the part navigator.

This function cycles through all of the nodes in the Part Navigator and updates each one. Do not call when efficiency is important (i.e. in a tight loop).

Created in NX10.0.1

Deprecated in NX12.0.0. A direct call to refresh the part navigator should not be needed.

License requirements: None.

unsafe void NXOpen.PartCollection.RemovePartClosedHandler ( int  id)
inline

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
unsafe void NXOpen.PartCollection.RemovePartCreatedHandler ( int  id)
inline

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
unsafe void NXOpen.PartCollection.RemovePartModifiedHandler ( int  id)
inline

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
unsafe void NXOpen.PartCollection.RemovePartOpenedHandler ( int  id)
inline

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
unsafe void NXOpen.PartCollection.RemovePartRenamedHandler ( int  id)
inline

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
unsafe void NXOpen.PartCollection.RemovePartSavedAsHandler ( int  id)
inline

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
unsafe void NXOpen.PartCollection.RemovePartSavedHandler ( int  id)
inline

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
unsafe void NXOpen.PartCollection.RemovePassword ( NXOpen.Part  part)
inline

Remove password of the part.

This method should only be used with GC Toolkits.

Created in NX8.5.0

Deprecated in NX11.0.0. Use overloaded RemovePassword instead.

License requirements: None.

Parameters
part
unsafe void NXOpen.PartCollection.RemovePassword ( NXOpen.Part  part,
NXOpen.PartCollection.SetProtectionOn  partoption 
)
inline

This method is for deleting security on part(s).

This method should only be used with GC Toolkits.

Created in NX11.0.0

License requirements: None.

Parameters
part
partoptionparts on which security is to be removed.
unsafe void NXOpen.PartCollection.RemoveWorkPartChangedHandler ( int  id)
inline

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
unsafe NXOpen.PartReopenReport NXOpen.PartCollection.ReopenAll ( NXOpen.BasePart.CloseModified  closeModified,
NXOpen.PartCloseResponses  responses 
)
inline

Reopens all modified parts in the session.

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 NXOpen.BasePart.CloseModified.UseResponses . If NXOpen.BasePart.CloseModified.UseResponses 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 NXOpen.PartCloseResponses for how to add responses to this class.
Returns
Report containing results of reopen command
unsafe void NXOpen.PartCollection.SaveAll ( out bool  anyPartsModified,
out NXOpen.PartSaveStatus  saveStatus 
)
inline

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.
unsafe NXOpen.PartCollection.SdpsStatus NXOpen.PartCollection.SetActiveDisplay ( NXOpen.BasePart  part,
NXOpen.DisplayPartOption  displayPartOption,
NXOpen.PartDisplayPartWorkPartOption  workPartOption,
out NXOpen.PartLoadStatus  loadStatus 
)
inline

Sets the active display part.

Depending on the input options this part may be displayed in addition to other, already displayed part. See also See NXOpen.DisplayPartOption .

Created in NX12.0.0

License requirements: None.

Parameters
partThe new displayed part
displayPartOptionControls whether or not the part will replace the existing active display part.
workPartOptionControls what the work part will be in the new active display part.
loadStatusAny errors and warnings found when loading the new display part.
Returns
Returns OK if the work part could be maintained, or a status code indicating the reason
unsafe void NXOpen.PartCollection.SetAllowMultipleDisplayedParts ( bool  additionalPartsDisplayed)
inline

Sets the option indicating if more than one displayed part is allowed in this session.

When the value is changed to false all inactive displayed parts will be undisplayed and only the active part, if any, is left visible. Any future operations that change active display part will not cause multiple parts to be displayed at the same time. Instead, the contents of the single active graphics window will be replaced with the new displayed part. See also NXOpen.PartCollection.SetActiveDisplay . Queries to NXOpen.PartCollection.AllowMultipleDisplayedParts will return NXOpen.PartCollection.MultipleDisplayedPartStatus.DisabledByCustomer .

When the value is changed to true, NX will allow multiple displayed parts. This will not restore any previously removed inactive windows.

This option will rollback on undo.

Created in NX12.0.0

License requirements: None.

Parameters
additionalPartsDisplayed
unsafe NXOpen.PartCollection.SdpsStatus NXOpen.PartCollection.SetDisplay ( NXOpen.BasePart  part,
bool  maintainWorkPart,
bool  setEntirePart,
out NXOpen.PartLoadStatus  loadStatus 
)
inline

Sets the active display part.

This is equivalent to NXOpen.PartCollection.SetActiveDisplay with the option NXOpen.DisplayPartOption.ReplaceExisting .

Created in NX3.0.0

License requirements: None.

Parameters
partThe new active display part
maintainWorkPartIf true, and if the current work part is a component of the new active display part, then the work part remains unchanged. Otherwise the work part is set to the new active display 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 and warnings found when loading the new display part.
Returns
Returns OK if the work part could be set as requested, or a status code indicating the reason why this was not possible.
unsafe void NXOpen.PartCollection.SetMirrorPartType ( NXOpen.Part  part,
NXOpen.LinkedMirrorPartBuilder.MirrorPartTypeOption  mirrorOption 
)
inline

Set the type of linked mirrored part

Created in NX8.5.0

License requirements: solid_modeling ("SOLIDS MODELING")

Parameters
partinput part
mirrorOption
unsafe void NXOpen.PartCollection.SetNonmasterSeedPartData ( string  filename)
inline

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
unsafe void NXOpen.PartCollection.SetOpenPassword ( string  fileName,
string  password 
)
inline

Input password for opening the part.

Created in NX8.5.0

License requirements: None.

Parameters
fileName
passwordopen password
unsafe void NXOpen.PartCollection.SetPassword ( NXOpen.Part  part,
string  uAdminPassword,
string  uReadPassword,
string  uWritePassword,
string  uFullControlPassword 
)
inline

Set password to the part.

This method should only be used with GC Toolkits.

Created in NX8.5.0

Deprecated in NX11.0.0. Use overloaded SetPassword instead.

License requirements: None.

Parameters
part
uAdminPasswordadmin password
uReadPasswordread password
uWritePasswordwrite password
uFullControlPasswordfull control password
unsafe void NXOpen.PartCollection.SetPassword ( NXOpen.Part  part,
string  adminPassword,
string  readPassword,
string  writePassword,
string  fullControlPassword,
NXOpen.PartCollection.SetProtectionOn  partoption 
)
inline

This method is for setting a new password for a part.

Once a password is set the part can not be recovered if the original password is lost or forgotten. Store the password in a safe and secure location. This method should only be used with GC Toolkits.

Created in NX11.0.0

License requirements: None.

Parameters
part
adminPasswordadmin password
readPasswordread password
writePasswordwrite password
fullControlPasswordfull control password
partoptionparts on which security is to be added.
unsafe void NXOpen.PartCollection.SetSeedPartTemplateData ( string  filename,
string  templateName,
bool  addMaster 
)
inline

Specify template data to open seed part or empty item revision

Created in NX6.0.0

License requirements: None.

Parameters
filenameName of the part
templateNameName of the template
addMasterWhether master should be added as child
unsafe void NXOpen.PartCollection.SetWork ( NXOpen.BasePart  part)
inline

Sets the current work part in the active display part.

The work component will be set to one of the visible components that represent this part in the currently active display part. 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.
unsafe void NXOpen.PartCollection.SetWorkComponent ( NXOpen.Assemblies.Component  workComponent,
out NXOpen.PartLoadStatus  loadStatus 
)
inline

Sets the work component in the currently active display part.

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 active display part. May be a null reference (Nothing in Visual Basic), in which case the work part is reset to the active display part.
loadStatusAny errors found when loading the new work part.
unsafe void NXOpen.PartCollection.SetWorkComponent ( NXOpen.Assemblies.Component  workComponent,
NXOpen.PartCollection.RefsetOption  refsetOption,
NXOpen.PartCollection.WorkComponentOption  visibility,
out NXOpen.PartLoadStatus  loadStatus 
)
inline

Sets the work component in the active display part.

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 active display part. May be a null reference (Nothing in Visual Basic), in which case the work part is reset to the active display 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.
unsafe NXOpen.PartLoadStatus NXOpen.PartCollection.SetWorkComponentOverride ( NXOpen.Assemblies.Component  workComponent)
inline

Sets the component with override part as the work component in the active display part.

Error is raised, if component doesn't have override part.

Created in NX10.0.0

License requirements: None.

Parameters
workComponentThe new work component. This must be a component defined in the NXOpen.Assemblies.ComponentAssembly of the active display part.
Returns
Any errors found when loading the new work part.
unsafe void NXOpen.PartCollection.SolveAllPostponedConstraints ( )
inline

Solves all the constraints, that have been postponed in their arrangement, in every loaded part in the session.

This could lead to updating the model if required.

Created in NX9.0.0

License requirements: assemblies ("ASSEMBLIES MODULE")

NXOpen.BasePart [] NXOpen.PartCollection.ToArray ( )
inline

Returns an array of NXOpen.BasePart objects.

delegate void NXOpen.PartCollection.WorkPartChangedHandler ( NXOpen.BasePart  part)

User defined method that is called whenever the work part has changed.

This method will be called after a work part change has occurred. This method may be called at times where the previous work part (which is passed as the part to this method) may not necessarily be different from the new work part. For example, this method is also called if the active display part has changed but the new work part is still the same part and now represents a different component in the new active display part. This method may be called more than once as part of a single operation. Do not change active display part, work part or work component in this method.

Created in NX6.0.0

License requirements: None.

Parameters
partprevious work part - use NXOpen.PartCollection.Work to obtain the new work part

Property Documentation

unsafe NXOpen.PartCollection.MultipleDisplayedPartStatus NXOpen.PartCollection.AllowMultipleDisplayedParts
get

Returns the option indicating if more than one displayed part is allowed in this session.

Created in NX12.0.0

License requirements: None.

unsafe NXOpen.BasePart NXOpen.PartCollection.BaseDisplay
get

Returns the currently active display part of the session.

Created in NX4.0.0

License requirements: None.

unsafe NXOpen.BasePart NXOpen.PartCollection.BaseWork
get

Returns the current work part of the session.

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

Created in NX4.0.0

License requirements: None.

unsafe NXOpen.Part NXOpen.PartCollection.Display
get

Returns the currently active display part of the session.

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

Created in NX3.0.0

License requirements: None.

NXOpen.LoadOptions NXOpen.PartCollection.LoadOptions
get

The NXOpen.LoadOptions that determines how parts are loaded in this session

Created in NX3.0.0

NXOpen.PDM.PartManager NXOpen.PartCollection.PDMPartManager
get

The NXOpen.PDM.PartManager that manages creation of parts in NX Manager mode

Created in NX3.0.0

NXOpen.SaveOptions NXOpen.PartCollection.SaveOptions
get

The NXOpen.SaveOptions that determines how parts are saved in this session

Created in NX3.0.0

NXOpen.ShapeSearch.SearchManager NXOpen.PartCollection.ShapeSearchManager
get

The NXOpen.ShapeSearch.SearchManager that manages shape search in this session

Created in NX6.0.0

Tag NXOpen.PartCollection.Tag
get

Returns the tag of this object.

unsafe NXOpen.Part NXOpen.PartCollection.Work
get

Returns the current work part of the session.

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

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

Created in NX3.0.0

License requirements: None.

unsafe NXOpen.Assemblies.Component NXOpen.PartCollection.WorkComponent
get

Returns the work component.

This is the component in the active display 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.

Created in NX3.0.0

License requirements: None.


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