Results 1 to 6 of 6

Thread: can I connect to Revit 2009 from an external executable program?

  1. #1
    Active Member
    Join Date
    2008-02
    Location
    New York
    Posts
    81
    Login to Give a bone
    0

    Default can I connect to Revit 2009 from an external executable program?

    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!

  2. #2
    I could stop if I wanted to
    Join Date
    2007-02
    Location
    Alexandra, New Zealand
    Posts
    237
    Login to Give a bone
    0

    Default Re: can I connect to Revit 2009 from an external executable program?

    Quote Originally Posted by mpruna View Post
    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!
    I don't think you can at the moment. Someone might correct me here though.

  3. #3
    100 Club
    Join Date
    2007-10
    Location
    Brisbane
    Posts
    138
    Login to Give a bone
    0

    Default Re: can I connect to Revit 2009 from an external executable program?

    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.

  4. #4
    Member
    Join Date
    2009-03
    Posts
    2
    Login to Give a bone
    0

    Default Re: can I connect to Revit 2009 from an external executable program?

    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.

  5. #5
    AUGI Addict
    Join Date
    2003-11
    Location
    New Zealand
    Posts
    1,116
    Login to Give a bone
    0

    Default Re: can I connect to Revit 2009 from an external executable program?

    It can be done, however the biggest issue by far is Revit is not thread safe.

    Guy

  6. #6
    Member
    Join Date
    2009-07
    Posts
    3
    Login to Give a bone
    0

    Question Re: can I connect to Revit 2009 from an external executable program?

    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

Similar Threads

  1. run external executable file in autocad wit command startapp
    By hemanthaklp989325 in forum AutoLISP
    Replies: 4
    Last Post: 2012-08-28, 08:33 AM
  2. LT2009 executable
    By fishervb in forum AutoCAD LT - General
    Replies: 1
    Last Post: 2009-12-16, 02:15 PM
  3. Start a journal file via an external program?
    By sfaust in forum Revit - API
    Replies: 2
    Last Post: 2009-06-10, 03:52 PM
  4. Editing Styles Via an External Program?
    By ewhite in forum AutoCAD Civil 3D - General
    Replies: 1
    Last Post: 2008-05-28, 09:55 PM
  5. Accessing Revit from aan external program...
    By jose.campero in forum Revit - API
    Replies: 0
    Last Post: 2005-12-05, 09:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •