ghlong
Specifier/Regulator
- Jul 25, 2003
- 2
Hi everyone! I am returning to AutoCAD 2002, after working 13 yrs with MicroStation. Funny what one forgets about LISP when away for so long.
I am trying to write a routine that places sys vari "DWGNAME" into a block attribute value "DWG_NUMBER". DBOR2D.DWG is the name of the title block.
I am familiar with the old LISP from Release 10 and I am trying to relearn LISP with AutoCAD 2002. I have the extraction from the dwg file figured out...
(setq dn (substr (getvar "DWGNAME" 1 (-(strlen (getvar "DWGNAME") 4)))
..but I am fighting with the proper code of inserting the dn variable into the "DWG_NUMBER" attribute.
Sorry for being long winded beginning this thread. I am not looking for actual code, but more confirmation it can be done with LISP and directions to references on how to do it.
Thanks in advance,
George
I am trying to write a routine that places sys vari "DWGNAME" into a block attribute value "DWG_NUMBER". DBOR2D.DWG is the name of the title block.
I am familiar with the old LISP from Release 10 and I am trying to relearn LISP with AutoCAD 2002. I have the extraction from the dwg file figured out...
(setq dn (substr (getvar "DWGNAME" 1 (-(strlen (getvar "DWGNAME") 4)))
..but I am fighting with the proper code of inserting the dn variable into the "DWG_NUMBER" attribute.
Sorry for being long winded beginning this thread. I am not looking for actual code, but more confirmation it can be done with LISP and directions to references on how to do it.
Thanks in advance,
George