Import results from another smath studio file

Import results from another smath studio file - Messaggi

#1 Pubblicato: 27/11/2022 13:04:29
coeur_de_lion

coeur_de_lion

0 apprezzamenti in 18 post.

Gruppo: 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 Pubblicato: 27/11/2022 13:34:59
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

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

Regards
#3 Pubblicato: 28/11/2022 14:13:30
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: 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) scaricato 1342 volta(e).
include_sub.sm (2,41 KiB) scaricato 1421 volta(e).

2022-11-28_20-09.png

2022-11-28_20-09_1.png
2 utenti hanno apprezzato questo post
sergio 28/11/2022 15:57:00, coeur_de_lion 28/11/2022 17:25:00
#4 Pubblicato: 28/11/2022 17:25:02
coeur_de_lion

coeur_de_lion

0 apprezzamenti in 18 post.

Gruppo: User

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

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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) scaricato 1351 volta(e).
Genfit Minimize Include.sm (31,52 KiB) scaricato 1412 volta(e).

Include(,) is more for advanced maths

#6 Pubblicato: 28/11/2022 20:19:57
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 Pubblicato: 29/11/2022 05:42:06
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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) scaricato 1372 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#8 Pubblicato: 29/11/2022 11:04:26
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Jean, stop messing people's topics.
Post this not-related replies to samples.
  • Nuovi post
  • Nessun nuovo post