MathcadFileAccess

MathcadFileAccess - The following functions are useful for reading various file types into arrays. - Messages

#21 Posted: 3/27/2014 3:30:38 PM
kilele

kilele

133 likes in 397 posts.

Group: User

It has occurred to me that the plugin could send the bin data to the clipboard and then the user could make a paste (control-v) by hand into any folder (as the program HTMtied does)
Another alternative could be using DDE as a layer between windows programs, see:
http://jdde.pretty-tools.com/
http://www.thescarms.com/VBasic/ddeml.aspx
1 users liked this post
ioan92 3/27/2014 4:12:00 PM
#22 Posted: 3/27/2014 7:42:35 PM
kilele

kilele

133 likes in 397 posts.

Group: User

have you tried to write to the %TEMP% or %APPDATA% directories ?
1 users liked this post
ioan92 3/28/2014 4:23:00 AM
#23 Posted: 3/28/2014 3:25:09 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Perhaps the function GetFolderPath() can help.
folders.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
ioan92 3/28/2014 3:58:00 AM
#24 Posted: 3/28/2014 6:00:10 AM
kilele

kilele

133 likes in 397 posts.

Group: User

Ioan, i'm not sure to understand the problem well
perhaps you can use DAvide's hyperlink plugin
1 users liked this post
ioan92 3/28/2014 6:22:00 AM
#25 Posted: 3/28/2014 9:25:05 AM
kilele

kilele

133 likes in 397 posts.

Group: User

don't ask me why but i think that'll work if you place the sm files at the same directory as smath exe
1 users liked this post
ioan92 3/28/2014 11:57:00 AM
#26 Posted: 3/28/2014 12:30:28 PM
kilele

kilele

133 likes in 397 posts.

Group: User

the two large buttons at the bottom are green in my case, tested with martin's portable version on xp
1 users liked this post
ioan92 3/28/2014 12:38:00 PM
#27 Posted: 4/24/2014 6:15:34 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Updated. Play() function now works as expected (it waits for the end of sound).
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Davide Carpi 4/24/2014 7:22:00 PM
#28 Posted: 9/15/2015 2:37:12 PM
9_82abZ2

9_82abZ2

0 likes in 7 posts.

Group: User

This is as good a place as any:

Is there a function that returns the filename of the current worksheet/Smath Document? I couldn't find it
#29 Posted: 6/7/2017 4:12:30 AM
Martin_B

Martin_B

21 likes in 84 posts.

Group: User

Wrote

This is as good a place as any:

Is there a function that returns the filename of the current worksheet/Smath Document? I couldn't find it



Currently I have the same question and also no answer (and couldn't find one).
Can anybody help?
#30 Posted: 6/7/2017 3:20:56 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Is there a function that returns the filename of the current worksheet/Smath Document?I couldn't find it



Simple but not so simple, EXPLAIN:

1. If your work sheet resides in a subfolder: don't know if possible [didn't find trick]
2. If your work sheet reside in a folder in "C:\ ==> like this

path:=CurrentDirectory("")
path="C:\Smath6179\"

#31 Posted: 6/7/2017 9:42:05 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

...
CWD.png

CWD.bmp
#32 Posted: 6/8/2017 3:16:49 AM
Martin_B

Martin_B

21 likes in 84 posts.

Group: User

Wrote

Wrote

Is there a function that returns the filename of the current worksheet/Smath Document?I couldn't find it



path:=CurrentDirectory("")
path="C:\Smath6179\"



Hi Jean,

I do know 'CurrentDirectory( "" )' but it returns the path without the filename. And I am trying to retrieve the latter.
#33 Posted: 6/8/2017 8:38:18 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I do know 'CurrentDirectory( "" )' but it returns the path without the filename. And I am trying to retrieve the latter.



CWD.bmp

If I open a work sheet from "My Computer, C, click on the Folder, click on the work sheet
it will open Smath and CWD= is from which folder the work sheet comes from [Snippet].
Differently, If I open Smath first from the task bar, and click on the file name from the
file list on the Smath menu, I get: CWD="C\Program Flies\Smath Studio"

In fact, my Smath is so simple ... all my 925 work sheets are piled in Smath6179 folder.

All in all => same as Mathcad 11

Cheers ... Jean
#34 Posted: 6/8/2017 9:05:42 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Wrote

Wrote

This is as good a place as any:

Is there a function that returns the filename of the current worksheet/Smath Document? I couldn't find it



Currently I have the same question and also no answer (and couldn't find one).
Can anybody help?



As workaround you can use simple C# script for this (Script plugin).

store.AddDefinition( terms[0].Text, new Term[0], new Entry( "\"" + store.FileName + "\"" ) );

2017-06-08_17-03-04.png
Russia ☭ forever, Viacheslav N. Mezentsev
#35 Posted: 6/8/2017 11:46:34 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

A more complete code would look like Mathcad 11

CWD="C:\Program Files\Mathsoft\Mathcad 11\Handbooks\datapack"
#36 Posted: 10/29/2019 5:05:48 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

The function getfolderpath() seems to be broken for build 7219:

getfolder.sm (2 KiB) downloaded 68 time(s).
2019-10-29 07_52_04-SMath Studio 0.99.7219 - [Blatt5_].png

Show Spoiler

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Вячеслав Мезенцев 10/31/2019 2:04:00 PM
#37 Posted: 10/31/2019 2:05:49 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Updated and rebuilded for SMath Studio ≥ 0.99.7109.
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
Martin Kraska 10/31/2019 8:00:00 PM, sergio 11/2/2019 2:46:00 PM
#38 Posted: 6/29/2021 8:08:28 AM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Hi,
I found that the following functions of this plugin are not working:

Play(), WRITEWAV(), GETWAVINFO(), READWAV().

I saw the problem inside the interactive SMath Handbook.

I have SMath Studio 0.99.7822 (01 June 2021) on win10.

Oscar
1 users liked this post
#39 Posted: 6/29/2021 9:47:38 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

SMath Studio compatibility

Plugin updated. Please try.

Changes:
- plug-in corrected to respect latest SMath Studio API changes.
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
Oscar Campo 6/29/2021 10:15:00 AM, sergio 6/29/2021 11:55:00 AM
  • New Posts New Posts
  • No New Posts No New Posts