I am trying to set active color to index 0.
I was using below line but it does not show active color on menu bar properly. Directly setting system variable may not be safe too.
#define AK_WALL_COLORID 0
tcb->symbology.color = AK_WALL_COLORID;
So I tried below code but it sets color to 48.
mdlParams_setActive ((void *)&color,ACTIVEPARAM_COLOR); mdlParams_getActive ((void *)&color,ACTIVEPARAM_COLOR); //color returned is 2683184 // 2683184 mod 256 is 48
Answer Verified By: Sedat Alis
Yongan.Fu said: You should use mdlParams_setActive ((void *)color, ACTIVEPARAM_COLOR); to do it.
Thank you for your help. It is working now.
All examples that I could find contains & before color variable. :)
Sedat AlisAEC Technology Inc.
Thank you Yongan. Michael is right, documentation says as follows; ACTIVEPARAM_COLOR integer by value