Macros dulicate in central file

Macros dulicate in central file

lehongduc09
Explorer Explorer
250 Views
1 Reply
Message 1 of 2

Macros dulicate in central file

lehongduc09
Explorer
Explorer

Could you help me please ?
I have problem with macros document in central file. It has duplicate too much, and I don't know why.
How can I remove it with API or different Macro.

 

lehongduc09_1-1671156305314.png

 

0 Likes
251 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

I just replied to your identical StackOverflow question:

  

https://stackoverflow.com/questions/74819447/macro-dulicate-in-macros-document

  

The Revit API provides a `MacroManager` class

  

https://www.revitapidocs.com/2023/49eb4b8a-ae13-95e7-fef4-11347bbb67d3.htm

  

with a `RemoveModule` method

  

https://www.revitapidocs.com/2023/c22a452e-578c-d468-e041-e70fd72cc78f.htm

  

You could use that to delete the entire module.

  

Or, to remove a single macro, you can use the `RemoveMacro` method:

  

https://www.revitapidocs.com/2023/66e8c11a-60fc-3046-de82-55020a2ceb3f.htm

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes