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

new level creation

$
0
0

Hello guys,

I have been trying to create a new level in OpenCities Map CONNECT edition (version 10.16.00.60) and I am unable to set the level color in section "byLevel" to a correct value, right know when I use the code below the level with name "BAD" is created only in Symbology section "Overrides" while in the section "byLevel" the color of the level is the default white color..

I have tried to change the override flag in "mdlLevel_setColor(model, levelId, &color, &override);" to "false" but nothing changed...

// create level
mdlLevel_create(&levelId, model, levelName, LEVEL_NULL_CODE);
mdlLevelTable_rewrite(model);

// apply level
bool override = true;
UInt color = 60;
mdlLevel_getIdFromName(levelId, model, id, levelName);
mdlLevel_setColor(model, levelId, &color, &override);
mdlLevelTable_rewrite(model);

In the picture below you can see that in the "Overrides" section the level "BAD" is set to color 35, but in the "byLevel" its always the default color 0, is there a way to change the "byLevel" color? Thanks


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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