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!

Solidworks task scheduler Run Custom Task

Status
Not open for further replies.

tap90291

Mechanical
Aug 13, 2002
106
We are having to make some changes to our title block and must reload the title block on several hundred drawings. Can I do this with the task scheduler run custom task and how would I do this.

TAP
 
Replies continue below

Recommended for you

It depends on the "change" you want to make. So, the answer is MAYBE. I can change the content of my title blocks by re-defining certain CUSTOM PROPERTIES. If that's really what you need to do - then YES.
Can you be more specific?

[idea] SolidWorks 2005 SP04.0 [idea] SpaceBall 400 FLX [idea] Microsoft Intellimouse Explorer [idea] Windows 2000 Professional [idea] Lava Lamp [idea]
 
SBaugh, you may want to take a look again, Task Scheduler will allow for a Custom Task to be schedule and perform certain operations as specified in a macro or custom file. This should allow tap90291 to create a macro or custome script for the operation needed and schedule it with Task Scheduler. I haven't used it myself, but do know of folks that have had success with these types of operations.

 
I started this post with a nice macro to do what you're asking until I realized you can do everything with the task scheduler in 2005 - d'oh!

This assumes that your title block is based on custom properties of the associated model (part or assembly) or drawing.

1) Use the "Update Custom properties" task to modify or add the appropriate custom properties to the model files.

2) Use the "Update Files" task to update all the appropriate drawings.

The next time you open any one of the affected drawings, it should show the new custom properties.
 
Scott that is the question I am after, how can I reload a edited title block via the SW task scheduler. I was hoping the run custom task is capable of doing this, and how would I go about it.

TAP
 
Oh by the way, our entire office is being required to do this, mostly in ACAD, but we are talking about several thousand drawings across many different units.

TAP
 
You can definatly use this to "re-load" custom properties into your files. But - be advised - it actualy will open each file - one at a time. In other words - it's gosh-darn slow. So run a test on a few files to make sure it works. Then start the big task before you leave for the day & let it run. It'd also be a gosh-darn good idea to make backups of all the files first.

[idea] SolidWorks 2005 SP04.0, SpaceBall 400 FLX, Microsoft Intellimouse Explorer, Windows 2000 Professional & a Lava Lamp [idea]
 
tap90291,

To re-iterate, are your title blocks linked to Custom properties of the models or drawings, or are they just notes that were filled in manually?

If they are based on custom props, the procedure in my post above will work, but if they're notes you will be looking at writing a custom macro to do it.
 
BTW, if you wanted to get fancy and your AutoCAD titleblocks are based on attributes, you could use a custom task with the solidworks task scheduler to fill those out automatically too.

The custom task would accept the autocad file location and new title block values and parameters, then would use the AutoCAD VBA to open the drawing, write the new attributes, redraw then save and close the drawing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor