Versions Compared

Key

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

The sample guide This section contains practical examples about how to use the ARES Commander API Libraries.

The Docking Widget sample contains examples for creation of athe following commands:

  • Docking Command which inherits CFxCommand features like, such as:

CFxCommand::globalName

CFxCommand::localName

CFxCommand::Execute

...

It also shows how to register a lisp Lisp function in a drawing.

For OdRxModule class, e.g.:

OdRxModule::initApp

OdRxModule::uninitApp

OdRxModule::deleteModule

For CFxDocumentManagerReactor class, e.g.:

CFxDocumentManagerReactor::DatabaseAttached

CFxDocumentManagerReactor::DatabaseDetached

OdRxObject::copyFrom

OdRxObject::isA

OdRxObject::queryX

The Editor Reactor sample describes the implementation of a Reactor which inherits CFxEditorReactor. It's CFxEditorReactor is a subclass of OdEditorReactor. You can use CFxEditorReactor for representing a an editor reaction. Supports CFxEditorReactor supports the following functions like:

OdEdCommandStackReactor::commandAdded

OdEdCommandStackReactor::commandCancelled

OdEdCommandStackReactor::unknownCommand

OdEdLispEngineReactor::lispCancelled

OdEdLispEngineReactor::lispWillStart

OdEditorReactor::sysVarChanged

OdEditorReactor::sysVarWillChange

The HelloSCommand sample describes the creation of how to create a simple command called HELLO.It prints typical named HELLO, which prints "Hello World".

Indicated It is recommended to know how to set the name of the command and the execute action.


The DrawCirclesCommand sample describes the creation of how to create a geometry command.

The MYCIRCLE command MYCIRCLE draws a circle defined by two points or by specifying a center and a radius.

Indicated It is recommended to know how to use a tracker together with a specific draw.


The SelectObjects sample describes the way of selecting method used to specify objects.

The MYSELECT command MYSELECT creates which selects objects according to the defined selection mode.

...

The CustomEntity sample describes how to register and use a custom object entity can be registered and used.

A new SPECIAL command called SPECIAL is created to apply the new entity properties.

...

The CircleGripPoints sample describes how to handle a circle grip points.

The GRIPCIRCLE command GRIPCIRCLE creates a predefined circle with five grip points ready to be expanded.

...

The 3D_Solid sample describes how to create a solid.

The MYSOLID command MYSOLID creates draws a predefined circle which is extruded to become and extrudes it to create a solid.


The ObjectReactors sample describes how to create a reactor for selected objects.

The command SELREACTOR allows the user to SELREACTOR command lets you select an object to which you want to whom add the reactor will be added.