Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline joaobr  
#1 Posted : 12 February 2018 19:55:07(UTC)
joaobr


Rank: Advanced Member

Groups: Registered
Joined: 12/02/2018(UTC)
Posts: 62
Man
Brazil
Location: Belém

Was thanked: 7 time(s) in 6 post(s)
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!

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 12 February 2018 21:02:36(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
hello JoãoBR,

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) Good

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline joaobr  
#3 Posted : 12 February 2018 22:21:41(UTC)
joaobr


Rank: Advanced Member

Groups: Registered
Joined: 12/02/2018(UTC)
Posts: 62
Man
Brazil
Location: Belém

Was thanked: 7 time(s) in 6 post(s)
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?
Offline alyles  
#4 Posted : 12 February 2018 22:48:19(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 276
United States

Was thanked: 91 time(s) in 57 post(s)
Is this what you're asking for?

fck.sm (3kb) downloaded 64 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
thanks 2 users thanked alyles for this useful post.
on 13/02/2018(UTC),  on 13/02/2018(UTC)
Offline joaobr  
#5 Posted : 13 February 2018 01:48:20(UTC)
joaobr


Rank: Advanced Member

Groups: Registered
Joined: 12/02/2018(UTC)
Posts: 62
Man
Brazil
Location: Belém

Was thanked: 7 time(s) in 6 post(s)
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.
Offline joaobr  
#6 Posted : 13 February 2018 04:52:06(UTC)
joaobr


Rank: Advanced Member

Groups: Registered
Joined: 12/02/2018(UTC)
Posts: 62
Man
Brazil
Location: Belém

Was thanked: 7 time(s) in 6 post(s)
Done it! CTRL+W and using the apostrophe did not work, but *MPa+TAB did the job.

Thank you all
Users browsing this topic
Guest
Similar Topics
Units and Control Boxes - How to set units for output variables of control boxes? (Questions)
by Uyen Dong 19/06/2019 11:02:43(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.