Hangman, what happens when you load that and run it
... other than the message about a missing Parenthesis { I think }
Well Kerry, ... I'm not sure. I don't think I'm running this vlide correctly. But when I run it through a drawing with a line, it appears to go all the way through.
Sorry I didn't do this earlier, I wasn't in a position to try it out at the time on a CAD machine.
I was thinking about doing much the same as when i created the generalized ``getdata'' abstraction for your layer check and create procedure. But i think we need to take a huge step back and define the problem first. I think you should write down--in plain words; no code at all--what you want to do. Then we can start to rebuild your entire procedure.
OK, ... so, in a nutshell.
I have several typical details dating from last week to ... 10 years ago. They were created in every release from R14 to R2007.
Over the years the font width has changed, in some cases, the font itself has changed in the details. The layering system has changed, the dimension style has changed ... dramatically.
I also have several schedules ranging in the same dates & releases. Same situation.
Some of these details & schedules have been updated for printing to DWF but most have not.
The current system for engineers to view the typical details is by DWF rather than binder and 8.5 x 11's. So my 'hurry up and get it done' instructions is to update all the typical details & schedules & print them off to DWF so the engineers can view the typical details & schedules on their machine rather than passing a 4" binder around.
My individual steps to this goal.I want to open the detail (or schedule).
Purge the drawing of any excess shhtuff.
Run the Layer Translator.
...
Awww crap, ... I have to leave.
I'll try to finish this tomorrow.
Back to finish ... 03-20_2007after running Layer Translator,
I want to create a new Text style. (Saving this style with the same name as the current style should update all text on the current style at the next regen)
I want to create a new Dimension style.
Modify it to the settings we need & set it as current.
Select all entities regarding any dimension style and set them to the new style.
Delete any layout tab labeled "Layout", "Layout2", "8.5 x 11", "Detail"
Create a new layout tab labeled "8.5x11" by importing from a template.
Move new layout to front of line (if there is one) and set it to current layout tab.
Enter model space through viewport and zoom extents.
Zoom detail to appropriate scale.
If detail exceeds limits of scale, then zoom extents only.
Go back to paper space from viewport.
insert a name block of the detail.
zoom extents.
Go to Model tab.
zoom extents, purge all, save and close.
Go to next detail and do it all over again.
So, there's a list of what I am wanting to accomplish. I used Tims advice and created a lisp which creates a script for going to the next detail, but I don't know if it's that lisp or this one that won't allow it to go the rounds with all the details. I get through about three details and it just stops.
Doht, ... I digress again.
OK, here's the list, what the next step ??