Opening and manipulating Revit files in an external .NET application

Opening and manipulating Revit files in an external .NET application

Anonymous
Not applicable
2,514 Views
9 Replies
Message 1 of 10

Opening and manipulating Revit files in an external .NET application

Anonymous
Not applicable

Hi everyone,

 

My question concerns using the Revit API to open .rvt files from outside of Revit. 

 

After reading through much of the documentation and examples, I see that I can do much of what I need, but only through ExternalCommand and ExternalApplication interfaces, both of which involve running Revit directly.

 

Is it possible to make a Windows Forms application to open a .rvt file, do some work, and exit, without creating external commands or ribbon buttons (a plug-in basically)?  For example, I would like to open a .rvt file, retrieve all element names in some model, and write them to another file.  I've managed to do this using the IExternalCommand Interface, but I don't want to have to open revit or create new ribbon buttons to do so.  Is this possible?  Or do all functionalities have to be within some type of Add-in?

 

Any information or advice is greatly appreciated. Thanks!

 

-- Joseph

0 Likes
Accepted solutions (2)
2,515 Views
9 Replies
Replies (9)
Message 2 of 10

ollikat
Collaborator
Collaborator
Accepted solution

Maybe someone from AD can give you more detailed answer but basically that is NOT possible.

Message 3 of 10

Anonymous
Not applicable

Hi all,

 

Same as Joseph, I am interested in whether we can open revit file without opening the Revit.

 

Is there any updated information now?

 

Thanks,

John

0 Likes
Message 4 of 10

mikako_harada
Community Manager
Community Manager
Accepted solution

Unfortunately, it is not supported, yet. 


Mikako Harada
Developer Technical Services
0 Likes
Message 5 of 10

Anonymous
Not applicable

Hi Mikako,

 

I too am interested in opening revit files externally. You mentioned it was not possible "yet", and this was over a year ago, can I ask if it is possible now?

 

I can't find it anywhere in the documentation so I assume not, if this is the case can you confirm if this is in your development roadmap?

 

thanks,

 

Rob

0 Likes
Message 6 of 10

mikako_harada
Community Manager
Community Manager

Hi Rob, 

 

Sorry, not yet.  Still stays as highly demanded feature.  I'm quite sure that if it becomes available, it will be a big topic on Jeremy's blog 🙂  So please keep eyes on his blog.  

 

Although we cannot really support such a usage, some "desperate" developer seems to have tried using a joural file conjunction with idling event to runa a command, etc. Depending on what you want to do, you *may* be able to start Revit this way.  Again, I cannot guaranty such a usage.  But you may try with your risk.  

 

Sorry for not being much help on this.   


Mikako Harada
Developer Technical Services
Message 7 of 10

Anonymous
Not applicable
Thanks for the update Mikako,

I will keep an eye on the blog.
0 Likes
Message 8 of 10

Anonymous
Not applicable

Hi,

 

Any updates on this feature? 

 

In one of requirement, I need to generate this files through some automated process so that users can use those file further for modifications, but they get the basic information in the file. 

 

Please let me know if this is possible or is there a workaround. 

 

thanks,

Kapil

0 Likes
Message 9 of 10

mikako_harada
Community Manager
Community Manager

Hi Kapil, 

 

Sorry, no.  But technology has evolved since the time we discussed this.  We are working on cloud version.  We are expecting to have Design Automation API for Revit. Using this, you can run Revit from your application on the cloud. You can find more info. from the following AU and DevDays Online presentations: 

SD125457: Design Automation: Building Web Applications with Revit Data on Forge

http://au.autodesk.com/au-online/classes-on-demand/class-catalog/classes/year-2017/revit/sd125457

SD124720: The New and Expanded Forge Design Automation API

http://au.autodesk.com/au-online/classes-on-demand/class-catalog/classes/year-2017/autocad/sd124720#...

 

DevDays Online 2017: Revit API updates 

https://www.youtube.com/watch?v=w1WskGTzX3s

 

Timing wise, personally I'm holding my breath, while eagerly awaiting.   

 

More info. in the video if you want to be a part of private beta.  

 

 


Mikako Harada
Developer Technical Services
0 Likes
Message 10 of 10

BimalGeorge
Enthusiast
Enthusiast

Is there any update on this.

 

We have to read the elements and spaces from a Revit Model using API from an external .Net application.

 

Thanks

Bimal George

0 Likes