Visual Basic Customization

Visual Basic Customization

Reply
Contributor
jvanbenschoten
Posts: 15
Registered: ‎04-04-2008
Message 1 of 4 (230 Views)

color 0,255,0

230 Views, 3 Replies
01-07-2010 10:42 AM
Help - I'm working with a company that sends us autocad drawings. When I open their drawing and plot, typically we use a .ctb that changes all the colors to black and adjusts pen widths accordingly. There is one color in the drawings that always shows up. That color is 0,255,0 it appears on the screen as green, but when we plot, we can tell color 0,255,0 to change to black, therefore it always plots green, which is how it appears in model space. I know that there isn't really a color 0,255,0, so how do i trick autocad into always printing it black instead of green, without going through the trouble of calling the company that always sends these files to us, and have them change on their end.


Thanks,

Jeff Van Benschoten
*Laurie
Message 2 of 4 (230 Views)

Re: color 0,255,0

01-07-2010 11:38 AM in reply to: jvanbenschoten
Hi Jeff,

The AutoCAD TrueColor range includes all colours from the set

0 to 255, 0 to 255, 0 to 255

Thus 0,255,0 is the TrueColor RGB definition of Green

It is not reasonable to ask a drawing supplier to supply drawings not
containing this colour (the implications would be that you are dictating
that they do not use a standard AutoCAD colour setting method for any
colour - not just 0,255,0), so you need to deal with it at your end.

You could write a small program to check the TrueColor value of the
layers (and objects if needed) and set the TrueColor.ColorIndex to
acGreen. - or some other value with which your ctb file can cope.


Regards,


Laurie Comerford

jvanbenschoten wrote:
> Help - I'm working with a company that sends us autocad drawings. When I open their drawing and plot, typically we use a .ctb that changes all the colors to black and adjusts pen widths accordingly. There is one color in the drawings that always shows up. That color is 0,255,0 it appears on the screen as green, but when we plot, we can tell color 0,255,0 to change to black, therefore it always plots green, which is how it appears in model space. I know that there isn't really a color 0,255,0, so how do i trick autocad into always printing it black instead of green, without going through the trouble of calling the company that always sends these files to us, and have them change on their end.
>
>
> Thanks,
>
> Jeff Van Benschoten
>
*Expert Elite*
dgorsman
Posts: 5,247
Registered: ‎10-12-2006
Message 3 of 4 (230 Views)

Re: color 0,255,0

01-07-2010 11:41 AM in reply to: jvanbenschoten
Color "0,255,0" is a TrueColor, and will always print in color regardless of your CTB settings. Change the color of the layer (preferred) or object itself (if absolutely necessary) for it to plot according to the CTB settings.
----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


Contributor BQ
Contributor
BQ
Posts: 11
Registered: ‎10-09-2009
Message 4 of 4 (230 Views)

Re: color 0,255,0

01-18-2010 07:54 PM in reply to: jvanbenschoten
Jeff,
Not sure if modifying color of your drawing file layers is what you want to do... if you so this may help.
This is something I built to help create layers. It can also be used to configure existing layers.

Can be used to configure layer names equal to, ending with, or containing a specific string of text.
It can configure color, visibility, line weight, line type, and flag plotable or not for existing layers.

Sure it could be cleaned up.

BQ
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.