MathcadFileAccess

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

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

kilele

134 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 2014/3/27 16:12:00
#22 Posted: 2014/3/27 19:42:35
kilele

kilele

134 likes in 397 posts.

Group: User

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

Martin Kraska

1,308 likes in 2,221 posts.

Group: Moderator

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

kilele

134 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 2014/3/28 06:22:00
#25 Posted: 2014/3/28 09:25:05
kilele

kilele

134 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 2014/3/28 11:57:00
#26 Posted: 2014/3/28 12:30:28
kilele

kilele

134 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 2014/3/28 12:38:00
#27 Posted: 2014/4/24 18:15:34
Вячеслав Мезенцев

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

1,532 likes in 1,838 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 2014/4/24 19:22:00
#28 Posted: 2015/9/15 14:37:12
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: 2017/6/7 04:12:30
Martin_B

Martin_B

22 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: 2017/6/7 15:20:56
Jean Giraud

Jean Giraud

983 likes in 6,866 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: 2017/6/7 21:42:05
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

...
CWD.png

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

Martin_B

22 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: 2017/6/8 08:38:18
Jean Giraud

Jean Giraud

983 likes in 6,866 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: 2017/6/8 09:05:42
Вячеслав Мезенцев

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

1,532 likes in 1,838 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: 2017/6/8 11:46:34
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

A more complete code would look like Mathcad 11

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

Martin Kraska

1,308 likes in 2,221 posts.

Group: Moderator

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

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

Show Spoiler

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

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

1,532 likes in 1,838 posts.

Group: Moderator

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

Oscar Campo

135 likes in 309 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: 2021/6/29 09:47:38
Вячеслав Мезенцев

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

1,532 likes in 1,838 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 2021/6/29 10:15:00, sergio 2021/6/29 11:55:00
  • New Posts
  • No New Posts