what is the meanings of this statment "Implement the IExtensionApplication interface in your main class"
Thanks
Hi,
not sure what you mean with "your main class".
The desciption about implement/usage of interfaces can be read >>>here<<<
Autodesk has defined an interface IExtensionApplication to have a defined entry point into your application when loading your DLL (so the loader is able to find an "Initilize"-sub to call it).
- alfred -
I am Reading API Devloper civil 3d Guide and i can not understand the following number 5 Step.
5 Implement the IExtensionApplication interface in your main class.
Add the Autodesk.AutoCAD.Runtime namespace (which is where this
interface is defined), and IExtensionApplication after your class
definition: Visual Studio will provide a code complete option to
implement stubs for the interface. Your code should now look like this:
using System;
using Autodesk.AutoCAD.Runtime;
namespace GettingStarted
{
public class Class1 : IExtensionApplication
{
#region IExtensionApplication Members
public void Initialize()
{
throw new System.Exception("The method or
operation is not implemented.");
}
public void Terminate()
{
throw new System.Exception("The method or
operation is not implemented.");
}
#endregion