I have been trying to run a PostCommand using Dynamo Python similar to running a post command in C#
C# Sample of running a add-in using the ClientId.
string ClientId= "64b3d907-37cf-4cab-8bbc-3de9b66a3efa";
RevitCommandId id_addin = RevitCommandId.LookupCommandId(ClientId);
uiapp.PostCommand( id_addin );
Here I have written it using Dynamo Python, but get an error “expected PostableCommand, got str”
ClientId = "64b3d907-37cf-4cab-8bbc-3de9b66a3efa"
# Get RevitCommandId of PostableCommand
id_addin = RevitCommandId.LookupPostableCommandId(ClientId)
# Run PostableCommand
uiapp.PostCommand(id_addin)
Can this be done and if so what is wrong with the code above?