Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [Connect C++] Query properties of a GroupedHole element

$
0
0

I've tried to use the ElementPropertiesGetterPtr and it works fine on other element types (lines, linestrings, cells, shared cells etc) but it doesn't work on GroupedHole elements. The color returned got some very strange value like 1880678415...

I've just tested it again and now I can see why. The originally returned value was COLOR_BY_LEVEL and as I tried to get the color from the level, I didn't see that the LevelHandle was not OK.

Here is my code:

UInt32 color = propGetter->GetColor();
lvlHandle = eh.GetDgnModelP()->GetFileLevelCache().GetLevel(propGetter->GetLevel());

if (color == COLOR_BYLEVEL)
    color = lvlHandle.GetByLevelColor().GetColor();

Regards, Evan


Viewing all articles
Browse latest Browse all 7260

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>