Not sure if this topic would go here, ...
I bought a book a few days ago to learn some WScripting, but with my Calculus class, Revit, and other stuff I have to learn and use, I can't seem to cram any more learning into the two brain cells I have left. :ugly: My head hurts.
I'll learn it eventually, but in the mean time, could you guru's put something together for me ??
I need a routine that will ask the user for a job number: (user enters) 06132.A2
The routine then seperates the first two digits to distinguish the directory structure: (06 is for the 'Drawings 2006' directory)
Drawings 2004
Drawings 2005
Drawings 2006
Drawings 2007
The routine then finds the directory: X:\Drawings 2006\06132.A2
The routine then searches the directory for all drawings of type: 06132*S*.dwg
(Here's the tricky part. Our drawings are labeled a bit differently, depending on the Architects format.
So we could have drawings labeled like:
06132-S-01
06132_S001
06132.A2-S0-01
06132A2S001
06132-A2_S-001 )
The routine then filters out:
If the name has an 'OLD' or '-OLD' or '_OLD' (so, like 06132-A2_S0-01_OLD.dwg)
Then do not select / count it.
The routine then creates a counter or gets each drawing name (I don't know how it would work here)
The routine then opens the first drawing (ie: 06132-A2_S0-1.dwg)
The routine then runs a LiSP on the drawing
The LiSP closes the drawing when finished. Or if the routine must close the drawing to keep things working properly, so be it.
The routine then opens the next drawing (ie: 06132-A2_S1-1.dwg)
The routine then runs a LiSP on the drawing
The LiSP closes the drawing when finished. Or ...
The routine then opens the next drawing (ie: 06132-A2_S2-1.dwg)
The routine then runs a LiSP on the drawing
The LiSP closes the drawing when finished. Or ...
The routine then opens the next drawing (ie: 06132-A2_S2-2.dwg)
The routine then runs a LiSP on the drawing
The LiSP closes the drawing when finished. Or ...
The routine then opens the next drawing (ie: 06132-A2_S4-1.dwg)
The routine then ends after the last drawing has been processed, be it 5 drawings or 15 drawings.
Phew, ... So what think you ?? Could you put something like this together for me ?? I know it's asking a lot. And if you don't have the time, that's fine. We've gone this far without it, we can go on. But it sure would be nice.
Thanks.