UserDefinedFeatureClassManager Class — NXOpen Python API Reference 12.0.0 documentation

# UserDefinedFeatureClassManager Class

class `NXOpen.Features.``UserDefinedFeatureClassManager`

  Bases: `object`

  JA interface for the UserDefinedFeatureClassManager object

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

  New in version NX8.0.0.

# Methods

Method | Description
--- | ---
CreateClass | Constructs a new `NXOpen.Features.UserDefinedFeatureClass` object.
GetClassFromName | Get the `NXOpen.Features.UserDefinedFeatureClass` object for the given class name.
GetClasses | Gets all the `NXOpen.Features.UserDefinedFeatureClass` objects in the session

# Method Detail

## CreateClass

`UserDefinedFeatureClassManager.``CreateClass`

  Constructs a new `NXOpen.Features.UserDefinedFeatureClass` object.

  It is recommended that the company name be used as a prefix to prevent name clashes.

  Signature `CreateClass(className)`

  Parameters: | className (str) – the class name
  Returns: | The new class instance
  Return type: | `NXOpen.Features.UserDefinedFeatureClass`

  New in version NX8.0.0.

  License requirements: None.

## GetClassFromName

`UserDefinedFeatureClassManager.``GetClassFromName`

  Get the `NXOpen.Features.UserDefinedFeatureClass` object for the given class name.

  Signature `GetClassFromName(className)`

  Parameters: | className (str) – name of class to find
  Returns: | The UserDefinedClass instance it may be None if you do not have permission to query this object
  Return type: | `NXOpen.Features.UserDefinedFeatureClass`

  New in version NX8.0.0.

  License requirements: None.

## GetClasses

`UserDefinedFeatureClassManager.``GetClasses`

  Gets all the `NXOpen.Features.UserDefinedFeatureClass` objects in the session

  Signature `GetClasses()`

  Returns: | Array of user defined feature classes
  Return type: | list of `NXOpen.Features.UserDefinedFeatureClass`

  New in version NX8.0.0.

  License requirements: None.