Run Dynamo Player via PostCommand?

Run Dynamo Player via PostCommand?

rvtquestions
Advocate Advocate
1,044 Views
4 Replies
Message 1 of 5

Run Dynamo Player via PostCommand?

rvtquestions
Advocate
Advocate

As part of a larger user friendly development, I am looking to add an action that will simply bring up the Dynamo Player (if it can go as far as running a specific script, great! If not just looking to bring up the dialog box for now). I have successfully ran other add-in commands via PostCommand using a text syntax retrieved from a Revit Journal file. In example: 

 

string id = "CustomCtrl_%CustomCtrl_%Tab%Text%Text"; 
RevitCommandId commandId = RevitCommandId.LookupCommandId(id);
uiApp.PostCommand(commandId);
//"CustomCtrl_%CustomCtrl_%Manage%Visual Programming%Dynamo Player"; Does Not Work!

 

 

However, I can't seem to find the right syntax to launch Dynamo Player. There doesn't seem to be text with the same format when launching Dynamo Player, rather I've seen lines such as: 

Jrn.Command "Ribbon" , "Launch Dynamo Playlist , ID_PLAYLIST_DYNAMO"

My question is if it is possible to launch Dynamo Player via PostCommand and if so, what is the right syntax I should direct the command to? Thank you.

0 Likes
1,045 Views
4 Replies
Replies (4)
Message 2 of 5

Jaime_Alonso
Enthusiast
Enthusiast

No idea. I am also interested. Could anyone help?

0 Likes
Message 3 of 5

RPTHOMAS108
Mentor
Mentor

For Revit 2021

 

RevitCommandId commandId = LookupPostableCommandId(PostableCommand.Playlist); 
uiApp.PostCommand(commandId); 

 

 

In 2022 I believe it is PostableCommand.DynamoPlayer.

Message 4 of 5

Jaime_Alonso
Enthusiast
Enthusiast

Awesome! Thanks @RPTHOMAS108 

0 Likes
Message 5 of 5

K.Calero_Arup
Contributor
Contributor

I'm not able to find the 'browse to file' option in dynamo player. Is that available somewhere?  🤔Thanks

0 Likes