Basically I am writing a Windows Application (executable) and I'd like to access Revit's API. All the examples I have seen in the SDK make DLLs that are loaded through the ini file into Revit.
Thanks!
|
Basically I am writing a Windows Application (executable) and I'd like to access Revit's API. All the examples I have seen in the SDK make DLLs that are loaded through the ini file into Revit.
Thanks!
pretty sure it has to be inside revit. You could perhaps jig up some fancy revit api program that runs on a server with revit installed and running and communicates with other programs I guess? but that would be a lot of effort.
Revit calls the external dll because acts as a com server end calls in the initialisation event, so you need to register your dll in the .ini file . If you want to call revit api from your program(exe) you need to create a com server dll in your program that reference the revit api objects so you can manipulate them.
It can be done, however the biggest issue by far is Revit is not thread safe.
Guy
Hi
I'm trying to control Revit externally from VB.NET.
I'm having trouble opening Revit. Is it possible to use the create object or get object functions within VB.NET?
It looks like the way forward is to create a COM server.. Has anyone been successful in doing this, if so does anyone have any example code?
Thanks
Tom