PDA

View Full Version : Script that will insert a .dwt from Design Center



cadd4la
2021-10-17, 01:29 AM
Hello everyone,

I'm looking to get some help writing a script that will insert a .dwt from the design center, run a lisp program, and then save the file.


_adcnavigate;T:/04-CAD_Custom_Files/04-01_Templates/TDS_LBase-Ext.dwt";
ztds-96set
;
save

The only part I can get to run from the code is the lisp problem and I get "Unknown command "DWT". Press F1 for help".

Thanks,

Cadd4la

Tom Beauford
2021-10-17, 02:34 PM
No idea what you're trying to do with the lisp but I've used the ADCNAVIGATE in macros for years.
Never used it with a template file though. Try saving it as a drawing and using it instead.

^C^C^P(command "adcnavigate" "C:/Blocks/legend.dwg")works for me.