TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Anton on January 19, 2004, 04:33:19 AM
-
Hi,
In Acad2002 there is a function in a (tools?) pulldown menu to extract attributes.
Is there a way to call this function with a lisp file?
The goal is to run a lisp file, and at a certain point to start that other lisp file to extract attributes.
I'm a newbie to lisp programming and this should be very easy to you, but for me it's really ????
Please help!
Anton
-
Hi Anton,
Welcome to theSwamp forums.
I can't remember if EATTEXT was part of A2K2, but if so then you can just call it as any other built-in command.
If you're referring to Express Tools' ATTOUT command then it's based on an AutoLISP routine with the command prefix "C:".
You can call it from within your own AutoLISP routine with (C:ATTOUT).
For example
(defun runMyAttExtraction (/ attm)
;; do something ... e.g.
(setq attm (getvar "ATTMODE"))
(setvar "ATTMODE" 2)
;; call ET's ATTOUT
(C:ATTOUT)
;; do something else ... e.g.
(setvar "ATTMODE" attm)
)
-
Hi Anton, Welcome.
-
Hi,
As an old cadalog forumuser I switched over to this board.
I love to see all those names again who helped me the early days.
I think I will still need some help with lots of things.
Somebody has to ask questions, right? :)
Thanks again!
-
yeppers...