Thank you JeromeP , your macro works perfectly on the majority of parts, on the other hand, it is impossible to make it work.
For example, for this part, it is impossible to make the macro work, no line appears.
I don't know if it works for you but not on my job. On the other hand on other parts no worries
pi_092729.sldprt
There is an error in the transformation matrix. Exchange:
transformData(12) = 1#
by:
transformData(12) = swView.ScaleDecimal
to account for scale
That was right, if I understood correctly as soon as the plan was not at scale 1 it didn't work, hence the modification to make a ration with the scale of the sheet.
Perfect macro now! Thank you again JeromeP , you will save us all precious time.
Otherwise for Bart☺, I already knew MarkFoldlines being a follower and heavy user of Mycad utilities, but this add-on allows you to remove or mark the part not the drawing and as you have to choose the cutting face for the paper side it doesn't suit us. But if this add-on does almost the same thing as JeromeP's macro but in the room.
1 Like