Transform units

Transform units - Messages

#1 Posted: 7/14/2022 3:22:17 PM
Prmtv

Prmtv

0 likes in 49 posts.

Group: User

Hello. Can you help me? How not to change the units or how to edit?
File not found.
Thanks
#2 Posted: 7/14/2022 3:50:50 PM
Mark R Harris

Mark R Harris

4 likes in 90 posts.

Group: User

A great answer here: https://en.smath.com/forum/yaf_postsm75656_Units-and-matrices.aspx#post75656
#3 Posted: 7/14/2022 5:16:50 PM
overlord

overlord

551 likes in 1332 posts.

Group: Moderator

If I understood correctly;
You want your units in combobox as it is intended on your matrix.
Well, that is not possible without alterations at the moment.
Actually, if you want an item appear in your combobox, it is common practice to use it as strings.
Using variable as it is can cause your problem, units with its base versions. (m for mm, kg for g, etc)
Outcome of the combobox can be another column as you will see in example below.
You can do it with two ways. You either insert a string column manually.
And you make a new automated matrix (or write over on desired matrix) with string column.
Below there is your example for manual and automated methods.
I have included settings of combobox in their corresponding screenshot.
If this is not your intention, please inform.

Regards

unit_transform.sm (8 KiB) downloaded 20 time(s).

2022-07-14_23-06.png

2022-07-14_23-07.png
#4 Posted: 7/14/2022 5:59:56 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

If you want the genuine appearance of the units, make use of the expression parsing capabilities of Davides plugins:

unit_transform_Kr.png
unit_transform_Kr.sm (4 KiB) downloaded 23 time(s).

Generation of the list could be automated but that would not be worth the effort for only a few entries.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#5 Posted: 7/15/2022 3:23:49 PM
Prmtv

Prmtv

0 likes in 49 posts.

Group: User

Wrote

If I understood correctly;
You want your units in combobox as it is intended on your matrix.
Well, that is not possible without alterations at the moment.
Actually, if you want an item appear in your combobox, it is common practice to use it as strings.
Using variable as it is can cause your problem, units with its base versions. (m for mm, kg for g, etc)
Outcome of the combobox can be another column as you will see in example below.
You can do it with two ways. You either insert a string column manually.
And you make a new automated matrix (or write over on desired matrix) with string column.
Below there is your example for manual and automated methods.
I have included settings of combobox in their corresponding screenshot.
If this is not your intention, please inform.



for the current task used your manual method. Thanks
  • New Posts New Posts
  • No New Posts No New Posts