Import results from another smath studio file

Import results from another smath studio file - Mensajes

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

coeur_de_lion

0 me gusta en 18 mensajes.

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

overlord

600 me gusta en 1.381 mensajes.

Grupo: Moderator

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

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

overlord

600 me gusta en 1.381 mensajes.

Grupo: 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) descargado 1332 vez(es).
include_sub.sm (2,41 KiB) descargado 1416 vez(es).

2022-11-28_20-09.png

2022-11-28_20-09_1.png
A 2 usuarios les gustó este mensaje
sergio 28/11/2022 15:57:00, coeur_de_lion 28/11/2022 17:25:00
#4 Publicado: 28/11/2022 17:25:02
coeur_de_lion

coeur_de_lion

0 me gusta en 18 mensajes.

Grupo: User

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

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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) descargado 1345 vez(es).
Genfit Minimize Include.sm (31,52 KiB) descargado 1404 vez(es).

Include(,) is more for advanced maths

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

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 29/11/2022 5:42:06
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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) descargado 1368 vez(es).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#8 Publicado: 29/11/2022 11:04:26
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: Moderator

Jean, stop messing people's topics.
Post this not-related replies to samples.
  • Nuevos mensajes
  • Sin mensajes nuevos