Examples COM / ActiveX

Several source code examples for the COM / ActiveX API are available in the following folder:

c:\Program Files\Graebert GmbH\ARES Commander **** SDK\Samples\COM\ :

c:\Program Files\Graebert GmbH\ARES Commander **** SDK\Samples\ActiveX\ :

 

Location

Short Description

COM\AccessContextMenus\

Accesses all the menus from AcadPopmenuCollection. AcadPopMenuCollection is the collection of both menus and contextual menus.

COM\ActiveXEventLoger\

Logs the event in a list and helps to check whether event fires or not.

COM\ArrayRectangular\

Creates a drawing by launching Ares Commander through Out-Proc

COM\CreateEntities\

Creates a circle in the graphic area.

COM\DrawingPreview\

Exports the dwg file to BMP file at MyDocuments folder at different zoom levels.

COM\LoadScriptsAndLisps\

Launches Ares Commander and loads the scripts and lisps. After loading saves the drawing to MyDocuments/AresDrawings. Also checks whether drawing exist or not.

COM\UseOfTransaction\

Creates around hundred objects in one to two seconds of time by using transaction in COM.

COM\VSTA_MyARESMacros\

Creates a line by the given coordinates sent as a command.

ActiveX\COM\ActiveXContainer\

ARES as ActiveX Control and put this control to any Windows Form using COM

ActiveX\dotNET\ActiveXContainer\

ARES as ActiveX Control and put this control to any Windows Form using .NET

ActiveX\MFC\ActiveXContainer\

ARES as ActiveX Control and put this control to any Windows Form using MFC

For more detailed steps on how to run the sample, please refer to Readme.txt present inside every Sample folder of COM.

Â