Check if Block's color is bylayer?

Check if Block's color is bylayer?

Anonymous
Not applicable
285 Views
2 Replies
Message 1 of 3

Check if Block's color is bylayer?

Anonymous
Not applicable
I can check linetype, lineweight easy by doing this

dim blkref as acadblockreference
msgbox blkref.lineweight

but how do I check color? if I do:
blkref.color it returns 256, but the block is actually bylayer.

Thanks,
Viktor.
0 Likes
286 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
that is correct. if you want to check using an enumerated name then use
acByLayer which equals 256.


wrote in message news:5842292@discussion.autodesk.com...
I can check linetype, lineweight easy by doing this

dim blkref as acadblockreference
msgbox blkref.lineweight

but how do I check color? if I do:
blkref.color it returns 256, but the block is actually bylayer.

Thanks,
Viktor.
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks, after dinking around with it I realized that setting a color to 256 will actually set it to bylayer, that's a question to add to the cad quiz.
0 Likes