deleteAttr

Syntax

<Path>.deleteAttr(AttributeName:string) → boolean

The method deleteAttr deletes the user-defined attribute of the object designated by <Path>.

Parameter

The parameter AttributeName of data type string designates the user-defined attribute.

Note that you can only delete user-defined attributes for the object for which you created them and for which they are not inherited. Plant Simulation deletes the user-defined attribute from all instances of the object.

Return Value

The return value has the data type boolean.

Example

.MUs.Part.deleteAttr("lotsize")
@.deleteAttr("Paint")
Note:

Deleting an object will automatically also delete all of its user-defined attributes.

Related Topics

Tab User-defined

Create a User-defined Attribute During the Simulation

Delete