[CONNECT .NET] ElementPropertiesGetter

I'm using an ElementPropertiesGetter.  I can get a colour...

ElementPropertiesGetter propertiesGetter = new ElementPropertiesGetter (el);
uint colour = propertiesGetter.Color;

So far, so good. But, if the element's colour is ByLevel, then how do I extract that info?  I tried comparing to SpecialColor.ByLevel, but that's a negative number and Viz Studio complains about non-compatible types. Should I just cast my way out of trouble, or have I missed something?

Similar questions apply to element weight and line-style.

Parents Reply Children
No Data