Dear Erik,
Thank you very much!
What forum post do you mean?
I cannot rename or change the title or description of threads here in the Revit API forum, if that is what you mean.
You must have clicked something unintentionally when you initially started this thread.
That happened to me once too...
What would you like the description to be, please?
Maybe that will help understand your issue better...
Just for the sake of completeness and to enable search engines to find this thread more easily, here is the macro source code you provided:
public void RegisterAddinCommandBinding() { // I Have found two different command ids that look // promising. // This one: IDR_SKETCH_OBJECTS_REVISION_CLOUD does // not raise any events that I can see. // It does not return null though. //var revitCommandId = RevitCommandId.LookupCommandId( // "IDR_SKETCH_OBJECTS_REVISION_CLOUD"); // This will raise the CanExecute event. // But that is it. It also crashes Revit if you // debug it in Visual Studio after the event // handler returns. var revitCommandId = RevitCommandId.LookupCommandId( "Dialog_Essentials_SketchEdit:Control_Essentials_EditSketch"); var binding = this.Application.CreateAddInCommandBinding( revitCommandId); binding.BeforeExecuted+=Binding_BeforeExecuted; binding.Executed+=Binding_Executed; binding.CanExecute+= Binding_CanExecute; } private void Binding_Executed( object sender, Autodesk.Revit.UI.Events.ExecutedEventArgs e) { } private void Binding_BeforeExecuted( object sender, Autodesk.Revit.UI.Events.BeforeExecutedEventArgs e) { } private void Binding_CanExecute( object sender, Autodesk.Revit.UI.Events.CanExecuteEventArgs e) { }
I logged the issue REVIT-99920 [CreateAddInCommandBinding with SketchEdit crashes Revit] with our development team for this on your behalf as it requires further exploration and possibly a modification to our software. Please make a note of this number for future reference.
You are welcome to request an update on the status of this issue or to provide additional information on it at any time quoting this change request number.
This issue is important to me. What can I do to help?
This issue needs to be assessed by our engineering team, and prioritised against all of the other outstanding change requests. Any information that you can provide to influence this assessment will help. Please provide the following where possible:
- Impact on your application and/or your development.
- The number of users affected.
- The potential revenue impact to you.
- The potential revenue impact to Autodesk.
- Realistic timescale over which a fix would help you.
- In the case of a request for a new feature or a feature enhancement, please also provide detailed Use cases for the workflows that this change would address.
This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact items. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.
Cheers,
Jeremy