Model.setcomponentdisplayattributes#
- Model.setcomponentdisplayattributes(name, style, colortype)#
Sets a component to the specified style and color.
- Parameters:
name (hwString) – The name of the component.
style (int) –
Set to:
0 - Wire frame
1 - Hidden line
2 - Hidden line with mesh
3 - Hidden line with features
4 - Hidden line transparent
colortype (int) –
Determines how the component is colored. The options are:
0 - None
1 - Component color
2 - Assigned plots
3 - Contours
Example#
Set the component “Mycomp” to the wire frame display mode#import hm import hm.entities as ent model = hm.Model() model.setcomponentdisplayattributes(name="Mycomp", style=0, colortype=0)