Import results from another smath studio file

Import results from another smath studio file - 消息

#1 已发布: 2022/11/27 13:04:29
coeur_de_lion

coeur_de_lion

0个赞,共18个帖子。

组: User

Hello,
Is it possible to import a results from another smath studio file and then use it as a imput for the second file?
Thanks
#2 已发布: 2022/11/27 13:34:59
overlord

overlord

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

组: Moderator

Use include() function.
Learn more from Reference Book.

Regards
#3 已发布: 2022/11/28 14:13:30
overlord

overlord

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

组: Moderator

To be ensure new users not getting confused by Jean's immorally promoted and irrelevant samples;
Question was calculating and getting result from another worksheet.
Not writing results into file getting them in same sheet.

Here is an example how include() can be used.

Regards

include_main.sm (3.79 KiB)已下载 1352 次。
include_sub.sm (2.41 KiB)已下载 1438 次。

2022-11-28_20-09.png

2022-11-28_20-09_1.png
2位用户喜欢此帖子
sergio 2022/11/28 15:57:00, coeur_de_lion 2022/11/28 17:25:00
#4 已发布: 2022/11/28 17:25:02
coeur_de_lion

coeur_de_lion

0个赞,共18个帖子。

组: User

Hello guys!
Thank for the support.
Bye
#5 已发布: 2022/11/28 18:56:54
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Is it possible to import a results from another Smath Studio file and then use it as a input for the second file?

.
You can try from the attached.
As given, re-code the the referenced include(,)
Should work as they will be from the same download directory.

Genfit Minimize Include Test.sm (58.93 KiB)已下载 1365 次。
Genfit Minimize Include.sm (31.52 KiB)已下载 1425 次。

Include(,) is more for advanced maths

#6 已发布: 2022/11/28 20:19:57
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Is it possible to import a results from another Smath Studio file and then use it as a input for the second file?


Answer is YES ... from various results.
... imported from SmathFile into main Directory.

Lum_rgba.PNG
#7 已发布: 2022/11/29 05:42:06
Martin Kraska

Martin Kraska

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

组: Moderator

SMath studio has the built-in functions rfile() and wfile() which are used to store and retrieve expressions to/from the file system.

These native functions don't provide control as to where the files are stored (if I recall correctly, it is the settings directory (install directory if using a portable version).

Yet the Mathcad toolbox plugin provides extended functions with path control, e.g. you can enforce storage at the document directory.

2022-11-29 09_33_38-C__FHB_Software_SMath_Forumbeitrage_dd - Notepad++.png
wfile.sm (3.52 KiB)已下载 1380 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#8 已发布: 2022/11/29 11:04:26
overlord

overlord

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

组: Moderator

Jean, stop messing people's topics.
Post this not-related replies to samples.
  • 有新帖
  • 无新帖