Subject: Using .NET applications



CADdirect 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 CADdirect.

To prepare a .NET custom application

   1   In the .NET application, inherit the IICadPlugin interface that is defined in Intelli­CAD 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 CADdirect.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 CADdirect 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 CADdirect.

Using_NET_applications
© Copyright 2022. BackToCAD Technologies LLC. All rights reserved. Kazmierczak® is a registered trademark of Kazmierczak Software GmbH. Print2CAD, CADdirect, CAD.direct, CAD Direct, CAD.bot, CAD Bot, are Trademarks of BackToCAD Technologies LLC. DWG is the name of Autodesk’s proprietary file format and technology used in AutoCAD® software and related products. Autodesk, the Autodesk logo, AutoCAD, DWG are registered trademarks or trademarks of Autodesk, Inc. All other brand names, product names, or trademarks belong to their respective holders. This website is independent of Autodesk, Inc., and is not authorized by, endorsed by, sponsored by, affiliated with, or otherwise approved by Autodesk, Inc. The material and software have been placed on this Internet site under the authority of the copyright owner for the sole purpose of viewing of the materials by users of this site. Users, press or journalists are not authorized to reproduce any of the materials in any form or by any means, electronic or mechanical, including data storage and retrieval systems, recording, printing or photocopying.