Postable Commands

Hi All,

I decided to start a new topic from the link as it was solved. @Jean-Marc’s very helpful solution (here: Opening Dynamo Player) got me thinking.

How do you run a postable command on a specific element (i.e. run a command with a model group selected)? I’m currently trying to update an old script which identifies model groups with excluded members, and make it restore excluded group members on specific model groups. There’s potentially a world of possibilities with the introduction of postable commands, but I’m stuck…

I initially used Jeremy Tammik’s list of postable commands (https://jeremytammik.github.io/tbc/a/zip/CommandIds.txt) but found that using the latest Revit journal file was most effective in finding the command info!

The restore excluded group members command is: ID_RESTORE_ALL_EXCLUDED

Thanks

a guess, get element selected physically in revit


then launch the command?
1 Like
from pyrevit import revit, DB
selection = revit.get_selection()
1 Like

Thanks Jean-Marc. The solution works, but unfortunately ID_RESTORE_ALL_EXCLUDED isn’t a postable command:

Good to know for other tools though