TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Anton on January 19, 2004, 04:33:19 AM

Title: Lisp to start a acad function
Post 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
Title: Lisp to start a acad function
Post by: SMadsen on January 19, 2004, 05:36:46 AM
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
Code: [Select]
(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)
)
Title: Lisp to start a acad function
Post by: JohnK on January 19, 2004, 07:17:02 AM
Hi Anton, Welcome.
Title: thanks!
Post by: Anton on January 20, 2004, 05:07:03 PM
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!
Title: Lisp to start a acad function
Post by: Keith™ on January 20, 2004, 06:33:44 PM
yeppers...