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 | ||
| Shows how to create a new |
drop-down 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 |
for verifying drawings. | |||
| Displays a ComboBox for color selection to change entity color. | ||
| A basic "Hello World" ObjectARX template. | ||
| Shows |
how to create |
dialog boxes with basic widgets |
, such as lines and circles, without any external framework. | ||
| Shows |
how to create a custom entity |
consisting of 5 circles and a hatch pattern. | ||
| 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. | ||
| Gives an idea about how to add another content to the |
Design Resource palette. | |||
| Creates a small dockable widget. | ||
| 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. | ||
| Shows how to react on command actions and prompts |
according to different events messages. | |||
| Exports an object as polyline structure into a text file. | ||
| Displays the product number of the application. |
HelloARX\
A basic "Hello World" ObjectARX template.
| A basic "Hello World" CFx template. | ||
| Imports a specified block from a drawing |
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 |
that lets you 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 box after loading the tx-file. The example requires |
an installed Qt resource compiler. | ||
| Adds some items |
on 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 |
model workspace background color to red. Note: Requires |
to restart the software |
. | |||
| Displays the pick point in a dialog box. | ||
| Exports specified entities via wBlock cloning. | ||
| Creates a dockable widget with web view inside. |