setting
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
setting

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
rojren
Guest





Posted: Fri Jan 07, 2005 7:42 pm    Post subject: setting Reply with quote

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 Reply with quote

(setvar "cecolor" "bylayer")
Back to top
Chip Harper
Guest





Posted: Fri Jan 07, 2005 7:56 pm    Post subject: Re: setting Reply with quote

(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 Reply with quote

Try (setvar "cecolor" "bylayer")
Should work.
Back to top
ecable
Guest





Posted: Fri Jan 07, 2005 8:04 pm    Post subject: Re: setting Reply with quote

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 Reply with quote

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 Reply with quote

(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 Reply with 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
Paul Turvill
Guest





Posted: Fri Jan 07, 2005 9:27 pm    Post subject: Re: setting Reply with quote

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 Reply with quote

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 Reply with quote

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 Reply with quote

..
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
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB