Database.setAsDefault


setAsDefault(attrType, attribute)

Sets the specified attribute as the default attribute for this type. This means that all new objects will automatically receive an assignment to this attribute. This function is also used to remove the default attribute (if any) of the given type - use (for example) setAsDefault("material", "none")

attrTypestring "Loading", "Support", "Material", etc
attribute attribute The name or ID of a attribute, or a pointer to a Attribute object.
Return valuenone 

Back to Database

Back to Overview