Parameter Type in Designer Mode Answered

Hi there,

I was trying to define a parameter, 'l_ele', to represent the length of an element. However, once I entered 'l' into the 'Name' box under 'Define Parameter' section, the parameter type will automatically changed to 'Integer'. And I cannot change it back to 'Real'. I tried to enter '1' into the 'Value' box and added it to the 'Parameter Table'. However, in the 'Parameter Table' section, the Type for 'l_ele' is shown as 'Real'. And I can then change it's value to 0.3e-3. But, once I tried to estimate the project, it would fail. And in the '.prnt' file, 'l_ele' is shown as 0, with a warning message said 'Assigning Real value to Integer variable l_ele'.

The same situation seems to happen to any parameters start with 'i', 'j', 'k', and 'l'. Does this mean in Designer Mode, no parameter should have name start with those 4 letters?

Regards

Li

1 comment

  • Hello Xiaotong,

    In OnScale, if you have a variable name starting with letters from 'i' to 'n' then they can only be assigned integer values.

    For real values the variable names need to start from 'a' to 'h' or 'o' to 'z'.

    Please let me know if you have any other questions.

    Thanks
    Robin

    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post