Message 1 of 2
PostableCommand Issues

Not applicable
11-11-2014
09:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
A number of PostableCommands do not seem to be working properly. I'm using Revit 2014 UR3. An example macro:
public void PostMyOwnCommand() { Application app = this.Application; UIApplication uiApp = new UIApplication(app); uiApp.PostCommand(RevitCommandId.LookupPostableCommandId(PostableCommand.PlanRegion)); }
When running this in a plan, the ribbon flashes and then nothing happens. Also PostableCommand.TypeProperties does nothing as well even when an element such as a Wall is selected.
The following don't work properly either, although they work when placing multiple instances but if you try to place one instance it won't stay:
PostableCommand.Area PostableCommand.BuildingElevation PostableCommand.ColorFillLegend
I have not tested in Revit 2015 yet. Thanks.