CADability dotNET

User Interface and Selection

What is the User Interface good for?

If you only intend to display a drawing or a model and allow the user to zoom, scroll, choose the view direction and select objects, you will not need the user interface. If you want to allow the user to manipulate the geometry of the model or drawing, then it is convenient (but not necessary) to display the CADability user interface. It consist of three parts:

  • Control Center
  • Tool Bars
  • Menu
which can be enabled or disabled selectively.

The control center appears on the left or right side of the model view and displays (modifiable) properties of the selected objects, input fields for Actions, information about the views and general settings.

The toolbars also appear inside the frame of the control and may be moved or attached to any side of the frame. They can be modified and customized according to your requirenments. The toolbar commands (when buttons are pressed) are automatically handled by the command routing of CADability.

The menue is displayed in the parent form of the control which is found by FindForm.

How to implement my own user interface?

You may implement any kind of user interface you want. To use the command routing mechanism of CADability call ExecuteMenu. You will find the required menu IDs in the file MenuResource.xml which defines the structures of the various menues. To find out about the state of certain menu items that CADability expects to be displayed (like disable the "move" item in the menue when nothing is selected) use the UpdateMenu method.