Launching macros from external application

Launching macros from external application

Anonymous
Not applicable
545 Views
1 Reply
Message 1 of 2

Launching macros from external application

Anonymous
Not applicable

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!

 

N

0 Likes
546 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

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
--
Jeremy Tammik
Autodesk Developer Network -- http://www.autodesk.com/joinadn
The Building Coder -- http://thebuildingcoder.typepad.com




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

0 Likes