Message 1 of 2
Data type when extracting from user parameters

Not applicable
02-10-2020
03:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm trying to automate volume calculation of a composite box with varying layups using API scripts. I've based my code on that suggested by Brian Elkins (https://forums.autodesk.com/t5/fusion-360-api-and-scripts/script-to-change-parameter-values/td-p/590...) but tried extracting the value rather than the expression, that is changed it to:
var_name = userParams.iteByName('Param_name).value
However, when I run this it takes a decimal point off my value, i.e 100 becomes 10.0. I've tried converting it from float to integer but that didn't work.
Does anyone have any suggestions please? Thanks for your time.