Message 1 of 3
Revit API 2022 PostableCommand CopyMonitorSelectLink
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I noticed there is a Copy Monitor related command in the 2022 API version which I'm not sure how to use.
I want to automate the Copy-Monitor process for levels and grids which we are doing manually for each new
Revit project file. I have the below code where I get the RevitCommandId but I can't figure out how to proceed...
I don't have much experience with postable commands, any help would be very appreciated !
namespace AdvTools.Commands
{
[Transaction(TransactionMode.Manual)]
public class CopyMonitor : IExternalCommand
{
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
ExternalCommandData CommandData = commandData;
UIApplication Uiapp = CommandData.Application;
Application App = Uiapp.Application;
UIDocument Uidoc = CommandData.Application.ActiveUIDocument;
Document document = Uidoc.Document;
RevitCommandId id = RevitCommandId.LookupPostableCommandId(PostableCommand.CopyMonitorSelectLink);
return Result.Succeeded;
}
}
}
Developer Advocacy and Support +