Author Topic: Autocad 2005 LT macro  (Read 2525 times)

0 Members and 1 Guest are viewing this topic.

TJAM51

  • Guest
Autocad 2005 LT macro
« on: October 31, 2004, 02:24:32 PM »
I am attempting to create a LT macro for setting a line or other object to the current layer. I have the follwoing but it works sometmes and other times it does not...more often not.........any suggestions?

Thanks


^C^C_select;\_move;p;;@;@;_setenv;clayer;$m=$(getvar,clayer);_change;L;;_properties;layer;$m=$(getenv,clay);;

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Autocad 2005 LT macro
« Reply #1 on: October 31, 2004, 04:34:41 PM »
Try this
Code: [Select]
^C^C._change;\;p;la;(getvar "clayer");;
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

MikePerry

  • Guest
Autocad 2005 LT macro
« Reply #2 on: October 31, 2004, 05:21:07 PM »
Hi

I didn't think AutoCAD LT supported LISP without some Third Party piece of Software that enables ARX, LISP, VBA etc functions/routines to be run....

The following should work as it uses Diesel (which I believe is available within vanilla AutoCAD LT) -

^C^C_.Select;\_.Change;_P;;_P;_LA;$M=$(getvar,CLAYER);;

Have a good one, Mike

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Autocad 2005 LT macro
« Reply #3 on: October 31, 2004, 07:20:02 PM »
Ooops, you are right, try this, changes one pick at a time.
Code: [Select]
^C^C._change;\;p;la;$M=$(getvar,CLAYER);;
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.