mdl_get_definition
Gets the definition of an MDL element. For MDL material instance or function calls returns the name of the material or function definition used. For MDL modules, material definitions, function definitions or types returns a Map defining the element.
arguments
- "element_name" : String (default: null)
The name of the material instance, function call, material definition, function definition, MDL module or Type to retrieve the definition for. This is expected to be the database name of the element for definitions, modules or types so must start with 'mdl::'. As a convenience if this starts with '::' then 'mdl' will be automatically prefixed.
- "mdl_name" (Deprecated) : String (default: null)
This parameter has been deprecated. Please consider using element_name instead.
The name of the material instance, function call, material definition, function definition, MDL module or Type to retrieve the definition for. This is expected to be the database name of the element for definitions, modules or types so must start with 'mdl::'. As a convenience if this starts with '::' then 'mdl' will be automatically prefixed.
- "return_details" : Boolean (default: false)
If mdl_name is a material instance or function call then return the definition object rather than the name of the definition.