Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recording Macro Problem

Status
Not open for further replies.

Mitsu50

Mechanical
Jun 26, 2003
204
Hi all,

I'm trying to make a macro that will change my current format to a new format. When i record the macro to do this, I and up with drawing scale parameters that are locked to the file i originally created the macro from. Are there values i can input in the fields where scale number goes that jut let me keep whatever the new drawings have?

I also would like when the macro runs to have it change the color of a layer that i have. Is this possible? thanks in advance!

And one last coomment. If i leave Photoworks addin on, the first four lines of a recorded macro set PW variables of some kind. If i unload they dont show up, weird...

Tony
 
Replies continue below

Recommended for you

Unfortunately, recorded macros are nearly useless in SolidWorks. What all are you trying to make this macro change? Can you post the code?

-handleman, CSWP (The new, easy test)
 
I dont have any from scratch code. Basically i want to open a drawing, and hit a button that will update my format to a specified one, and change the color of a specific layer. Thats about it.

Tony
 
You want to change the sheet format?

-handleman, CSWP (The new, easy test)
 
yes, we needed to update out titleblock, and a layer color for our customer, and there are quite a few drawings that need to be done. Ideally i'd like to specify a directory, and let it just update all .slddrw files if that is possible
 
I have done a lot of changes with my drawing formats and do them manually as I update parts and assemblies. I have found it works better to DELETE the old sheet format in the tree then right click and select the new one, rather than try to just change it from the right click properties.
Maybe this will help you structure your macro to work better.

--
Hardie "Crashj" Johnson
SW 2008 SP4
Nvidia Quadro FX 1000
AMD Athalon 1.8 GHz 2 Gig RAM

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor