Several source code examples for the CFx C/C++ API are available in the following folder:
c:\Program Files\Graebert GmbH\ARES Commander ???? SDK\Samples\CFx\
:
Location | Short Description |
| Shows how to create a new pulldown menu item 'My Menu' and how to connect it to a Line command definition. |
| Displays the attributes of a specified block. |
| Displays a preview of the specified block entity. |
| Shows how to change the workspace. |
| Shows how to use the self written standards to verify drawings. |
| Displays a ComboBox for color selection to change entity color. |
| Shows, how to create dialogs without any external framework with basic widgets like lines and circles. |
| Shows, how to create a custom entity. The special entity consists out of 5 circles and a hatch pattern. |
| Shows, how to create a custom properties widget that is updated along with all other properties of the currently selected entities. The custom properties widget used as an example show the extension dictionaries of the selected entities. |
| Gives an idea how to add another content to the design resource palette. |
| Creates a small dockable widget. |
| Explains how to create a command with option prompts. The MYCIRCLE command creates a circle by specifying the radius by two points or by specifying the center point and the radius. |
| Shows how to react on command actions and prompts accordingly with different events messages. |
| Exports an object as polyline structure into a text file. |
| Displays the product number of the application. |
| A basic "Hello World" ObjectARX template. |
| A basic "Hello World" CFx template. |
| Imports specified block from drawing content into the current document as block. |
| Inserts an image file into the current document. |
| Implements a LISP function with one parameter and returns this parameter as function result. The function syntax is: (myLISPFunction "Parameter 1") |
| Implements a command named MODIFYIMAGE how to manipulate image data pixel by pixel. |
| 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. |
| Implements a command named SELREACTOR which adds a reactor to the selected objects and displays [OBJ_REACTOR] modification messages during editing. |
| Second sample that shows how to create a custom entity. |
| Shows how to use drag and drop. |
| This resource example shows how to include additional icon PNG images to the user interface. Three new icons appear in the _CUSTOMIZE dialog after loading the tx-file. The example requires a installed Qt resource compiler. |
| Adds some items into the ribbon user interface. |
| Implements a command named MYSELECT which demonstrates entity selection modes and changes the color of the specified entities to red. |
| The example shows how to change the modelspace background color to red. Note: Requires a software restart. |
| Displays the pick point in a dialog. |
| Exports specified entities via wBlock cloning. |