RemoveLayersByFunction
int RemoveLayersByFunction(this CompoundStructure cs, MaterialFunctionAssignment function)Removes all layers with a specific function.
Parameters
- csCompoundStructure
The compound structure.
- functionMaterialFunctionAssignment
Function to remove.
Returns: Number of removed layers.
Example
int removed = cs.RemoveLayersByFunction(MaterialFunctionAssignment.Finish2);