Very new to the Swamp (so glad to have found it, very responsive and helpful already) and pretty new to CAD, but decently experienced with coding in general (BS in CS). Just recently got a job at a civil engineering firm and almost immediately started imagining ways I could help automate tasks here. I've come up with a somewhat elaborate idea and I'm having success putting together the pieces but before I go too far on it, I'd like to get some expert opinions on the idea in general. Maybe there's easier ways to do what I want or maybe even a program out there that already does it.
So here's the situation. They tell me to cut plan sheets for a new job. They give me 2-3 base files with everything in them and a couple template files, all on the network drives. I have to make an individual .DWG for each sheet, attach the base files as xrefs, and vp-freeze/fade back certain layers depending on the type of sheet. So far, it seems like I should be able to automate almost all of it. What I want to do is make a DCL dialog that gets all the info about the job from the user, then they hit a button and it copies the templates in and/or creates the new files, attaches the xrefs, freezes/fades, etc all on it's own for however many sheets (files) they say they need.
I've already got some chunks of it coded and working. I have LISP routines that find the attached base files and freeze/fade the layers. I've got a routine that shows an OpenDCL dialog that gets the job info and writes it to a temporary file. I've got a script that opens a file, reads the temp. data file and changes MText contents based on job info. etc etc. But it's starting to get complicated because of issues like a LISP routine being trapped in the active drawing and not being able to use "command" inside an event handler, stuff like that. I'm starting to wonder if Visual Basic might be a smarter choice for something of this complexity (i.e. operating on multiple files) rather than forcing it with LISP routines and scripts. Or maybe some other option. Or maybe there's already a program like this.
Any suggestions? Let me know if you'd like any more info. Thanks very much in advance. You guys rock.