Using .NET applications
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 IntelliCAD 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 Classic custom application
1 Do one of the following:
On the menu, choose Tools > Load Classic .NET Application.
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.
To automatically load a .NET Classic custom application when progeCAD starts
1 Create an ASCII file named icad.net that contains the path to a .NET plug-in file on each line of the file.
2 Place icad.net in the same folder as icad.exe.
3 Run progeCAD.