Material Object
Derived from: Base ObjectDefined in namespace "adsk::core" and the header file is <Core/Materials/Material.h>
Description
A material.Methods
| Name | Description |
| classType | Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType(). |
| copyTo | **RETIRED** Copies this material to the specified target. |
| deleteMe | Deletes the material from the Design. This method only applies to materials in a Design that are unused |
Properties
| Name | Description |
| appearance | Gets the Appearance of this material. |
| description | Gets and sets the description associated with this material. Setting the description is only valid for materials in a document or the favorites list. |
| id | Returns the unique internal ID of this material. |
| isUsed | Returns true if this material is used in the Design |
| isValid | Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference. |
| materialProperties | Returns the collection of material properties associated with this material. |
| name | Returns the name of this Material. This is the name of the material as seen in the user interface. The name can only be edited if the material is in a Design or the favorites list. |
| objectType | This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object. It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType(): |
| parent | Returns the Parent object (a Library or a Design). |
