SetLayerFunction
bool SetLayerFunction(this CompoundStructure cs, int layerIndex, MaterialFunctionAssignment function)Sets the function of a specific layer (remember to reassign back to the type).
Parameters
- csCompoundStructure
The compound structure.
- layerIndexint
The layer index.
- functionMaterialFunctionAssignment
New function value.
Returns: True if successful; otherwise false.
Example
cs.SetLayerFunction(0, MaterialFunctionAssignment.Structure);