Revit API

Revit API

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

Launching macros from external application

210 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!

 

N

ADN Support Specialist
jeremytammik
Posts: 663
Registered: ‎08-20-2007
Message 2 of 2 (173 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
--
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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.