This is my first time posting here, therefore please forgive my 'newby-ism'.
I was at Autodesk University and took the VB.net course (total = 1.5 hours). After the session I asked one of the course assistants about finding code and he suggested this forum.
I am looking for pieces of the portions stated in the command line.
Once all is pieced together, the routine will allow the user to select .dwg files from one or more folders, call them up, do a REGEN ALL in modelspace and paperspace, and then run the plot command by the default printer (we normally use a PDF generator).
The reason for this is we have drawings that ocntain large raster images combined with both CAD data and connected (i.e. shapefiles) data. The figures lose their draworder and using a batch such as within a sheetset manager does not rememdy this befor eit creates batched PDFs.
Can anybody point me in the direction fo some of this code for me to toy with until I get a complete working routine?
Welcome! How was the course?
I'm assuming the 1.5 hours gave you a very brief idea of how to set up Visual Studio Express and ObjectARX and define a custom command, yeah?
Do you know where all your resources are for looking up information? This is definitely one place, but there are many more.
To open files, check this out.
To regen a drawing, check this out.
And to plot drawings, check this out.
If you want a robust batch plotting routine, I suggest you have a look at the ADN Plugin of the Month "Batch Publish" sample, which includes source c ode. Here is the original announcement for that sample: http://through-the-interface.typepad.com/through_t
BTW Don't forget to check the learning resources available at www.autodesk.com/developautocad to help you get up to speed.
Thanks for the response.
The course was good but it was barely an appetizer. We did learn how to open/start a project and to load Autocad Resources. We did write (copy?) some code for some basic functions and then create .dll files. We also stepped through the process of loading and running the files in Autocad products.
The links you provided are excellent and what I was seeking. I will now try to join them in to one file and make it work for its overall use once I get a little time. I expect to stumble along the way but that is the learning process :-)
Thank you for the links and advice. I understand I am on a steep learning curve and may be back with some troubleshooting questions.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.