Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
According to the Fusion 360 API documentation, the execute() method on a CommandDefinition accepts an input parameter.
How do I access the values in the command that's being called?
I have the following snippet here in one of my commands:
cmd = ui.commandDefinitions.itemById(CMD_ID)
x = adsk.core.NamedValues.create()
x.add('message', adsk.core.ValueInput.createByString('hey'))
cmd.execute(x)How do I access `message` and `hey` when my other command (with `CMD_ID`) is created?
Solved! Go to Solution.