ComponentGroupCollection Class

class NXOpen.Assemblies.ComponentGroupCollection

Bases: object

Contains a collection of Component Groups a NXOpen.Assemblies.ComponentGroup that are defined within an Assembly part.

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

New in version NX5.0.0.

Methods

Method Description
CreateComponentGroup Creates a NXOpen.Assemblies.ComponentGroup with the given name
FindObject Finds the NXOpen.Assemblies.ComponentGroup with the given identifier as recorded in a journal.

Method Detail

CreateComponentGroup

ComponentGroupCollection.CreateComponentGroup

Creates a NXOpen.Assemblies.ComponentGroup with the given name

Signature CreateComponentGroup(name)

Parameters:name (str) – Name for the ComponentGroup
Returns:the ComponentGroup created
Return type:NXOpen.Assemblies.ComponentGroup

New in version NX7.5.0.

License requirements: adv_assemblies (“ADVANCED ASSEMBLIES”)

FindObject

ComponentGroupCollection.FindObject

Finds the NXOpen.Assemblies.ComponentGroup with the given identifier as recorded in a journal.

An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.

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

Signature FindObject(journalIdentifier)

Parameters:journalIdentifier (str) – Identifier of the ComponentGroup you want
Returns:ComponentGroup with this identifier
Return type:NXOpen.Assemblies.ComponentGroup

New in version NX5.0.0.

License requirements: None.