Database.deleteAttributes


deleteAttributes(attrType, [arg2], [reportError])

Deletes all attributes/utilities of the specified type Optionally, output can be restricted to only those with the given name(s) and/or in the given range of IDs. Delete is only possible if the attribute is not assigned. Returns the number actually deleted - so you may check that the operation was successful by first calling getAttributes and comparing the number of objects returned by that function with the return value of this one.

attrTypestring "Loading", "Support", "Material", etc
arg2optional string names and/or IDs of attributes, e.g. "bob;1T5" (default all)
reportErroroptional boolean flag to indicate if an error should be reported when the attribute type is unrecognised (default = True)
Return valueintegerthe number of attributes successfully deleted

Back to Database

Back to Overview