MathcadFileAccess

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

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

kilele

134 me gusta en 397 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
ioan92 27/3/2014 16:12:00
#22 Publicado: 27/3/2014 19:42:35
kilele

kilele

134 me gusta en 397 mensajes.

Grupo: User

have you tried to write to the %TEMP% or %APPDATA% directories ?
A 1 usuarios les gustó este mensaje
ioan92 28/3/2014 4:23:00
#23 Publicado: 28/3/2014 3:25:09
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

Perhaps the function GetFolderPath() can help.
folders.PNG
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 1 usuarios les gustó este mensaje
ioan92 28/3/2014 3:58:00
#24 Publicado: 28/3/2014 6:00:10
kilele

kilele

134 me gusta en 397 mensajes.

Grupo: User

Ioan, i'm not sure to understand the problem well
perhaps you can use DAvide's hyperlink plugin
A 1 usuarios les gustó este mensaje
ioan92 28/3/2014 6:22:00
#25 Publicado: 28/3/2014 9:25:05
kilele

kilele

134 me gusta en 397 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
ioan92 28/3/2014 11:57:00
#26 Publicado: 28/3/2014 12:30:28
kilele

kilele

134 me gusta en 397 mensajes.

Grupo: User

the two large buttons at the bottom are green in my case, tested with martin's portable version on xp
A 1 usuarios les gustó este mensaje
ioan92 28/3/2014 12:38:00
#27 Publicado: 24/4/2014 18:15:34
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

Updated. Play() function now works as expected (it waits for the end of sound).
Russia ☭ forever, Viacheslav N. Mezentsev
A 1 usuarios les gustó este mensaje
Davide Carpi 24/4/2014 19:22:00
#28 Publicado: 15/9/2015 14:37:12
9_82abZ2

9_82abZ2

0 me gusta en 7 mensajes.

Grupo: 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 Publicado: 7/6/2017 4:12:30
Martin_B

Martin_B

22 me gusta en 84 mensajes.

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

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 7/6/2017 21:42:05
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

...
CWD.png

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

Martin_B

22 me gusta en 84 mensajes.

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

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 8/6/2017 9:05:42
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: 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 Publicado: 8/6/2017 11:46:34
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

A more complete code would look like Mathcad 11

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

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

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

getfolder.sm (2,21 KiB) descargado 1778 vez(es).
2019-10-29 07_52_04-SMath Studio 0.99.7219 - [Blatt5_].png

Mostrar spoiler

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 1 usuarios les gustó este mensaje
#37 Publicado: 31/10/2019 14:05:49
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

Updated and rebuilded for SMath Studio ≥ 0.99.7109.
Russia ☭ forever, Viacheslav N. Mezentsev
A 2 usuarios les gustó este mensaje
Martin Kraska 31/10/2019 20:00:00, sergio 2/11/2019 14:46:00
#38 Publicado: 29/6/2021 8:08:28
Oscar Campo

Oscar Campo

135 me gusta en 309 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
#39 Publicado: 29/6/2021 9:47:38
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

SMath Studio compatibility

Plugin updated. Please try.

Changes:
- plug-in corrected to respect latest SMath Studio API changes.
Russia ☭ forever, Viacheslav N. Mezentsev
A 2 usuarios les gustó este mensaje
Oscar Campo 29/6/2021 10:15:00, sergio 29/6/2021 11:55:00
  • Nuevos mensajes
  • Sin mensajes nuevos