Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

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

Location

Short Description

AddMenuSample\

Shows how to create a new

pulldown

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

to verify

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

dialogs without any external framework

dialog boxes with basic widgets

like

, such as lines and circles, without any external framework.

CustomEntity\

Shows

,

how to create a custom entity

. The special entity consists out

consisting of 5 circles and a hatch pattern.

CustomPropertiesWidget\

Shows

,

how to create a custom properties widget that

is updated

updates along with all other properties of the currently selected entities. The custom properties widget used as an example

show

shows the extension dictionaries of the selected entities.

DesignResourceSDKSample\

Gives an idea about how to add another content to the

design resource

Design Resource palette.

DockWidget\

Creates a small dockable widget.

DrawCirclesCommand\

Explains how to create a command with

option prompts

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

accordingly with

according to different events messages.

FxGsDumper\

Exports an object as polyline structure into a text file.

HelloApplicationGDE\

Displays the product number of the application.

HelloARX\

A basic "Hello World" ObjectARX template.

HelloSCommand\

A basic "Hello World" CFx template.

importBlock\

Imports a specified block from a drawing

content

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

how to

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

a

an installed Qt resource compiler.

RibbonMenuSample\

Adds some items

into

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

modelspace

model workspace background color to red. Note: Requires

a

to restart the software

restart

.

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.