UpdateLayer
bool UpdateLayer(this CompoundStructure cs, int layerIndex, double? thickness = null, MaterialFunctionAssignment? function = null, Material material = null)Updates an existing layer at a specific index (thickness/function/material).
Parameters
- csCompoundStructure
The compound structure.
- layerIndexint
Index of the layer to update.
- thicknessdouble?
Optional new thickness (feet).
- functionMaterialFunctionAssignment?
Optional new function.
- materialMaterial
Optional new material.
Returns: True if successful; otherwise false.
Example
cs.UpdateLayer(0, thickness: 0.2, function: MaterialFunctionAssignment.Finish1, material: mat);