Skip to main content

Speos NX library 2024 R2

PartCollection Class Reference

Last update: 17.07.2025

Represents the collection of all parts in a Speos For NX session. More...

Inheritance diagram for PartCollection:
_object

Public Member Functions

 Load (self)
 Loads all open parts in the session.
 
 FindFromName (self, name)
 Finds the part with the given name.
 
 FindFromTag (self, tag)
 Finds the part with the given Tag.
 

Properties

 Display = property(fget = __GetDisplay)
 Returns the currently active display part of the session.
 
 Work = property(fget = __GetWork)
 Returns the current work part of the session.
 

Detailed Description

Represents the collection of all parts in a Speos For NX session.

Member Function Documentation

◆ FindFromName()

FindFromName ( self,
name )

Finds the part with the given name.

Prerequisite: The part must have been loaded in this session.

Parameters
[in]name: String.
Returns
The part with the given name.

◆ FindFromTag()

FindFromTag ( self,
tag )

Finds the part with the given Tag.

Parameters
[in]tag: Integer. The Part Tag.
Returns
The part with the given Tag.

Property Documentation

◆ Display

Display = property(fget = __GetDisplay)
static

Returns the currently active display part of the session.

Returns
The currently active display part.

◆ Work

Work = property(fget = __GetWork)
static

Returns the current work part of the session.

Returns
The current work part.

The documentation for this class was generated from the following file:
  • SpeosNX.py

Connect with Ansys