MathcadFileAccess

MathcadFileAccess - The following functions are useful for reading various file types into arrays. - Сообщения

#21 Опубликовано: 27.03.2014 15:30:38
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: 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 пользователям понравился этот пост
ioan92 27.03.2014 16:12:00
#22 Опубликовано: 27.03.2014 19:42:35
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: User

have you tried to write to the %TEMP% or %APPDATA% directories ?
1 пользователям понравился этот пост
ioan92 28.03.2014 04:23:00
#23 Опубликовано: 28.03.2014 03:25:09
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 пользователям понравился этот пост
ioan92 28.03.2014 03:58:00
#24 Опубликовано: 28.03.2014 06:00:10
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: User

Ioan, i'm not sure to understand the problem well
perhaps you can use DAvide's hyperlink plugin
1 пользователям понравился этот пост
ioan92 28.03.2014 06:22:00
#25 Опубликовано: 28.03.2014 09:25:05
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: 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 пользователям понравился этот пост
ioan92 28.03.2014 11:57:00
#26 Опубликовано: 28.03.2014 12:30:28
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: User

the two large buttons at the bottom are green in my case, tested with martin's portable version on xp
1 пользователям понравился этот пост
ioan92 28.03.2014 12:38:00
#27 Опубликовано: 24.04.2014 18:15:34
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Updated. Play() function now works as expected (it waits for the end of sound).
Russia ☭ forever, Viacheslav N. Mezentsev
1 пользователям понравился этот пост
Davide Carpi 24.04.2014 19:22:00
#28 Опубликовано: 15.09.2015 14:37:12
9_82abZ2

9_82abZ2

0 сообщений из 7 понравились пользователям.

Группа: 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 Опубликовано: 07.06.2017 04:12:30
Martin_B

Martin_B

21 сообщений из 84 понравились пользователям.

Группа: 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 Опубликовано: 07.06.2017 15:20:56
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 07.06.2017 21:42:05
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

...
CWD.png

CWD.bmp
#32 Опубликовано: 08.06.2017 03:16:49
Martin_B

Martin_B

21 сообщений из 84 понравились пользователям.

Группа: 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 Опубликовано: 08.06.2017 08:38:18
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 08.06.2017 09:05:42
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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 Опубликовано: 08.06.2017 11:46:34
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

A more complete code would look like Mathcad 11

CWD="C:\Program Files\Mathsoft\Mathcad 11\Handbooks\datapack"
#36 Опубликовано: 29.10.2019 05:05:48
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

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

getfolder.sm (2 КиБ) скачан 39 раз(а).
2019-10-29 07_52_04-SMath Studio 0.99.7219 - [Blatt5_].png

Показать спойлер

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
#37 Опубликовано: 31.10.2019 14:05:49
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Updated and rebuilded for SMath Studio ≥ 0.99.7109.
Russia ☭ forever, Viacheslav N. Mezentsev
2 пользователям понравился этот пост
Martin Kraska 31.10.2019 20:00:00, sergio 02.11.2019 14:46:00
#38 Опубликовано: 29.06.2021 08:08:28
Oscar Campo

Oscar Campo

124 сообщений из 298 понравились пользователям.

Группа: 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 пользователям понравился этот пост
#39 Опубликовано: 29.06.2021 09:47:38
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Oscar Campo 29.06.2021 10:15:00, sergio 29.06.2021 11:55:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений