
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In reviewing the SDK documentation and various web-based AutoDesk help resources, I have yet to find a resolution to this issue. The sample Revit project (located ..\Revit 2016 SDK\Macro Samples\Revit_Macro_Samples.rvt) appears to be a Revit 2013 project. After opening and upgrading the document for use in Revit 2016, I attempted to run a macro. The macro manager (screenshot attached [macro-manager.png]) shows that there are problems with the macros. Upon editing and attempting to build, debug output indicates many critical errors (log attached [build.txt]), which appear to result from various class methods that have been deprecated somewhere between Revit 2013 & Revit 2016.
Is there a functional macro sample Revit project available somewhere? Am I approaching this incorrectly, somehow? The AutoDesk help makes multiple mentions of the necessity to upgrade, and sometimes manually edit the macros so that they will function. However, implementing the deprecated methods according to the 2016 API would require significant changes, time, and effort.
Is it better to ignore this sample document and use some other web resources for learning the foundations of Revit macro creation? Are there good resources for Python-based macro development? It appears that newly created Python macros are automagically populated with sample macros that can be successfully built. However, creation of new C# and VB.Net do NOT offer similar buildable samples.
I'm incredibly confused by the SDK and various documentation inconsistencies, and various web searches do not offer any solutions. Thanks in advance for any insights.
Solved! Go to Solution.