Units and Control Boxes

Units and Control Boxes - How to set units for output variables of control boxes? - Сообщения

#1 Опубликовано: 12.02.2018 13:55:07
João Felipe Seráfico Melo

João Felipe Seráfico Melo

7 сообщений из 62 понравились пользователям.

Группа: User

Hello!

If I have a slider or checkbox, is there a way to define the units for my output variable directly on the settings?

I can handle units outside those just fine, but I'd really like to get my variables with their units right from the boxes.

Sorry if it's a stupid question.

Thanks in advance!
#2 Опубликовано: 12.02.2018 15:02:36
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: Moderator

hello [userlink]JoãoBR[/userlink],

is not possible, neither for visualization inside the control itself.
One day, maybe (need to figure out something to be applied in generic cases, mixed units in the input matrix)

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Опубликовано: 12.02.2018 16:21:41
João Felipe Seráfico Melo

João Felipe Seráfico Melo

7 сообщений из 62 понравились пользователям.

Группа: User

Thank you, Davide. It's really a pitty.

Let me ask you this, then:

I want a variable like "fck" in MPa, and build a slider to set something like "Set_fck", how could I make "fck" get "Set_fck" numerical value but keeping it in MPa?
#4 Опубликовано: 12.02.2018 16:48:19
Arie

Arie

93 сообщений из 285 понравились пользователям.

Группа: User

Is this what you're asking for?

fck.sm (2 КиБ) скачан 81 раз(а).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
2 пользователям понравился этот пост
Andrey Ivashov 12.02.2018 23:32:00, Davide Carpi 13.02.2018 04:41:00
#5 Опубликовано: 12.02.2018 19:48:20
João Felipe Seráfico Melo

João Felipe Seráfico Melo

7 сообщений из 62 понравились пользователям.

Группа: User

Yes, alyles, that's it, but I can't do it for some reason.

I've tried typing the apostrophe and using the CRTL+W shortcut, but the unit selection option just doesn't appear.

These methods work just fine when I create a new variable.
#6 Опубликовано: 12.02.2018 22:52:06
João Felipe Seráfico Melo

João Felipe Seráfico Melo

7 сообщений из 62 понравились пользователям.

Группа: User

Done it! CTRL+W and using the apostrophe did not work, but *MPa+TAB did the job.

Thank you all
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений