Examples (CFx)

Several source code examples for the CFx C/C++ API are available in the following folder:

c:\Program Files\Graebert GmbH\ARES Commander 20XX SDK\Samples\CFx\ :

Location

Short Description

 

 

AddMenuSample\

Shows how to create a new drop-down menu item 'My Menu' and how to connect it to a Line command definition.

 

 

BlockAttributeWidget\

Displays the attributes of a specified block.

 

 

BlockPreviewWidget\

Displays a preview of the specified block entity.

 

 

ChangeWorkspace\

Shows how to change the workspace.

 

 

CirclePlugin\

Shows how to use the self written standards for verifying drawings.

 

 

ColorComboBox\

Displays a ComboBox for color selection to change entity color.

 

 

CommandWrapper\

A basic "Hello World" ObjectARX template.

 

 

CommonUIDialog\

Shows how to create dialog boxes with basic widgets, such as lines and circles, without any external framework.

 

 

CustomEntity\

Shows how to create a custom entity consisting of 5 circles and a hatch pattern.

 

 

CustomPropertiesWidget\

Shows how to create a custom properties widget that updates along with all other properties of the currently selected entities. The custom properties widget used as an example shows the extension dictionaries of the selected entities.

 

 

DesignResourceSDKSample\

Gives an idea about how to add another content to the Design Resource palette.

 

 

DockWidget\

Creates a small dockable widget.

 

 

DrawCirclesCommand\

Explains how to create a command with options. The MYCIRCLE command creates a circle by specifying the radius by two points or by specifying the center point and the radius.

 

 

EditorReactor\

Shows how to react on command actions and prompts according to different events messages.

 

 

FxGsDumper\

Exports an object as polyline structure into a text file.

 

 

HelloApplicationGDE\

Displays the product number of the application.

 

 

HelloSCommand\

A basic "Hello World" CFx template.

 

 

importBlock\

Imports a specified block from a drawing into the current document as block.

 

 

InsertImage\

Inserts an image file into the current document.

 

 

LispFunctions\

Implements a LISP function with one parameter and returns this parameter as function result. The function syntax is: (myLISPFunction "Parameter 1")

 

 

ModifyImage\

Implements a command named MODIFYIMAGE that lets you manipulate image data pixel by pixel.

 

 

MouseHookQt\

Installs a hook-function for the left mouse button. When you click a drawing entity, a Qt-defined shortcut menu displays with entity type of the specified object. Requires Qt.

 

 

ObjectReactors\

Implements a command named SELREACTOR which adds a reactor to the selected objects and displays [OBJ_REACTOR] modification messages during editing.

 

 

PIEntity\

Second sample that shows how to create a custom entity.

 

 

QtDragAndDrop\

Shows how to use drag-and-drop.

 

 

Resource\

This resource example shows how to include additional icon PNG images to the user interface. Three new icons appear in the _CUSTOMIZE dialog box after loading the tx-file. The example requires an installed Qt resource compiler.

 

 

RibbonMenuSample\

Adds some items on the ribbon user interface.

 

 

SelectObjects\

Implements a command named MYSELECT which demonstrates entity selection modes and changes the color of the specified entities to red.

 

 

SetMSBackgroundColor\

The example shows how to change the model workspace background color to red. Note: Requires to restart the software.

 

 

ShowPickedPoint\

Displays the pick point in a dialog box.

 

 

wBlockClone\

Exports specified entities via wBlock cloning.

 

 

WebWidget\

Creates a dockable widget with web view inside.

 

 

Â