Hello,
I am using Revit 2021 but I am failing to create any Macros.
All my macro settings are Enabled.
Revit allows me to create a Module but once Module is created it doesn't allow Macros to be selected or created, the button is greyed out.
I get a sign next to the module name (As soon as it is created) and when I check the help page, it means:
"Loading the macro failed. Rebuilding the module may resolve this issue." At that point I didn't even write a single code but I try to rebuilt but it made no difference.
I tried to delete the Macros folder under C:\ProgramData\Autodesk\Revit directory and restarted my computer and Revit multiple times but it didn't work.
Can you please help me on how to create a macro under a module on Revit 2021?
Thanks in advance.
Hi @Anonymous ,
I think you opened Revit by launching the debugger (DEBUG-->Start External Program) and you are trying to create the macro.
In this case, the Revit is in debugging mode so you cannot create/build the solution. (i.e)You cannot build the macro solution.
I think that's why you are getting the error.
try to open Revit software manually (without visual studio debugger) and try to create the macro.
I assume you have restarted your computer and Revit?
sometimes the macros have issues if the editor is open in more than one version of Revit.
Hi @Anonymous ,
Which version of Revit are you using?
Are you using the student version?
Please check these below links
https://forums.autodesk.com/t5/revit-api-forum/revit-2015-macro-problem/td-p/7898619
Yes, you have to create a module, and then a macro. You can have multiple macros within a module.
I just noticed the original poster was trying to create a document level macro (the macro resides in the Revit project file - Project2 in the original post.)
Most macros are application level macros, so you probably want to select that tab.
Can't find what you're looking for? Ask the community or share your knowledge.