Community
Hello Folks
Greetings from Kiran
Please find image attached, in this drawing template i am modelled a plate that is having this finish size
Please tell me how write a code in iproperteis Stock string to fetch length, width, thickness parameters
That in to this Raw material & Size box
This post has all the info you should need.
first you make a new parameter:
xmin
xmax
ymin
ymax
zmin
zmax
length
width
thickness
all new parameter type numeric
then in rules write this code:
Dim oBox As box oBox = ThisDoc.Document.ComponentDefinition.SurfaceBodies.Item(1).RangeBox xmin=oBox.MinPoint.X xmax=obox.maxpoint.X length=(xmax-xmin)*10 ymin=oBox.MinPoint.Y ymax=obox.maxpoint.Y width=(xmax-xmin)*10 zmin=oBox.MinPoint.Z zmax=obox.maxpoint.Z thickness=(xmax-xmin)*10