Hi,
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.
UInt32 color=(UInt32)AK_WALL_COLORID;
mdlParams_setActive ((void *)&color,ACTIVEPARAM_COLOR); mdlParams_getActive ((void *)&color,ACTIVEPARAM_COLOR); //color returned is 2683184 // 2683184 mod 256 is 48
Any idea?
Answer Verified By: Sedat Alis
Unknown said: You should use mdlParams_setActive ((void *)color, ACTIVEPARAM_COLOR); to do it.
Hi Yongan,
Thank you for your help. It is working now.
All examples that I could find contains & before color variable. :)
Kind regards,
Sedat AlisAEC Technology Inc.
Thank you Yongan. Michael is right, documentation says as follows; ACTIVEPARAM_COLOR integer by value