Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Batch Process and Custom Macro

Status
Not open for further replies.

Fixturedesign

Mechanical
Joined
Nov 20, 2002
Messages
40
Location
US
I am looking for a macro that will allow me to select a directory, then run a given macro on all the files in that directory.

Found this post ...
But I am not sure what the macro is actually doing. I ran it and didn't see where it did anything to my files.

Can I adapt the modules to accomplish my goal? Where is the code that is actually doing something?

Is there a better way to batch a macro across an entire directory?
 
By the way - I know that SolidWorks task scheduler can help out, but there are limitations and I can't use it.
 
This macro adds all the files in a directory into an assembly and then mates to the orthogonal planes and assigns a color to each part. This should have most of what you need. I hope it helps.

Rob Stupplebeen
 
 http://files.engineering.com/getfile.aspx?folder=366ca72c-cb78-44bc-baec-000cb04455fa&file=assemblycreate.swp
Well, I can certainly take a look at your macro, but I do not want to create an new assembly or reassign colors.

I want a routine that will allow me to select a directory, then run a designated macro on that directory.

I want to batch all drawings to a PDF: I run the batch macro, designate the directory, maybe designate the macro I choose to run.

Then I want to convert all drawings to DWG. I run the batch macro, designate the directory, maybe designate the macro I choose to run.

Next I want to run a special custom macro. I run the batch macro, designate the directory, maybe designate the macro I choose to run.
 
macro, smackro, why not just use PAC4SWX ?

--
Hardie "Crashj" Johnson
SW 2010 SP 2.1
HP Pavillion Elite HPE

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top