CategoryCollection Class¶
-
class
NXOpen.Layer.
CategoryCollection
¶ Bases:
object
Represents a collection of layer categories
To obtain an instance of this class, refer to
NXOpen.BasePart
New in version NX3.0.0.
Methods¶
Method | Description |
---|---|
CreateCategory | Creates a new layer category |
FindObject | Finds the NXOpen.Layer.Category with the given name. |
Method Detail¶
CreateCategory¶
-
CategoryCollection.
CreateCategory
¶ Creates a new layer category
Signature
CreateCategory(name, description, memberLayers)
Parameters: - name (str) – The name must not None and must not already be used by another layer category.
- description (str) – Optional
- memberLayers (list of int) – Layers to be placed into the category
Returns: The new category
Return type: New in version NX3.0.0.
License requirements: None.
FindObject¶
-
CategoryCollection.
FindObject
¶ Finds the
NXOpen.Layer.Category
with the given name.An exception will be thrown if no object can be found with the given name.
Signature
FindObject(name)
Parameters: name (str) – The name of the NXOpen.Layer.Category
Returns: Return type: NXOpen.Layer.Category
New in version NX3.0.0.
License requirements: None.