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.

Color by entity versus Color by Layer (advantages of using BasicCAD)

Started by prl, September 16, 2012, 05:40:20 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

prl

In this topic, the issue of color by layer is discussed.  http://forum.designcad.com/index.php?topic=4594.msg28012#msg28012

JJG posted some macros.  I have a similar set which bypass the infobox.  There some technical advantages to not using the infobox to toggle the "Color by Layer" setting and using BasicCAD instead.

If you select an entity and toggle this property using BasicCAD, the original entity colors are maintained.  If you toggle this property with the Infobox, not only are the layer colors used to display the entity, they also overwrite the entity colors.  So at that point, your entity only has one color, the layer color.

This may or may not be useful to know.  I prefer keeping the two colors since I can process the entity by color numbers for alternate database or hatching uses.


JJG

Prl,

I think you are right, and no.

I explain why :

Indeed, if you select an (or many) entity(ies), then active the info-box (shortcut "Ctrl I"), and then check the "Color by Layer" setting, if previously a color has been set for the layer, this (these) entity(ies) take the color given by the layer : this is logic.

OK

Then, you uncheck "Color by Layer" setting (in info-box), OK, I'm agreed, the entity(ies) keep the color that was imposed by the layer and, therefore, do not return to the color they were originally.
In this way, you are right !

But ..., as I said here, for example,  http://forum.designcad.com/index.php?topic=26.msg18701#msg18701   the "big" advantage of the action(s) done by the info-box (including of course the info-box finger) is (are) to be undoable with "Ctrl Z" !!!
Also, if you undo an action done by the info-box, eg checking the "Color by Layer" setting, you'll retrieve the color the entity(ies) has (have) originaly.
It works !


But on the other hand, in the macro I have posted in the topic you indicate, that's true that if you chage the lines  " Change Ent_ColorByLayer, 1 " by " Change Ent_ColorByLayer, 0 "  and execute the new macro (to uncheck "Color by Layer" setting), you'll retrieve the original color of the entity(ies) too.
And idem if you do this action (uncheck the "Color by Layer" setting) through the info-box after having given the "Color by Layer" setting with the help of the macro, you retrive the original color too.

Also, I think, something works not totaly logic in the info-box ...
;)

Lar

Quote from: prl on September 16, 2012, 05:40:20 AM
If you select an entity and toggle this property using BasicCAD, the original entity colors are maintained.  If you toggle this property with the Infobox, not only are the layer colors used to display the entity, they also overwrite the entity colors.

Prl, I don't normally use 'color by layer' but when I do I can always use the info box and I always get the original color back by unchecking 'color by layer' in the info box.

Perhaps the original is lost only when  color by layer is turned on globally, eg, via the 'options' menu.

Lar

prl

Quote from: Lar on September 16, 2012, 12:35:49 PM
Perhaps the original is lost only when  color by layer is turned on globally, eg, via the 'options' menu.

Yes the "color by layer" setting on the options menu seems to affect the infobox operation.  My understanding of the "color by layer" setting on the options menu is that it is only suppose to affect NEW entities drawn, not existing entities.  That is why the color toolbox is inoperable with the "color by layer" setting ON when drawing new things.

Strange. Good observation.

Dr PR

Here is my two cents worth, although I rarely use "by-layer" properties (only with topographic maps).

I thought the purpose of by-layer properties was only to affect the display of objects, and not object properties.

If you create a black solid line it will display that way on layers not having assigned properties. Then if you move it to a layer with red color, assigned line width and dashed line properties, that is how the line will be displayed. Move it to another layer with different color and line properties and the line will display with the new characteristics. But if you them move the line to a layer without assigned properties it once again displays as the original black solid line.

Likewise, you should be able to create objects with any set of properties on any layer, regardless of layer settings. Of course, layer settings will affect how the objects are displayed, but will not change the properties.

It seems rather bizarre to me for objects to have properties that are tied to some layer, especially if the objects are moved from that layer to another. That is totally irrational.

I gather from the confused discussions that this is not how it works in later versions of DesignCAD.

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on September 22, 2012, 04:30:23 PM
I thought the purpose of by-layer properties was only to affect the display of objects, and not object properties.

Yes, that is how I understand it also.