Author Topic: Lisp to start a acad function  (Read 4079 times)

0 Members and 1 Guest are viewing this topic.

Anton

  • Guest
Lisp to start a acad function
« 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

SMadsen

  • Guest
Lisp to start a acad function
« Reply #1 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)
)

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Lisp to start a acad function
« Reply #2 on: January 19, 2004, 07:17:02 AM »
Hi Anton, Welcome.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Anton

  • Guest
thanks!
« Reply #3 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!

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Lisp to start a acad function
« Reply #4 on: January 20, 2004, 06:33:44 PM »
yeppers...
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie