Is there a way to still navigate when the dialog is opened in a revit environment?(Winform C#)

Is there a way to still navigate when the dialog is opened in a revit environment?(Winform C#)

VanQuyet.Doan
Enthusiast Enthusiast
304 Views
3 Replies
Message 1 of 4

Is there a way to still navigate when the dialog is opened in a revit environment?(Winform C#)

VanQuyet.Doan
Enthusiast
Enthusiast

Navigate.PNG

0 Likes
305 Views
3 Replies
Replies (3)
Message 2 of 4

Omar_Amen
Advocate
Advocate

you can use modeless window instead of the dialog window,
use form1.show(); not form1.showdialog();

Message 3 of 4

VanQuyet.Doan
Enthusiast
Enthusiast


Thank you for your help but I still have to use form1.showdialog() because the form contains a lot of updated editing information

0 Likes
Message 4 of 4

ricaun
Advisor
Advisor

You need to use with IExternalEventHandler, this is the safe way to send commands to Revit when using Modeless Windows.

 

This is an old example by Jeremy: https://thebuildingcoder.typepad.com/files/external_events_knowledgebase.html

 

And my ExternalEventExample project: https://github.com/ricaun/RevitAddin.ExternalEventExample

 

See yaa

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils