Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IExtensionApplication

2 REPLIES 2
Reply
Message 1 of 3
kulfi
928 Views, 2 Replies

IExtensionApplication

what is the meanings of this statment "Implement the IExtensionApplication interface in your main class"

Thanks

Kulfi
Electronics Engineer

Pind Saudi Arabia



2 REPLIES 2
Message 2 of 3
Alfred.NESWADBA
in reply to: kulfi

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 -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 3
kulfi
in reply to: kulfi

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

Kulfi
Electronics Engineer

Pind Saudi Arabia



Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report