Revit API

New Member
Posts: 1
Registered: ‎06-04-2012
Message 1 of 2 (206 Views)

Launching macros from external application

206 Views, 1 Replies
06-04-2012 12:32 PM

Can anybody help? 

I need to launch a Revit template project from a server and access a macro that I'm constructing inside that project.  My problem is not launching the project file...I'm having trouble accessing the macro module files inside of the project.  I have the macro .dll imported into my VB.NET project, but can't seem to find a constructor to launch the macro once the project is open.

Does this make any sense?  Maybe what I'm trying to do is easy...I dunno.  But I notice that there is NO documentation on the Revit VSTA classes.


Thanks in advance for all of your time!



ADN Support Specialist
Posts: 436
Registered: ‎08-20-2007
Message 2 of 2 (169 Views)

Re: Launching macros from external application

06-19-2012 02:44 AM in reply to: mandonate

Dear mandonate,


You cannot simply launch your own macro in Revit. Your application never drives rRevit, Revit drives it.


What you can do, however, it to set up a system of event handlers so that your code executes automatically on document open.


Best regards,

Jeremy Tammik
Autodesk Developer Network --
The Building Coder --

Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community

Revit Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Revit helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Revit