×
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

Run macro on all drawings

Run macro on all drawings

Run macro on all drawings

(OP)
Hello All,

I am new to this forum and very new to writing macros. I am in great need of help because I am stuck so any help and advice would be greatly appreciated.

I am going through and deleting a revision and adding a revision block to all drawings for a large assembly. I have created a macro that does that but currently I have to open every drawing individually and run it. On smaller assemblies this is not a problem but many of the assemblies I need to do are 400 or more drawings. I do not need to gather any data from the old revision blocks, I just need to delete them and add a new blank block in. I have spent several hours digging around this forum and others digging through code and putting bits and pieces together but have had no luck.

What I have:
A macro that deletes and adds a new revision block.

What I need:
I need open each drawing file in a folder, run my macro, save the drawing and close the drawing.

At this point I don't even need it to ask for the directory I want top work in, I can edit that in the code. Maybe later on when workload is lighter I will try to learn how to prompt the user for folder path so I am not the only one who can use this macro where I work.

Thank you all in advance for your time

Kind Regards,
Alex G

RE: Run macro on all drawings

SolidWorks Task Scheduler

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