Hello,
In Discovery (or Spaceclaim), is there a way to assign a color to the body based on its thickness.
Let's say I have an assembly with diffenrent parts, I would like to have all the 3 mm thickness part in one color (eg. red), all the 5 mm thickness part in another color (eg. green), and so one.
I was thinking about a code like :
Create an empty list dictionary for thicknesses and color
Loop over bodies :
Get the thickness
If thickness not in dict:
random color code generation
store thickness and color code in dict
else:
get the color in dict
Affect the color to the part
My problem is about getting the thickness of the part.
I suppose it's possible because the extract midsurface function get the thickness information.
Do you have any idea for getting this data ?
Regards,
Jean