« CreateLinkReference Sample Code | Main | Wishlist, Blogging, Smartgeometry, Dynamo and FormIt »

July 22, 2014

Comments

I'm pretty sure this is unsupported, but it should work:
- create one single ExternalCommand
In the Execute-Method:
- find the newest journal file (for me, journal files are located in %localappdata%\Autodesk\Revit\Autodesk Revit 2015\Journals)
- read the last few lines of the journal file and search for:

Jrn.RibbonEvent "Execute external command:CustomCtrl_%PANELNAME%BUTTONNAME:CLASSNAME"

- check "CLASSNAME" - should be the name of the external command class, if not, it is not the right line in the journal file
- use "BUTTONNAME" to identify which button the user clicked on
- execute something based on BUTTONNAME

It might be prudent to open the journal file in shared mode, and/or close it again as fast as possible so Revit can continue to write to the file.

The journal files are very powerful, I really like them.

Dear Alexander,

Sounds like a good and efficient approach to me.

Thank you very much for sharing this very cool idea.

Yes, journal files can help create some very powerful tools.

And, yes, it certainly is unsupported, cf. The Building Coder disclaimer:

http://thebuildingcoder.typepad.com/blog/about-the-author.html#4

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource