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.

How do I incorporate 'Use Original Color' in a macro?

Started by Lar, April 10, 2013, 06:59:24 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Lar

Anybody out there know how to incorporate 'Use Original Color' (found in the info box when a Symbol or Block is selected) in a macro. (I tried using the 'same as' finger but it does nothing at all for blocks).

The problem here is that when printing to 'all black', Symbols (and maybe Blocks, I'm not sure) do not respect dcad's 'print as black' status. So, while everything else is printed black the symbols would print in color. One workaround is setting the printer itself to 'all black' but then the symbols print in grayscale, not solid black.  You can actually create all black symbols but this makes no sense when shading in 3d mode.

The only way to get multi-colored symbols to print solid black is to assign black as the symbol's color and uncheck 'use original color' (both via the info box). Then uncheck 'use original color' just before printing (save before and don't save after, close and reopen).

The problem with that last bit is that 'use original color' is only available when one item is selected. So If my drawing has hundreds of symbols I would have my work cut out for me, unchecking then later rechecking. With a macro all of this could be avoided (including the save-before-and-don't-save-after trick mention above).

FYI: this color situation also goes for bitmaps...

Lar
ps: tip- I sometimes color my multi-colored symbols in such a way that when it prints grayscale the different levels of gray (and black) emulate different line weights.

prl

Lar,

Unless DT adds it to the dcadAlias.d3i, I think you are stuck.  It appears to be something accessible in the OLE.  Cycling the database with OLE is slow but I imagine faster than doing it manually.

QuoteProperty UseOriginalColor As Boolean

Read/Write.

Description:
The UseOriginalColor property indicates whether the symbol displays in the original colors of the symbol, or uses the assigned entity color.

Example:

' Assumes DcESymbol is a valid DesignCAD.EntSymbol object

If DcSymbol.UseOriginalColor = True

Lar

...So anybody know of any tricks on automating the above, including any utility that records mouse movements?

Lar

...Hey, I just thought of one... before printing define the entire drawing as a Block, make the Block black, disable 'use original color', PRINT, enable 'use original color' (very important or the next step may result in everything {except the Symbols and Blocks, ironically} being permanently black), explode the Block, define something small under that block-name so the file don't remain being double in size and you can use the same block name when printing next time.

Lar