Automatic Import Export to and from Excel with "XLSM"

Automatic Import Export to and from Excel with "XLSM" - Import and export Inpput Datas /Result from and to Excel with "XLSM" Extension - Сообщения

#1 Опубликовано: 26.06.2016 04:37:54
Stefan Müller

Stefan Müller

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

Группа: User

ExcelResult2.xlsm (39 КиБ) скачан 66 раз(а).Hey guys,

im coming form mathcad and want to try smath if its better for me and for my calculations.

To my problem:

I have big excel files with input datas from Loadcases. Can be 30 loadcases or more.
The number of laodcases are different from project to project.

So i need to load in the input matrix. This input Matrix should be dependend of the number of loadcases.

What i realised in mathcad: Reading the maximum number of loadcases form excel (only a number)

Now importing a matrix, which columns are dependend of this imported number

Now i need to use Excel XLSM because performing different additional functions in excel.

I tryed with smath and loaded some extensions, but i didnt get to manage it.

Can somone help me ?

I attached the excel file how it should look like. Below the input parameters is the result area.

Best Thx=)))

ExcelResult2.xlsm (39 КиБ) скачан 82 раз(а).
#2 Опубликовано: 26.06.2016 04:39:31
Stefan Müller

Stefan Müller

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

Группа: User

O jea and by the way.

I also need to transform the matrix because every loadcase needs to be vertical so i can define every input parameter as vector and calculate every loadcase vectorised
#3 Опубликовано: 26.06.2016 05:56:22
Davide Carpi

Davide Carpi

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

Группа: Moderator

Hello soletto,

You can use importData.xlsx(...) from XlsxImportExport plugin (if you already have the plugin you have to update it, since there was a bug in the extensions handling; if you can't update just rename the file as .xlsx); I can't try but I guess that also EXCEL I/O plugin should works.

To transform the imported matrix, you can use the transpose function or create a new matrix with programming functions (for/while loops).

2016-06-26 10_56_01-SMath Studio Desktop - [test.sm_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Опубликовано: 26.06.2016 06:36:42
Stefan Müller

Stefan Müller

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

Группа: User

OK thx input seems to work and i dont need to specify the number of columns i want to read in thats good so all loadcases are calculated.

But i really need the possibility to read in the xlsm format because i always need the makro function.


I have too much excel datas to calculate and i cannot safe it as xlsx coz i need the makro after.

Would it be possible to add xlsm support or is it not possible?

Seems to be a good programm an a good alternative to mathcad and the not usable Prime
#5 Опубликовано: 26.06.2016 07:43:20
Davide Carpi

Davide Carpi

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

Группа: Moderator

In XlsxImportExport is not possible, since to execute the macros you need to run them inside Excel and this plugin is designed to work indipendently from third party applications.

I guess may be possible in the EXCEL I/O plugin, since it works directly with Microsoft Excel (we have to wait comments from Alex here).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#6 Опубликовано: 26.06.2016 07:50:01
Stefan Müller

Stefan Müller

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

Группа: User

Ok thx for info. I really hope this is possible.
#7 Опубликовано: 26.06.2016 09:48:12
Jean Giraud

Jean Giraud

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

Группа: User

Hello Soletto,

I Understand what you are attempting to do: being myself a former
Process Control & Instrumentation [Consultant]. Mathcad 11 was great
for collecting loops components, specification list style ... including
XTR's their calibration range, Orifice Plates ...

That reminds me to do "Valve Sizing" in Smath. There are about a dozen
Smath "Instrumentation" done, including Orifice plates.

By default, in Mathcad, the "comments" are black, but there is a way
to have them in other colors. Unfortunately, my Mathcad 11 is now "Museum".

Jean
#8 Опубликовано: 27.06.2016 16:24:45
Stefan Müller

Stefan Müller

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

Группа: User

Hallo Jean,

what do you mean with "That reminds me to do "Valve Sizing"

Yea when i started with my new work i had the idea that i can automatisise well defined calculations.

For Example calculating all 23 different pipes weather they are OK or NOK regarding goverment formulas.

I realised it by writing all loadcases in the excel file as you can see and seting up the calculation in mathcad because easy writing of formulas with the symbolic input.

Calculating and the result im retransporting to excel for making report.

This is working pretty good. IN the last time i realised a second mathcad file in which i can calculate one loadcase manually by defining a number in mathcad which then shows the variables for that loadcase.


But i get to a point that some parts of mathcad are really annoying.

Especially when i want to do an iterative Calculation with a program which is really big.

And the writing possibilityies are really not usable. All Mathcad Files are looking really horrible.

So is my hope i can do this with smath.

And i need a Content like in Word.

Up to now i hope its possible in smath.

But as to say XLSM input is not possible i can not proceed :-(

Best regards form Austria
#9 Опубликовано: 27.06.2016 16:28:43
Stefan Müller

Stefan Müller

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

Группа: User

Hmm i think Mathcad 11 is older than me and im 31
#10 Опубликовано: 27.06.2016 17:56:19
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Hmm I think Mathcad 11 is older than me and I'm 31



Not that much older than you. In 2003, you were just a naughty boy of 18 !

Given pipe size/min_max flow/pressure across the valve, valve sizing
consists in selecting the appopriate valve zize/style ...
Looks simple, not so ... I suspect a 2 days work to make it Smath.

Cheers, Jean
#11 Опубликовано: 27.06.2016 19:06:57
Stefan Müller

Stefan Müller

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

Группа: User

yea i solved a lot of calculations via Mathcad Excel connection.

But im not satisfied with mathcad.

But i cannot open my mathcad files in smath

But as i cannot read from xlsm i cannot use smath at the moment coz all of my excel files contain makros
#12 Опубликовано: 27.06.2016 19:47:49
Alexander O. Melnik

Alexander O. Melnik

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

Группа: Moderator

Wrote

In XlsxImportExport is not possible, since to execute the macros you need to run them inside Excel and this plugin is designed to work indipendently from third party applications.

I guess may be possible in the EXCEL I/O plugin, since it works directly with Microsoft Excel (we have to wait comments from Alex here).



Ihave used excel_IO with spreadsheets that contain macro.. You will need to assign macro execution on cell change or similar.

If you post an example .sm workbook & .xlsm sheet with instructions on what you want to achieve I can give it a shot
1 пользователям понравился этот пост
Davide Carpi 27.06.2016 19:49:00
#13 Опубликовано: 27.06.2016 21:32:31
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Wrote



...
Ihave used excel_IO with spreadsheets that contain macro.. You will need to assign macro execution on cell change or similar.
...



Hi. There are two kind of macros in excel: "Pure" macros, which starts with Sub(), and "formula" macros, starting with Function().

The bigest difference between both is that pure macros can modify any cell, but formula macros can't. Also, formula macros can be called inside the cell, but pure macros don't.

My experience is that even the most people uses pure macros, the same calculus can be done better with functions. I don't try smath with xlsm function macros, but guess that don't need special treatment, and works like any other formula in excel.

Best regards.

Alvaro.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений