@rkmatieda
Hello Rajdeepsinh,
sure. At first a test library, in your case the Autodesk library. In my case only an example for demonstration.
//-Begin----------------------------------------------------------------
public class ExeWrapperLibrary {
public string MethodOne(string ArgumentOne) {
return "Hello World from " + ArgumentOne;
}
}
//-End------------------------------------------------------------------
Now the executable to call this library.
//-Begin----------------------------------------------------------------
using System;
public class ExeWrapper {
public static void Main(string[] args) {
string ret = string.Empty;
ExeWrapperLibrary lib = new ExeWrapperLibrary();
if(args.Length == 0) {
return;
}
ret = lib.MethodOne(args[0]);
Console.WriteLine(ret);
Console.ReadKey();
}
}
//-End------------------------------------------------------------------
Both are compiled for the x64 platform with this batch.
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /target:library /platform:x64 /out:ExeWrapperLibrary.dll ExeWrapperLibrary.cs
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /target:exe /platform:x64 /out:ExeWrapper.exe /reference:ExeWrapperLibrary.dll ExeWrapper.cs
And with the activity Start Process you can execute the method in the library.


However asynchronous, but that can be easily controlled.
Best regards
Stefan