ExternalEvent in window form

ExternalEvent in window form

peerawit.ru
Enthusiast Enthusiast
507 Views
3 Replies
Message 1 of 4

ExternalEvent in window form

peerawit.ru
Enthusiast
Enthusiast

Hi everyone 

I'm learning to create Revit add-in now i stuck in external event process.

I want to select element in Revit via window form for create dimension.

peerawitru_0-1683096022707.png

I prepare all data in window form.

How to send data back to create under transaction in external event?

 

Accepted solutions (1)
508 Views
3 Replies
Replies (3)
Message 2 of 4

Ryan_Daley
Participant
Participant

I also find it difficult to get a return value other than result from Revit IExternalEventHandler or IExternalCommand. 
Although I can't figure out how to return a value using only the native Revit API, I found this Revit.Async library to be useful for returning values from my Revit External Events.    

Message 3 of 4

moturi.magati.george
Autodesk
Autodesk
Accepted solution

Hi @peerawit.ru,

 

You can take a look at the forum questions that might give you an insight into what you are looking for:

https://forums.autodesk.com/t5/revit-api-forum/cant-understand-how-external-event-works/td-p/9449829

https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-obtain-objects-from-event-handlers-...

 

  Moturi George,     Developer Advocacy and Support,  ADN Open
Message 4 of 4

peerawit.ru
Enthusiast
Enthusiast

Thank you very much 🙏