How to use PostableCommand.TypeProperties and BeforeExecuted

How to use PostableCommand.TypeProperties and BeforeExecuted

Anonymous
Not applicable
536 Views
1 Reply
Message 1 of 2

How to use PostableCommand.TypeProperties and BeforeExecuted

Anonymous
Not applicable

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.




0 Likes
537 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

Please share a minimal reproducible case that we can take a look at :

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

 

If nothing else helps, we can use that to ask the development team to take a look.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes