View Full Version : Exchange data through API
nithu_ramkimala
2008-08-14, 04:46 PM
I am new to Revit.I hope someone can help me with this issue.
Basically I want to exchange data between a .NET application running on one server and Revit running on another server. Is it possible to handle the communication between an external application and Revit using APIs?
I want to update element properties of a Model using my .NET application.
sfaust
2008-08-14, 06:35 PM
I'm not an expert on the API by any means, but I'm pretty sure you can't drive data into Revit externally. As far as I'm aware, all API commands have to be started in Revit. You could have an external .NET app that edits data, but you would have to export the Revit data with an API command from Revit, then edit it externally, and re-import with another API command from within Revit.
Someone please correct me if I'm wrong, but I believe this is the case currently.
mmason.65315
2008-08-15, 01:09 PM
I'd say that there are mechanisms to do this kind of thing - but never particularly elegantly.
If Revit was going to be dedicated on the server, I've always figured that you could write a Revit Application which could listen for instructions and then do the work (watching a database, a folder, or actually accepting communications via remoting/wcf/etc).
Good Luck,
Matt
nithu_ramkimala
2008-08-15, 02:49 PM
Thank you for the reply.
This is my scenario:
There is an Integration process that needs to exchange some data from the .NET application to Revit. I am not quite sure if there are any APIs in Revit that handles Inter process communication. I am currently doing research on Revit 2009 API set.
mmason.65315
2008-08-16, 04:03 PM
There are no supported APIs to communicate with Revit via interprocess communication.
Sorry,
-matt
nithu_ramkimala
2008-08-19, 05:28 PM
I think I am going to use the Toolbar command to Invoke the whole integration process and update the element properties.
Is it possible to change the color of elements based on attribute values?
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.