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: 

Revit 2015 macro problem

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
470 Views, 3 Replies

Revit 2015 macro problem

Hello,

 

I am trying to create a macro for my friend. However, we could not figure out why revit does not allow us to create macro in macro management menu. It can create a module, but when it comes to macro there is no luck. Here is some information what we have.

 

Revit version: 2015 - Student edition
OS: Windows 10

 

Macro menuMacro menu

In order to find a solution about this, which steps should i follow ?

 

Thanks.

 

3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

 

By clicking on macro its just create for you a function in side your class , so click edit, and  just put this function in side the class

 

public void Main()
{
// Your code here			
}

then rebuild your code.

Message 3 of 4
Anonymous
in reply to: Anonymous

That is the problem. Even i could code and build the macro, revit does not run it. No matter what it just says: "Loading the macro failed. Rebuilding the module may resolve the issue."

Message 4 of 4
Anonymous
in reply to: Anonymous

ok  try to use application instead of macro

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

Post to forums  

Forma Design Contest


Rail Community