Message 1 of 2
How to use PostableCommand.TypeProperties and BeforeExecuted
Not applicable
03-12-2021
04:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like my addin to listen for whether "Edit type" has been clicked. I can not get it work no matter what I try.
My code looks like the following:
RevitCommandId commandIdEditSymboltest = RevitCommandId.LookupPostableCommandId(PostableCommand.TypeProperties);
AddInCommandBinding commandBinding = application.CreateAddInCommandBinding(commandIdEditSymboltest);
commandBinding.BeforeExecuted += MyEvent;
I have checked that the command can have bindings and when i post the command the "Edit Type" dialog correctly opens.
Developer Advocacy and Support +