Data type when extracting from user parameters

Data type when extracting from user parameters

Anonymous
Not applicable
510 Views
1 Reply
Message 1 of 2

Data type when extracting from user parameters

Anonymous
Not applicable

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.

0 Likes
511 Views
1 Reply
Reply (1)