disable or overwrite "Editing Request" for worksharing

disable or overwrite "Editing Request" for worksharing

Ning_Zhou
Advocate Advocate
1,625 Views
4 Replies
Message 1 of 5

disable or overwrite "Editing Request" for worksharing

Ning_Zhou
Advocate
Advocate
0 Likes
Accepted solutions (1)
1,626 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Ning,

 

Thank you for your succinct query 🙂

 

Yes, you can easily redefine many built-in Revit commands and replace them by your own implementation, which could, for example, just display a message informing the user that the command is not available:

 

http://thebuildingcoder.typepad.com/blog/2012/06/replacing-built-in-commands-and-their-ids.html

 

Look at the DisableCommand SDK sample, which disables a command by replacing its implementation with a simple popup message.

 

I hope this helps.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 5

Ning_Zhou
Advocate
Advocate

thanks Jeremy for your drop-by here, yes, i did find that command id from Victor's list via your link, i didn't save it last time so a bit trouble to find right command id.

0 Likes
Message 4 of 5

jeremytammik
Autodesk
Autodesk

Dear Ning,

 

Thank you for your appreciation.

 

Finding the command id is trivial: just run the command you are afterm terminate Revit, and look at the last entries in the journal file.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 5 of 5

Ning_Zhou
Advocate
Advocate

great tip! thanks Jeremy

0 Likes