Hi Nenad,
[quote user="Nenad Poljcic"]I just started with NET API so I am trying to understand basics.[/quote]
What I see as a problem is, based also on your other posts, you are not learning NET API, but former COM/Interop API that is a heritage from V8i. True is that unfortunately many things cannot be achieved using the new API and often it's also possible, but not documented. But you try stay away from Interop as long as possible ... in Update 4 it seems it's a bit easier and documentation is substanttially better than in older versions.
In other words: Try to don't use Element class, but Element handlers and Query; also don't use IPrimitive... and ILocate..., but classes inherited from DgnTool etc. As I wrote, not always possible, but you will learn "true CONNECT API".
[quote user="Nenad Poljcic"]I can not find property isHighlighted anywhere.[/quote]
I clearly wrote it's for Update 4. Do you use Update 4? If not, why? The development both in documentation and API itself is rapid.
[quote user="Nenad Poljcic"]Idea is to highlight "element" in general code[/quote]
Works fine for me:
s_com.ActiveModelReference.GetElementByID(598).IsHighlighted = true; s_com.ActiveModelReference.GetElementByID(577).IsHighlighted = true;
... where "fine" means "I don't like it, because it's Interop and I prefer new managed API, but I don't know about any other way" ;-)
With regards,
Jan