AnsweredAssumed Answered

Macro that add to every unique part of an assembly a number

Question asked by Gert-Jan Heij on Mar 12, 2016
Latest reply on Aug 17, 2016 by Marko Rebec

At the moment we have a problem at our workshop, so i'm looking for a macro that give every unique part in an assembly a number that follows up (1,2,3,4,5)

The problem that we have is that the program that we use for our plasmacutter not accept long filenames, so the name of our dxf files is to long if we do it automatically.

At the moment we combine some custom properties to make the filename of a dxf. (Quantity, Material, Thickness, Ordernumber).

The most of the macro's that we have is produced with a part of some other macro's on the internet.

The things that the macro must do:

 

-     open a part in an assembly

-     add a custom property with number 001

-     save and close

-     open the next part in an assembly

-     add a custom property with number 002

-     save and close

and so repeat for all the parts in an assembly.

If there is anybody that can create this, it reduce a lot of time for me.

Outcomes