CustomAttribute Class

class NXOpen.Features.CustomAttribute

Bases: NXOpen.TransientObject

Represents a Features.CustomAttribute class

This is an abstract base class of all the types of attributes.

New in version NX11.0.0.

Properties

Property Description
Name Returns or sets the custom attribute name
TypeValue Returns the custom attribute type value

Methods

Method Description
AddProperty The custom attribute add property
Dispose Frees the memory associated with this object.
GetProperties The custom attribute get all properties
HasProperty The custom attribute does property exist on attribute
RemoveProperty The custom attribute remove property

Enumerations

CustomAttributeProperty Enumeration Specifies custom attribute type.
CustomAttributeType Enumeration Specifies custom attribute type.

Property Detail

Name

CustomAttribute.Name

Returns or sets the custom attribute name

-------------------------------------

Getter Method

Signature Name

Returns:
Return type:str

New in version NX11.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”)

-------------------------------------

Setter Method

Signature Name

Parameters:attributeName (str) –

New in version NX11.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”)

TypeValue

CustomAttribute.TypeValue

Returns the custom attribute type value

-------------------------------------

Getter Method

Signature TypeValue

Returns:
Return type:NXOpen.Features.CustomAttributeType

New in version NX11.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”)

Method Detail

AddProperty

CustomAttribute.AddProperty

The custom attribute add property

Signature AddProperty(attributeProperty)

Parameters:attributeProperty (NXOpen.Features.CustomAttributeProperty) –

New in version NX11.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”)

Dispose

CustomAttribute.Dispose

Frees the memory associated with this object.

After invocation of this method, the object is no longer valid.

Signature Dispose()

New in version NX11.0.0.

License requirements: None.

GetProperties

CustomAttribute.GetProperties

The custom attribute get all properties

Signature GetProperties()

Returns:
Return type:list of NXOpen.Features.CustomAttributeProperty

New in version NX11.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”)

HasProperty

CustomAttribute.HasProperty

The custom attribute does property exist on attribute

Signature HasProperty(attributeProperty)

Parameters:attributeProperty (NXOpen.Features.CustomAttributeProperty) –
Returns:
Return type:bool

New in version NX11.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”)

RemoveProperty

CustomAttribute.RemoveProperty

The custom attribute remove property

Signature RemoveProperty(attributeProperty)

Parameters:attributeProperty (NXOpen.Features.CustomAttributeProperty) –

New in version NX11.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”)