RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Material

Material.SetMaterialAspectByPropertySet

Method
Description:
Sets an aspect of the material to a shared property set.
Syntax
public void SetMaterialAspectByPropertySet(
	MaterialAspect aspect,
	ElementId propertySetId
)
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