Hello community,
I’am totally new to the Dynamo and its developing. My main goal is to create a connection between a third party software and Dynamo in order to do parametric design. My first attempt to establish this is to create a package containing zerotouch nodes. If there are better way to accomplish that please feel free to mention that.
My Question:
using System.Runtime.InteropServices;
using thirdParty.FEM;
using Autodesk.DesignScript.Runtime;
using Autodesk.DesignScript.Interfaces;
using Autodesk.DesignScript.Geometry;
namespace Integration
{
public class Parametric
{ //Construtor
private Parametric() {}
public static IApplication establishSession()
{
IApplication app = null;
try
{
app = Marshal.GetActiveObject("Application") as IApplication;
app.LockLicense();
}
catch(Exception ex)
{
throw new Exception(ex.Message,ex.InnerException);
}
return app;
}
}
In order to work with the session i need it as an output. But as you can see there is a warning i dont understand. Hope you can help me with some advice.
greetings
MasyMo