Material.SetMaterialAspectByPropertySet
Method
Description:
Sets an aspect of the material to a shared property set.
Sets an aspect of the material to a shared property set.
Parameters
Parameter | Type | Description |
---|---|---|
aspect | MaterialAspect | The material aspect. |
propertySetId | ElementId | Identifier of a shared property set (an instance of PropertySetElement). |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |