Using .NET applications

progeCAD supports the .NET programming language in two ways:

•    .NET Classic — More closely matches the .NET interface used by AutoCAD.

•    .NET based on COM — Initial .NET interface supported by progeCAD.

To prepare a .NET custom application

   1   In the .NET application, inherit the IICadPlugin interface that is defined in progeCAD as:

public interface IIcadPlugin

{

   void PluginLoaded(object sender, EventArgs e);

   void PluginUnLoading(object sender, EventArgs e);

}

Where PluginLoaded() is called on plug-in load, the sender argument is a COM Interop model class progeCAD.Application for working with (storing it as a class member), and PluginUnLoading()is called right before the plug-in is unloaded.

To load a .NET custom application

   1   Type netload and then press Enter.

   2   In the Open an Assembly dialog box, select the .NET .dll file that you want to load, and then click Open.  

.NET custom applications can also be run automatically when the program starts.
You can add .dll files for .NET to a startup suite or use a script. For details, see Load­ing custom applications automatically when progeCAD starts.