from your code snippets i must assume that you are not dealing with the correct initialized SolidEdgeFramework.Application object (which seems to be null in your case).
In an AddIn you get access to the Solid Edge application object in the OnConnection handler as follows:
public void OnConnection(object Application, SolidEdgeFramework.SeConnectMode ConnectMode, SolidEdgeFramework.AddIn AddInInstance)
// Save parameters to private members
m_application = Application as SolidEdgeFramework.Application;
Posted by: Wolfgang Kunert Post date: 5/9/2012 2:37:55 AM