element_get_attributes
Gets all attributes on a database element. If the element is of type IFunction_call then by default arguments are retrieved rather than attributes. Note that it is not possible to get argument references using this command.
arguments
- "element_name" : String
The name of the database element to get the attributes from.
- "evaluate_field_accessors" : Boolean (default: true)
If an MDL argument is attached to a structure field accessor (as automatically generated by mdl_attach_function_to_argument) then evaluate the accessor and return the name of the actual MDL function attached and the field (seperated by a period) rather than the name of the accessor function.
- "force_attribute" : Boolean (default: false)
If element is of type IMdl_material_instance or IMdl_function_call then get the actual attributes rather than arguments.
return value
MapA map containing all the attributes on a database element.