RGB of the autocad colors?

RGB of the autocad colors?

Anonymous
Not applicable
735 Views
8 Replies
Message 1 of 9

RGB of the autocad colors?

Anonymous
Not applicable
How can i retrieve the RGB values of each color index of Autocad in VBA ?

Thx a lot
0 Likes
736 Views
8 Replies
Replies (8)
Message 2 of 9

Ed__Jobe
Mentor
Mentor
Try doing a search on this ng. There were a couple of suggestions a month or two back. -Ed

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 9

Anonymous
Not applicable
Just for the record, although several people
provided some functions to do this, and I found some

on the web, I found none of them returned
consistent values.  It seems that the RGB values may be

dependent somewhat on the drivers of the video
card.

 

Good luck.  If you find something that matches
consistently, I would love to know it...

 

Brian D.

 


style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
Try
doing a search on this ng. There were a couple of suggestions a month or two
back. -Ed
0 Likes
Message 4 of 9

Anonymous
Not applicable
Well, for what its worth, here's mine... The
attached file is a form that I include in my projects that emulates the AutoCAD
color dialog box. It includes a routine that returns the RGB value. As for the
difference from machine to machine, I've never noticed one but that does not
mean it doesn't exist.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Just for the record, although several people
provided some functions to do this, and I found some

on the web, I found none of them returned
consistent values.  It seems that the RGB values may be

dependent somewhat on the drivers of the video
card.

 

Good luck.  If you find something that
matches consistently, I would love to know it...

 

Brian D.

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Try
doing a search on this ng. There were a couple of suggestions a month or two
back. -Ed
0 Likes
Message 5 of 9

Anonymous
Not applicable
Thx a lot for your respones.

I've found a link with the correspondence between
Autocad colors and the RGB values.


It's in french sorry !

 

But my goal is to do the same grid than the layers
grid of autocad, with the color and the name of the layer in one
column.

Is anybody do already this? Thx again

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Well, for what its worth, here's mine... The
attached file is a form that I include in my projects that emulates the
AutoCAD color dialog box. It includes a routine that returns the RGB value. As
for the difference from machine to machine, I've never noticed one but that
does not mean it doesn't exist.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Just for the record, although several people
provided some functions to do this, and I found some

on the web, I found none of them returned
consistent values.  It seems that the RGB values may be

dependent somewhat on the drivers of the video
card.

 

Good luck.  If you find something that
matches consistently, I would love to know it...

 

Brian D.

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Try
doing a search on this ng. There were a couple of suggestions a month or
two back. -Ed
0 Likes
Message 6 of 9

Anonymous
Not applicable
I can't open your form cos it logs me a error
:

The property OleObjectBlob in frmColors
has got an incorrect file reference

Is it normal ?

 



style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Well, for what its worth, here's mine... The
attached file is a form that I include in my projects that emulates the
AutoCAD color dialog box. It includes a routine that returns the RGB value. As
for the difference from machine to machine, I've never noticed one but that
does not mean it doesn't exist.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Just for the record, although several people
provided some functions to do this, and I found some

on the web, I found none of them returned
consistent values.  It seems that the RGB values may be

dependent somewhat on the drivers of the video
card.

 

Good luck.  If you find something that
matches consistently, I would love to know it...

 

Brian D.

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Try
doing a search on this ng. There were a couple of suggestions a month or
two back. -Ed
0 Likes
Message 7 of 9

Anonymous
Not applicable
Yes, unfortunately it is normal. But only because
I'm an idiot. I forgot to send the .frx file with the form. You can download the
proper files here :
href="http://www.vbdesign.net/cadpages/community/colordialog.htm">http://www.vbdesign.net/cadpages/...
 .
I would recommend downloading version 2. Version 1 is smaller in file size but
requires an additional class file. Version 2 is just simpler to include and use.
Once you have the form opened, there is an example of calling and using the form
that is commented out at the top of the file.
0 Likes
Message 8 of 9

Anonymous
Not applicable
Your code is very interesting. Thx a
lot

Can you send me the .bmp of your images plz 'cos i
want to do the same form but called from a vb program ?

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Yes, unfortunately it is normal. But only because
I'm an idiot. I forgot to send the .frx file with the form. You can download
the proper files here :
href="http://www.vbdesign.net/cadpages/community/colordialog.htm">http://www.vbdesign.net/cadpage...
 .
I would recommend downloading version 2. Version 1 is smaller in file size but
requires an additional class file. Version 2 is just simpler to include and
use. Once you have the form opened, there is an example of calling and using
the form that is commented out at the top of the
file.
0 Likes
Message 9 of 9

Anonymous
Not applicable
You can take a screen shot of the one you have. I
no longer have the original .bmp
files....

 



style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Your code is very interesting. Thx a
lot

Can you send me the .bmp of your images plz 'cos
i want to do the same form but called from a vb program ?

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Yes, unfortunately it is normal. But only
because I'm an idiot. I forgot to send the .frx file with the form. You can
download the proper files here :
href="http://www.vbdesign.net/cadpages/community/colordialog.htm">http://www.vbdesign.net/cadpa...
 .
I would recommend downloading version 2. Version 1 is smaller in file size
but requires an additional class file. Version 2 is just simpler to include
and use. Once you have the form opened, there is an example of calling and
using the form that is commented out at the top of the
file.
0 Likes