PDA

View Full Version : externalcommand



bernd.eichner
2007-09-18, 10:55 PM
Hi Forum
is there a possibility to start an externalcommand like the sample "RevitCommands" "loadfamily" in SDK from an external programm like MS-Excel or MS-Access? or is it necessary to start commands like this via revitmenu?
bernd

ijnicholas
2007-09-19, 02:42 PM
I am not sure about excel or access.
But you might be able to run the external commands using script programs like autohotkey.com. This program can open your Revit Arch application, and go to a particular menu item (or you can create a macro...)

bernd.eichner
2007-09-19, 05:59 PM
tks, nice program, but i think not my way.
i am looking for a possibility to start an externenal command (programmed in vb.net) via mss-access vba.
bernd

Danny Polkinhorn
2007-09-20, 08:18 PM
I think your best bet is to push the information from Revit out to Excel/Access. It's not possible to access the Revit model out-of-process (running within Access), so Revit needs to initiate the external command. As an in-process application (running within Revit), it will have much quicker access to the model information anyway.

Hope that helps,