Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi forum. Probably being a little punctilious here but.. The thing is that I want to go the Revit and select some stuff, the come back to my form. This code is working so far:
MyForm.WindowState = FormWindowState.Minimized; //minimize my form to see the revit window
myRef = uidoc.Selection.PickObjects(ObjectType.Element, "Select elements");
MyForm.WindowState = FormWindowState.Normal; //Take my form back.
I dont know if its the best way to handle this problem, but as its working its ok for me. My problem with this code is that just before selecting the Revit elements, I have to click somewhere in the Revit screen to select the UI, then I can select elements normally. I know this may be a little punctilious but, how could I save this one extra click and select Revit directly from my addin?
Regards.
Solved! Go to Solution.