Execute command in Group Environment.

Execute command in Group Environment.

ngvanphong2012
Explorer Explorer
238 Views
1 Reply
Message 1 of 2

Execute command in Group Environment.

ngvanphong2012
Explorer
Explorer

I want to run command button in Group Edit.

Is there any way to do it?

Thanks you very much!

GroupImage.png

 

 

0 Likes
Accepted solutions (1)
239 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni
Accepted solution

No, probably not. Revit is single threaded, and you can only execute Revit API calls in a valid Revit API context, and such a context is only provided by Revit when it calls your add-in event handlers. Everything you do in the Revit API happens in an event handler. The most well-known one is IExternalCommand.Execute.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open