how to differ two lines in color
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
how to differ two lines in color

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
youngman
Guest





Posted: Mon Mar 21, 2005 2:37 pm    Post subject: how to differ two lines in color Reply with quote

hi,

i want to differ two lines in color,

but when the settings are all bylayer, the color values of the two lines are
all 256,

(in fact their colors are different.)

what should i do.

thanks

Back to top
Joe Sutphin
Guest





Posted: Mon Mar 21, 2005 7:16 pm    Post subject: Re: how to differ two lines in color Reply with quote

That would imply there layers are different? Is this the case?

If you'll want to change the color of the Layer object and not the entity.

Joe
--

"youngman" <youngmanca@hotmail.com> wrote in message
news:423e95ed_1@newsprd01...
Quote:
hi,

i want to differ two lines in color,

but when the settings are all bylayer, the color values of the two lines
are
all 256,

(in fact their colors are different.)

what should i do.

thanks

Back to top
oops
Guest





Posted: Mon Mar 21, 2005 11:11 pm    Post subject: Re: how to differ two lines in color Reply with quote

if the color is bylayer, you have to look at the color of the layer

if yourline.Color = acByLayer then
msgbox ThisDrawing.Layers(yourline.Layer).Color
else
msgbox yourline.Color
end if

Back to top
youngman
Guest





Posted: Tue Mar 22, 2005 5:29 am    Post subject: Re: how to differ two lines in color Reply with quote

Thanks for your advice.
this helped me.

thank
"oops" <no@spam> wrote in message news:423f0e5c$1_1@newsprd01...
Quote:
if the color is bylayer, you have to look at the color of the layer

if yourline.Color = acByLayer then
msgbox ThisDrawing.Layers(yourline.Layer).Color
else
msgbox yourline.Color
end if

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA 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
Powered by phpBB