Questions tagged [.netlink]

Questions about integrating Mathematica and .Net using the .NET/Link functionality provided with Mathematica.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

How to get NETTypeInfo as an Association to store in a variable and query it?

Needs["NETLink`"]; data=NETTypeInfo["System.GC"] This prints the output using CellPrint so I can't store ...
user13892's user avatar
  • 9,385
2 votes
0 answers
47 views

How to load a .dylib library (C++ not compile with Mathematica library) on Mac with Mathematica?

I work on a mac M1 with MacOS Sonoma and i use Mathematica 12.3.1 and 14.0 I wanted to ask if there is a way to load a .dylib library on Mac with Mathematica, which was compiled without using the ...
Alex's user avatar
  • 51
2 votes
1 answer
69 views

How to copy/merge one directory into another like done by default in windows file explorer?

What is the easiest way to copy one directory into another programmatically? I tried: ...
user13892's user avatar
  • 9,385
1 vote
1 answer
116 views

How to use NETLink to activate an application window?

I have a excel application COM object for an active workbook. excelApplication=GetActiveCOMObject["Excel.Application"] <<NETObject[Microsoft.Office....
user13892's user avatar
  • 9,385
3 votes
0 answers
41 views

Does .NET/Link work with .NET 7.0 assemblies?

Is it possible to call methods in a .NET 7.0 assembly from Mathematica? If so, then how is that accomplished? This is my first foray using .NET/Link. I was able to get a test project working that ...
CalvinDale's user avatar
0 votes
0 answers
70 views

Unable to load DLL 'ml32i4.dll' when calling .NETLink for .NET Framework 4.6.1 application

I have added Wolfram.NETLink to a C# .NET Framework 4.6.1 application via NuGet. NuGet installs this to the C:\Users\[user]\.nuget\packages\wolfram.netlink\1.7.1 ...
Doug Kimzey's user avatar
  • 2,279
0 votes
0 answers
76 views

Pass parameters to notebook being opened?

Is there a way to pass a parameter to a notebook which is being programmatically opened? For example, I would like to be able to pass a parameter to myNotebook.nb ...
Chris Degnen's user avatar
  • 30.9k
4 votes
1 answer
104 views

How to pass the second parameter to COM object in NETLink?

I am trying to add a copy after the active sheet. I can add it before as follows (this question was asked before but now I need the answer to make my workflow: ...
user13892's user avatar
  • 9,385
1 vote
0 answers
36 views

MathKernel.exe not being killed while running from .NET C#

I am using Mathematica from .NET (C#) to compute the result based on some input, following is the code snippet of C# ...
Mohsan's user avatar
  • 111
2 votes
0 answers
57 views

On the Force32Bit option of NETLink

It seems that the 32-bit option of NETLink has been planed to be ommited since 12.0+. I found that the code ...
Jerry's user avatar
  • 2,459
0 votes
0 answers
103 views

About using C# to load a package in a Mathematica .m file

I tried to load my .m file in the following way; ...
懒人烘培's user avatar
2 votes
1 answer
148 views

How can I connect Mathematica to an SAP/ERP server?

I am trying to get some references for accessing an SAP/ERP server from Mathematica. It has been suggested that possibly JLink or NetLink could be used. Assuming that I have the server address, ...
user2047's user avatar
2 votes
2 answers
426 views

GetProcessMemoryInfo

The GetProcessMemoryInfo from psapi.dll is a helpful function that can be used to monitor the memory wolframkernel.exe used, where how much memory can be used and is actually used by wolframkernel is ...
Frank's user avatar
  • 286
3 votes
0 answers
65 views

How to do simple operations on the .Net side using NETLink`?

I am trying to learn how the NETLink functionality works. Consider the following example: I import the library: ...
user13892's user avatar
  • 9,385
2 votes
1 answer
129 views

Does any know how to get the paths of current opened locations in file explorer?

Does anyone know if there is a builtin way to get all opened locations in the file explorer? Like for browsers, the browser itself remembers the last opened locations. So even if it crashes one can ...
user13892's user avatar
  • 9,385
1 vote
1 answer
488 views

Evaluate Mathematica from C#

Kindly help. I want to evalaute a mathematica notebook using C#. I have made a mathematica notebook named 'pureimpure.nb'. I like to evaluate it from dot net using the command ...
Abhijith Chandran's user avatar
5 votes
1 answer
175 views

Passing an image to Kernel via NETLink

I have created a specialized image analysis method in Mathematica that takes an image and returns a marked up image with some detection output. In order to allow others to feed images into my ...
ahhhh's user avatar
  • 305
0 votes
0 answers
173 views

Unable to load DLL assembly with NET/Link

I am using Math'a 12 on iMac OS 10.14 to load a DLL. To simplify I stored the file in the NoteBook directory, however a listing of assemblies in the directory gives me an error. Ive tried installing ...
Boris's user avatar
  • 421
1 vote
0 answers
233 views

How to integrate a function written in fortran that solves a set of nonlinear equations into mathematica?

I am trying to integrate the solver for the set of nonlinear equations link written in Fortran language into mathematica . To do so i developed a function called netlib based on the explanation given ...
user49047's user avatar
  • 791
5 votes
1 answer
209 views

Can I distribute Wolfram.NETLink.dll with an open-source project?

I am developing an open-source suite of Windows Workflow Foundation activities for the Wolfram Language to use with UiPath, a Windows automation platform. I built it using the Wolfram.NETLink library. ...
Joe Iaquinto's user avatar
2 votes
1 answer
197 views

DefineDLLFunction returning array

I have an external "C" DLL function which returns a pointer to an byte array as well as the number of array elements (bytes) ...
Robert Nowak's user avatar
3 votes
0 answers
212 views

Use NETLink to call C# code that uses packages from nuget

I can successfully load and run methods of a static class I have written in c# using: ...
lac's user avatar
  • 151
4 votes
0 answers
64 views

Is it possible to load F# types using .NET/Link?

Suppose I define a type in F# such as: ...
ndalchau's user avatar
6 votes
1 answer
157 views

How to use VBA types with UNDERLINE in it's name in NETLink?

When coding with VBA functions in NETLink, I need the enum reference. It's ok to get the ...
Jerry's user avatar
  • 2,459
2 votes
1 answer
62 views

How to make indepent linking workspace when using NETLink?

I've created two packages file as CompnentALink.m CompnentBLink.m the functions InstallNET[] and ...
Jerry's user avatar
  • 2,459
5 votes
1 answer
117 views

Problem with inserting a picture into Excel sheet in NETLink way

I'm using the NETLink to work with Excel object, there be differences to write code according to the ...
Jerry's user avatar
  • 2,459
4 votes
1 answer
82 views

How to show plot or graphics on Form or PictureBox in NETLink?

How to show the plot or graphics on the image property of a form or picturebox with NETLink? ...
Jerry's user avatar
  • 2,459
9 votes
2 answers
262 views

Problem with Excel operation in NETLink way

I'm using the NETLink package to build a Excel file and trying to fill it with some data as this: ...
Jerry's user avatar
  • 2,459
1 vote
0 answers
70 views

How to pass parameter to netlink objects

NETBlock[ InstallNET[]; excel=GetActiveCOMObject["Excel.Application"]; excel@ActiveWorkbook@SaveAs["blahblah.xlsb"] ]; How do i pass the fileformat ...
user13892's user avatar
  • 9,385
3 votes
1 answer
83 views

Why some Graphics cannot be captured by MathLink in NETLink?

I'm trying test on calling mathematica function from .NET application by running demo application MathKernelApp.exe which could be located at ...
Jerry's user avatar
  • 2,459
2 votes
1 answer
108 views

How to convert an array in C# .net to ListPoint for calling ListPointPlot3D?

I have a two-dimensional array in C# (using .Netlink) double[][] rho The values of the array change dynamically as it represents some process in time. I have ...
Тимофей Ломоносов's user avatar
7 votes
1 answer
748 views

How can I copy a figure to the clipboard in SVG?

I frequently include plots in my emails. The easiest and most reliable way I have found is to just capture a part of the screen using greenshot (Windows) and paste into the message. Microsoft ...
Gustavo Delfino's user avatar
1 vote
0 answers
107 views

How to send Map[Plus[1, #] &, {1, 2, 3}] to Mathematica from C# via IKernelLink?

Here is a piece of my code ...
Emilio's user avatar
  • 11
3 votes
1 answer
308 views

How to control which version of Mathematica .NET/Link uses

I have three versions of Mathematica installed: 7.0.1, 11.0.1 and 11.1.1 but my test .NET/Link application will only use version 7. In Visual Studio I have referenced the ...
Chris Degnen's user avatar
  • 30.9k
3 votes
0 answers
139 views

FORTRAN complex number passing to Mathematica through NETLink

I used to use NETLink to call FORTRAN functions or subroutines compiled into a dll file. This works very well until now that I want to call a function which has complex arguments and returns a complex ...
unstable's user avatar
  • 1,507
1 vote
0 answers
92 views

Optimization using NETLink failing [closed]

I define a function called f[x], which gives a numerical result interacting with an external free software called FEMM, using NETLink. This function works properly and the following codes give the ...
Wang Q's user avatar
  • 11
4 votes
1 answer
182 views

How to find all package we can LoadNETType

After we Needs["NETLink`"] and InstallNET[];,we can use load many .net packages by ...
yode's user avatar
  • 26.7k
3 votes
1 answer
141 views

How to create .NET "System.Windows.Clipboard"?

I have followed the instructions for creating a blank .Net form and it works. ...
Edmund's user avatar
  • 42.3k
1 vote
0 answers
92 views

Using FindMinimum of a function imported via DefineDLLFunction

Mathematica newbie here, just used it today for the first time. So I've successfully "imported" a function from a dll I've built (in C++ with VS), using .NET/LINK and DefineDLLFunction and I've ...
Yian Pap's user avatar
  • 111
0 votes
0 answers
83 views

Creating a slideshow from MathKernel

I've recently started playing with the MathKernel using Wolfram.NETLink.dll and it works great in my C# .NET solution. To give some background, I had created a Mathematica notebook that generates ...
Nonsingular's user avatar
1 vote
1 answer
105 views

Access to Read[] method on .Net object incorrectly flagged as syntax error, and changes needed to call NETLink functionality in a package.

Mathematica can access .net objects easily via NETLink. Works well to custom assemblies. However, I have run into a problem when trying to use Read() method on a ...
Richard Scott's user avatar
2 votes
0 answers
94 views

NetLink with SsfPack (a .dll) for use in State Space Time Series

I have recently been doing work in the field of State Space Time Series. Mathematica does not have a lot of built in tools for working in this area. There is a well known package that is available, ...
Ray Troy's user avatar
  • 1,299
1 vote
0 answers
53 views

Instant detection of digital or analogue variation of a variable with Mathematica in Windows 8.1

I am using an assembly that contains two acquisition board (PCI-1742U-AE and PCIE-1816H-AE) and an external circuit, connected to boards. The computer uses Windows 8.1, and the communication is done ...
rosu_constantin's user avatar
2 votes
0 answers
2k views

Load function returning array or string from DLL created in Delphi

I'm trying to call a function from a 32-bit DLL created in Delphi. My (simplified) function is defined in Delphi like so: ...
floyd17's user avatar
  • 121
1 vote
1 answer
482 views

NETLink Problem with C# DLL

I am not getting the answers back from my DLL calls. Here are the simple C# functions. Not sure why I am not getting the correct answers. I can DLL import kernel32d.dll and can call getTickCount() ...
Phil Neumiller's user avatar
8 votes
1 answer
332 views

A Simplistic C# (.NET) Reloader

Can one write a very straightforward C# reloader akin to this Java reloader, that enables Mathematica-like usage of functions from existing C# code in string format, in an easy and elegant fashion ...
RunnyKine's user avatar
  • 33.1k
7 votes
2 answers
357 views

How to make a get image by a NETObject

This more then a .net question but I'm in Mathematica using.Suppose I want to get a image from my clipboard,so I make a function ...
yode's user avatar
  • 26.7k
4 votes
1 answer
247 views

Specify Variable Size

Is there an easy way to specify the variable size and still use them as variables more specifically for the .NETLink? Something like the following I am thinking. ...
William's user avatar
  • 7,605
1 vote
0 answers
56 views

Passing boolean parameters to a .NET Method using NETLink

According to the NETLink documentation, NETLink automatically handles type conversions from Mathematica to a .NET dll. One of the issues I have is that the .NET method I want to use expects a Boolean ...
user39464's user avatar
  • 153
0 votes
1 answer
176 views

NETLink System.AccessViolationException when compiling #C with .NET 4.0 or higher

I have a program, which used NETlink to call Mathematica functions from C#. When we compile this program with .NET 4.0 or higher we get "An unhandled exception of type 'System....
Pekka's user avatar
  • 1