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?
I’ve seen this example, therefore I know it possible to do. I’m trying to run a add-in which I have built using the ClientId. I’ve done it in c# using Jeremy’s example. The Dynamo Python gives me a str error. It seems the input type isn’t matching.
As it says in the error message: LookupPostableCommandId expects a PostableCommand, not a string.
The C# example you mentioned makes use of the LookupCommandId method - and that one does expect a string.