Revit 2015 macro problem

Revit 2015 macro problem

Anonymous
Not applicable
639 Views
3 Replies
Message 1 of 4

Revit 2015 macro problem

Anonymous
Not applicable

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.

 

0 Likes
640 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

 

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.

0 Likes
Message 3 of 4

Anonymous
Not applicable

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."

0 Likes
Message 4 of 4

Anonymous
Not applicable

ok  try to use application instead of macro

0 Likes