Transform units

Transform units - 消息

#1 已发布: 2022/7/14 15:22:17
Prmtv

Prmtv

0个赞,共49个帖子。

组: User

Hello. Can you help me? How not to change the units or how to edit?
未找到文件。
Thanks
#2 已发布: 2022/7/14 15:50:50
Mark R Harris

Mark R Harris

5个赞,共90个帖子。

组: User

A great answer here: https://en.smath.com/forum/yaf_postsm75656_Units-and-matrices.aspx#post75656
#3 已发布: 2022/7/14 17:16:50
overlord

overlord

600个赞,共1,381个帖子。

组: 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.8 KiB)已下载 1354 次。

2022-07-14_23-06.png

2022-07-14_23-07.png
#4 已发布: 2022/7/14 17:59:56
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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.58 KiB)已下载 1334 次。

Generation of the list could be automated but that would not be worth the effort for only a few entries.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#5 已发布: 2022/7/15 15:23:49
Prmtv

Prmtv

0个赞,共49个帖子。

组: 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
  • 有新帖
  • 无新帖