Instant Autodesk Revit: 2013 Customization With ...

: Add using Autodesk.Revit.DB; and using Autodesk.Revit.UI; at the top. ЁЯТ╗ The Boilerplate Code

[Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)] public class MyCommand : IExternalCommand { public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { // 1. Get the Document UIApplication uiApp = commandData.Application; Document doc = uiApp.ActiveUIDocument.Document; // 2. Start a Transaction using (Transaction trans = new Transaction(doc, "My Customization")) { trans.Start(); // Your logic goes here (e.g., changing a parameter) trans.Commit(); } return Result.Succeeded; } } Use code with caution. Copied to clipboard ЁЯУЭ Manifest Files (.addin) Instant Autodesk Revit 2013 Customization with ...

ЁЯТб : Use RevitLookup . It is an open-source tool that lets you "peek" under the hood of Revit elements to see their API properties in real-time. : Add using Autodesk

(Includes the crucial RevitAPI.dll and RevitAPIUI.dll ). : Add using Autodesk.Revit.DB