Get Command ID from Journal

Get Command ID from Journal

Anonymous
Not applicable
1,238 Views
2 Replies
Message 1 of 3

Get Command ID from Journal

Anonymous
Not applicable

I give up.  I've spent a good amount of time on Google and maybe it's just because it's Friday afternoon, but I cannot find my answer.

 

I am trying to play with 2013's ability to replace built-in commands.  I see that I can look through the journal file to get commands.  I also found a nice Excel sheet that listed a lot of the command IDs already.  The Command ID I am looking for does not seem to be in the Excel file, and looking through the Journal file gives me no help in figuring out what the command ID is.

 

I am specifically flooking for the Add a Leader under Symbol command, but would love to know how to determine it myself.

0 Likes
Accepted solutions (1)
1,239 Views
2 Replies
Replies (2)
Message 2 of 3

saikat
Autodesk
Autodesk
Accepted solution

I investigated a bit into this and found the following entry in the Journal file for the Add A Symbol button click:

 

 Jrn.PushButton "ToolBar , {}{} , Dialog_Family_FaminstLeaderDlgbar" _
          , "Add a Leader, Control_Family_FaminstAddleader"

 

From what it seems, many Revit actions are not performed using commands - actions can be taken directly in controls which seems to be happening here. So it seems we cannot get/use the CommandId to replace this functionality.

 

If you need a workaround, I am thinking if you can use the IUpdater mechanism to track for newly added symbol and take some steps as appropriate.

 

cheers

 



Saikat Bhattacharya
Senior Manager - Technology Consulting
Message 3 of 3

Anonymous
Not applicable

I had found that line in the Journal as well, I just assumed that I didn't know how to translate it.  Sadly, not the case!

I will do some reading into the IUpdater.  Haven't used that yet.  Thanks!

0 Likes