ImportStylesandSettings to multiple drawings
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I work on the templates at my company. Each of our template sheets have all the same styles and settings. Is it possible to use the autocad command "ImportStylesandSettings" command on multiple drawings? I was thinking that the workflow would look something like below. I have ensured that the capitalization is correct in all the file paths.
1) Manually open "S:\Templates\Civil Templates\CAD Templates\08_Development\01_24X36\Styles.dwg"
2) Manually update the appropriate setting or style
Here is where the lisp routine would start:
3) Open the "S:\Templates\Civil Templates\CAD Templates\08_Development\01_24X36\01_BASE\D-PIPE.dwg"
(vla-open (vla-get-documents (vlax-get-acad-object)) "S:\Templates\Civil Templates\CAD Templates\08_Development\01_24X36\01_BASE\D-PIPE.dwg" :vlax-true)
4) Make this recently opened drawing the current drawing
I am not sure how to do this. The open command above switches back to the original drawing that I had open.
5) Run "ImportStylesandSettings" and update all styles and settings and select the "Styles.dwg" as the template
(command "ImportStylesandSettings"...)
Not Sure how to select the "Styles.dwg", then push all settings and styles from a lisp routine for this command
6)
(command "save")
7)
(command "close")
8) Open the next drawing: "S:\Templates\Civil Templates\CAD Templates\08_Development\01_24X36\02_ONSITE\C-0 TITLE SHEET.dwg"
9) Make this recently opened drawing the current drawing
10) (command "save")
11) (command "close")
12),etc -> repeat for all applicable drawings
Thanks!