My plugin will show a Window Form with different room properties listed on it. What I want is to highlight anroom when I select this room from GUI. Is there any simple way to do it?
The method mentioned in this blog (http://thebuildingcoder.typepad.com/blog/2010/06/highlight-elements.html) can highlight an element only after the Execute() function is finished. However, I want the element to be highlighted in between (i.e., Window Form GUI is still running and a room can be hilghlighted by selecting this room from this GUI)
Thanks,
Solved! Go to Solution.
Solved by R.van.den.Bor. Go to Solution.
You can build a selection like so :
_commandData.Application.ActiveUIDocument.Selection.Elements.Add(Room);
and then use :
_commandData.Application.ActiveUIDocument.RefreshActiveView();
This will highlight the selected elements (or rooms in this case).
No need to close the dialog.
Hope this helps,