×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Recording Macro Problem

Recording Macro Problem

Recording Macro Problem

(OP)
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

RE: Recording Macro Problem

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)

RE: Recording Macro Problem

(OP)
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

RE: Recording Macro Problem

You want to change the sheet format?   

-handleman, CSWP (The new, easy test)

RE: Recording Macro Problem

(OP)
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

RE: Recording Macro Problem

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

 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources