CompoundStructure.SetMaterialId
Description:
Sets a material element for a specified layer.
Sets a material element for a specified layer.
Remarks:
It is not verified that materialId corresponds to a valid Material element.
It is not verified that materialId corresponds to a valid Material element.
public void SetMaterialId(
int layerIdx,
ElementId materialId
)
-
Int32layerIdxIndex of a layer in the CompoundStructure. The layer index is zero based. It counts from the exterior of wall and from the top of roofs, floors and ceilings.
-
materialIdThe ElementId of a Material element.
-
A non-optional argument was null
-
The layer index is out of range.