RVTDocs.com

CompoundStructure.SetMaterialId

Method
Description:
Sets a material element for a specified layer.
Remarks:
It is not verified that materialId corresponds to a valid Material element.
Syntax
public void SetMaterialId(
	int layerIdx,
	ElementId materialId
)
Parameters
Parameter Type Description
layerIdx Int32 Index of a layer in the CompoundStructure.
materialId ElementId The ElementId of a Material element.
Return Value
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
ArgumentOutOfRangeException The layer index is out of range.