Is it possible to access Revit API from exe application

Is it possible to access Revit API from exe application

Anonymous
Not applicable
751 Views
3 Replies
Message 1 of 4

Is it possible to access Revit API from exe application

Anonymous
Not applicable

Hi,

 

From the 'Getting Started With Revit API.doc' guide it looks like Revit Automation is only possible through DLL applications.

 

We need to develop application using C# and Autodesk Revit MEP 2012 where we perform few operations on each revit MEP project file. This process needs Revit application to be started from the EXE application and then using Revit API open the project file and then perform the required operations. These operation involves modifying the contents of the file and also generate the additional sheets.

 

Is it possible to access the Revit Application object in EXE application. If no is there any workaround for this.

 

It will be really helpful if some one can provide with some sample code for the same.

 

Thanks in advance.

 

Best Regards,

Ganesh

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

phildebrandt
Enthusiast
Enthusiast

I'm pretty sure this is not possible. The purpose of the API is to create apps that will enhance Revit, not replace it. You can make a macro to do all the things you suggested there but it would have to run from inside Revit.

0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi phildebrandt,

 

Thank you very much for your inputs.

 

But for me this is the basic feature of automation and almost all the Autodesk CAD applications support out of process automation not sure why Revit do not have this capabilities. 😞

0 Likes
Message 4 of 4

Anonymous
Not applicable

Have a look at this blog post to see how this can be done in Revit 2012:

 

Modeless Loose Connectors
http://thebuildingcoder.typepad.com/blog/2010/07/modeless-loose-connectors.html

0 Likes