Message 1 of 4
Macro into a NewAddInId

Not applicable
08-08-2019
05:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to turn my macro into an "External Tools" Addin button but while adding the code to implement the IExternalCommand and I am doing something wrong. Below colored red are my errors in visual studio. Any help would be greatly appreciated.
namespace AlignViews { [Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)] public partial class ThisDocument : IExternalCommand { static AddInId appId = new AddInId(new System.Guid("7BD4FE06-702E-4A54-88B0-A70EFD65F60B") public void Result Execute(ExternalCommandData commandData, ref string message, ElementSet elementSet) { // Get the current document Document curDoc = this.Application.ActiveUIDocument.Document;