- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there!
I am new to use Fusion360 API although I have used Fusion360 as my major modeling tools for a while. And I feel amazing about Fusion360 API for what they can do. I have never imagine modeling by codes. However, Fusion360 API is not that easy to learn because it is not widespread to find solutions to debug.
So I have to write this post to asking help. Sorry for bothering you.
Here is my problem:
I just want to create a dialog to get some user input so I using `CommandInputs` and `addValueInput` method to get user input. That seems easy, right? But here is something I got confused.
My python code part is here:
inputs = adsk.core.CommandInputs
length_input = inputs.addValueInput('length_input', 'Length(cm)', 'cm', default_length)
But when I run the code and it comes out with `TypeError: addValueInput() missing 1 required positional argument: 'initialValue'`
I did put `default_length` as the `initialValue` and its type is `ValueInput`. I don't know what I did wrong and I could find out the result using google. This have stuck me several days. 😥
(I guess this is a foolish problem but I did cost a lot of time here. This cause me EMO 😥)
Best Wishes!
Solved! Go to Solution.