CompoundStructure.SetMaterialId
Method
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.
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. |