Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline coeur_de_lion  
#1 Posted : 27 November 2022 19:04:29(UTC)
coeur_de_lion


Rank: Member

Groups: Registered
Joined: 28/09/2014(UTC)
Posts: 18
Italy

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

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline overlord  
#2 Posted : 27 November 2022 19:34:59(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,126
Turkey

Was thanked: 507 time(s) in 338 post(s)
Use include() function.
Learn more from Reference Book.

Regards
Offline overlord  
#3 Posted : 28 November 2022 20:13:30(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,126
Turkey

Was thanked: 507 time(s) in 338 post(s)
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 (4kb) downloaded 15 time(s).
include_sub.sm (3kb) downloaded 13 time(s).

2022-11-28_20-09.png

2022-11-28_20-09_1.png
thanks 2 users thanked overlord for this useful post.
on 28/11/2022(UTC),  on 28/11/2022(UTC)
Offline coeur_de_lion  
#4 Posted : 28 November 2022 23:25:02(UTC)
coeur_de_lion


Rank: Member

Groups: Registered
Joined: 28/09/2014(UTC)
Posts: 18
Italy

Hello guys!
Thank for the support.
Bye
Offline Jean Giraud  
#5 Posted : 29 November 2022 00:56:54(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: coeur_de_lion Go to Quoted Post
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 (59kb) downloaded 8 time(s).
Genfit Minimize Include.sm (32kb) downloaded 7 time(s).

Include(,) is more for advanced maths

Offline Jean Giraud  
#6 Posted : 29 November 2022 02:19:57(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: coeur_de_lion Go to Quoted Post
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
Offline mkraska  
#7 Posted : 29 November 2022 11:42:06(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,985
Germany

Was thanked: 1124 time(s) in 721 post(s)
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 (4kb) downloaded 8 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline overlord  
#8 Posted : 29 November 2022 17:04:26(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,126
Turkey

Was thanked: 507 time(s) in 338 post(s)
Jean, stop messing people's topics.
Post this not-related replies to samples.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.