Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Launching macros from external application

1 REPLY 1
Reply
Message 1 of 2
mandonate
402 Views, 1 Reply

Launching macros from external application

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

1 REPLY 1
Message 2 of 2
jeremytammik
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
--
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community