Hi,
I have a model with two shared cells. Their instance are in the same level, and with the same instance color "BY LEVEL", which is red.
The geometry color in each shared cell are also same, they are in the same level, and with the same color "BY LEVEL", which is blue.
Although the color setting for two shared cells are the same, one is showed as red, and one is blue. I am not sure which one is the correct behaviour.
DGN_Color_3D.dgn
And I am a little bit confusing by the shared cell's color behaviour, I would like to know the expected behaviour of shared cell's display color.
A shared cell instance can specify overrides for level, color, style, and weight. The override applies to all the components of the shared cell definition making it display using the property value from the shared cell instance instead of the component's stored value.
The cyan shared cell instance has no overrides specified. The components which are on level "e15" display with their ByLevel color 23, cyan.
The red shared cell instance has an override for level specified. Now all components are considered to be on "Level 1", the same level as the shared cell instance. The ByLevel color for "Level 1" is color 3, red.
So both behaviors are expected and correct. Hope this helps, I see this post was over a month old and somehow got missed...
-B
NOTE: If you use the Level Display dialog to turn levels off/on, you'll see that "e15" controls the display of the cyan shared cell and "Level 1" controls the display of the red shared cell.
Answer Verified By: Richard Yu
BTW, what is the difference between scOverride::level and scOverride::color?
For my understanding, if scOverride::level is set then scOverride::color could be ignored. Is it true?
simple answer try not to use shared cells option or drop all shared cells to normal cells... unless your using rendered 3d cells or a real lot of cells then it wont make much difference to file size ... so why use them...?
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me
Hi Brien,
Here is a file which has a shared cell with color (=12). The shared cell itself is on level "Object2".
The shared cell override is by color. However, what I see in the application is the color of level "Object2", not the color (=12).
What kind of rule should I use to determine which color is the displayed one in code?
/cfs-file/__key/communityserver-discussions-components-files/273/DWG.dgn
This shared cell only has an override for level, not color...
Brien,
From code level, I got know it has an override for color instead of an override for level.
Is there a mismatch between what we see in Application and what we get via API?
ping zhang said:Is there a mismatch between what we see in Application and what we get via API?
There is not...either you are not looking at the same element as the one in the file that was attached or you have a code problem. You should also start posting these questions in the programming forum...