- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to create a simple button that reloads the Keynotes file
Not sure how to code it as I have not coded in Revit. I did my First revit Plugin, but I am not sure how to call this function.
KeyBasedTreeEntryTable.Reload()
I take I need better understanding of the public result execute
thanks
using System;
using System.Collections.Generic;
using System.Linq;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Architecture;
using Autodesk.Revit.UI;
using Autodesk.Revit.UI.Selection;
using Autodesk.Revit.ApplicationServices;
using Autodesk.Revit.Attributes;
[TransactionAttribute(TransactionMode.Manual)]
[RegenerationAttribute(RegenerationOption.Manual)]
publicclassRevitKeynoteReload : IExternalCommand
{
publicResult Execute(
ExternalCommandData commandData,
refstring message,
ElementSet elements)
{
//Get application and document objects
UIApplication uiApp = commandData.Application;
Document doc = uiApp.ActiveUIDocument.Document;
KeyBasedTreeEntryTable.Reload()
returnResult.Succeeded;
}
}
BIMologist
- Nauman Mysorewala
Did you find this post
helpful? Feel free to like this post.
Did your question get successfully answered? Then click
on the ACCEPT SOLUTION button.
Solved! Go to Solution.