Macro for instance scale and lineweight

Hi all,

I'll be honest up front and confess that I know little about Macros other than using them. We get a reasonable amount of laser cutting and water jet cutting done and like most, our drawings are sent in DXF format at 1:1. I currently use a macro that creates a scan sheet and populates it with all the items from the detailing sheet that are destined for the cutting process, the only gripe I have is that the imported instances do not re-scale to the scan sheet scale (1:1) but rather they come in with the scale of the detailing sheet where they were detected ,i.e. 1:5 or 1:10 etc etc. I've attached the aforementioned macro in the hope that one of you learned folk might be kind enough to examine and update to include the scale adoption and line weight change. The desired line weight is 1/10 or .1mm. I've also attaché a screen shot of my scan page to show the as created instance (left) and the desired result after scaling and line weight changes (right).

rgds

Harry  

SolidworksApi macros