DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Changing Color or entire Drawing to Black

Started by Robert Willis, February 19, 2015, 09:21:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Robert Willis

I am looking for a easy way to change the color of the entire drawing to black on all layers. I cannot seem to find the right command to do this. Does anyone have any ideas?

samdavo

#1
Robert
Are you talking 2D or 3D?  Are there planes, grids, solids, materials?  Using wireframe or hidden line - or shaded mode?  Permanent change to black or temporary?
and let's assume you don't have a black background - otherwise black will show as white ...

As a starting point ...
Assuming you don't want to permanently change to black, you could try this macro ( of prl's)  called qs2.d3m.

It will work in 2D

and in 3D, provided you don;t have coloured planes and solids etc in shading mode with graphics accelerator on ( or OpenGL)
cheers

PS a Simpler answer would have been ...
You can always select all, go to Infobox, click the colour square top left - change colour to R= 000,  G = 000,  B = 000  (2 cents)
PS I'm not sure if "colour by layer" will affect the result here.   


Planes Solids Grids etc (in 3D) that are showing as materials won't change however.

PS - Reply #9 here shows the black wireframe (hidden line removed) that becomes visible in a 3D drawing (but it has graphics accelerator turned on - in shading mode - and hence planes are shaded and still coloured).  If you had GA turned off, everything would be black lines :-
http://forum.designcad.com/index.php?topic=4529.0

Note that this macro qs2.d3m is a trick!! - it is only "selecting" with black as the temporary black "selection colour".  But after you take a screensnip (or save image - or printscreen) you can then click anywhere, and your original background and selection colour are restored :)

PS You can also print to pdf, and select "black and white" ?

prl

#2
Since some of the entities could have the "color by layer" properties set, use this macro.  Note this routine does NOT work inside DesignCAD blocks and symbols. Unfortunately we don't have code access inside of those type of container entities.

'program   allblack.d3m (color by entity to all black)

'2/20/2015

include "dcadalias.d3i"

sys(80)=0
sys(541) = 0 'color by layer OFF

sys(36)=2

for j = 1 to sys(9)
  entity j
  change Ent_ColorByLayer, 0 'turn off by layer property
  change Ent_Color, 0, 0, 0 'this is your RGB color choice
  update
next j

sys(36)=0
sys(1)=0

regen
Message "Done"
END

JJG

Euh, just another question :
is that for printing ?
In such case, simply check the "Print as Black and White" found in the "Type"-tab of the print-windows.
;)

Robert Willis

Thanks for all of the replies. I am converting some 2D multiple view drawings into individual symbols with Front, Top, Bottom, Left, Right and Back Views. Converting the drawing so that everything is blacks makes it easier for me to dissect into the required symbols.

It has been a while since I converted some drawing and do not remember how I accomplish this task previously.

Dr PR

The simplest way is to open the "Layers" dialog (L) and click "Unlock All."

Then use "Edit/Select All" (Ctrl A) to select everything.

Now open the Info Box (Ctrl I), click on the color tile at upper left, and select the new color for all of the selected objects. This will even change the base color of objects on hidden layers.

As mentioned above, you may have to disable "Options/Color By Layer" to get the base color to show on all layers.

Phil
DesignCAD user since 1987