| Author |
Message |
rojren
Guest
|
Posted:
Fri Jan 07, 2005 7:42 pm Post subject:
setting |
|
|
I am all but illiterate with LISP.
How do I get the layer color to reset to bylayer after the lisp command runs?
I've tried adding (command "color" "bylayer" ) and (command "color" "256" ) as suggested elsewhere, but it doesn't work.
Thanks.
|
|
| Back to top |
|
 |
OLD-CADaver
Guest
|
Posted:
Fri Jan 07, 2005 7:48 pm Post subject:
Re: setting |
|
|
| (setvar "cecolor" "bylayer") |
|
| Back to top |
|
 |
Chip Harper
Guest
|
Posted:
Fri Jan 07, 2005 7:56 pm Post subject:
Re: setting |
|
|
(command ".-color" "bylayer")
or
(setvar "cecolor" "bylayer")
--
Chip Harper
Autodesk Discussion Group Facilitator
http://home.comcast.net/~hot4cad/
|
|
| Back to top |
|
 |
ecable
Guest
|
Posted:
Fri Jan 07, 2005 7:59 pm Post subject:
Re: setting |
|
|
Try (setvar "cecolor" "bylayer")
Should work. |
|
| Back to top |
|
 |
ecable
Guest
|
Posted:
Fri Jan 07, 2005 8:04 pm Post subject:
Re: setting |
|
|
Also instead of
(terpri)
(setq dper (getstring "DPER NUMBER : " t))
(terpri)
Just use
(setq dper (getstring "\nDPER NUMBER : " t))
For a new command line |
|
| Back to top |
|
 |
rojren
Guest
|
Posted:
Fri Jan 07, 2005 8:16 pm Post subject:
Re: setting |
|
|
Thanks.
I seem to be doing something wrong though. I'm still getting the color as 100 after the lisp runs. |
|
| Back to top |
|
 |
OLD-CADaver
Guest
|
Posted:
Fri Jan 07, 2005 8:42 pm Post subject:
Re: setting |
|
|
(command "color" "bylayer")
or
(setvar "cecolor" "bylayer")
Notice quotes and CEcolor for the setvar. |
|
| Back to top |
|
 |
rojren
Guest
|
Posted:
Fri Jan 07, 2005 9:19 pm Post subject:
Re: setting |
|
|
..
Well, I tried it, but like I said, I seem to be doing something wrong.
I'll type in "dper1" and everything works, except the textcolor remains set at 100. |
|
| Back to top |
|
 |
Paul Turvill
Guest
|
Posted:
Fri Jan 07, 2005 9:27 pm Post subject:
Re: setting |
|
|
Maybe you should post your code.
___
"rojren" <nospam@address.withheld> wrote in message
news:31696516.1105114776804.JavaMail.jive@jiveforum2.autodesk.com...
| Quote: | .
Well, I tried it, but like I said, I seem to be doing something wrong.
I'll type in "dper1" and everything works, except the textcolor remains
set at 100. |
|
|
| Back to top |
|
 |
rojren
Guest
|
Posted:
Fri Jan 07, 2005 9:46 pm Post subject:
Re: setting |
|
|
| It's attached to my previous post. |
|
| Back to top |
|
 |
Paul Turvill
Guest
|
Posted:
Fri Jan 07, 2005 10:10 pm Post subject:
Re: setting |
|
|
Sorry, missed that. However, your code works fine for me. Creates the text
in color 100, then switches back to color ByLayer.
___
"rojren" <nospam@address.withheld> wrote in message
news:11855833.1105116432443.JavaMail.jive@jiveforum2.autodesk.com...
> It's attached to my previous post. |
|
| Back to top |
|
 |
rojren
Guest
|
Posted:
Fri Jan 07, 2005 11:23 pm Post subject:
Re: setting |
|
|
..
Well, I think I found my problem. The AutoCAD installation I was using this LISP on is getting flaky. I tried it on two others, and it works.
Go figure.
Thanks, all. |
|
| Back to top |
|
 |
|
|
|
|