We work with a large number of CTB files, or at least we used to. Trying to streamline the problem. But, as a result of the way things used to be done, we have CTB files for drawings located in the folder of the drawing. Until now, this lisp routine, added to the end of the acad.lsp file, worked just fine for repathing the location autocad looks for the ctb. On my new machine, Windows 7, 64 bit with 2012, it will not work. Any ideas?
here's the lisp routine we use:
(defun C:GC ()
(setq printerstylesheetdir (getvar "dwgprefix"))
acadLocation (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\"
(vlax-product-key)) "AcadLocation")
(setenv "PrinterStyleSheetDir" printerstylesheetdir)
(princ)
)
Here's the error i get now...
Command: GC
no function definition: VLAX-PRODUCT-KEY :error#2*Cancel*
Help!
Currently running Carlson Civil Suite 2012 on top of Civil 3D 2012, Windows 7, 64 bit.
Thanks!
Shaun