CADability dotNET

The CADControl type exposes the following members.

Methods

  NameDescription
Protected methodDispose
Clean up any resources being used.
(Overrides Control..::..Dispose(Boolean).)
Public methodExecuteMenu
CADability handles many commands invoked by the user interface. You will find all valid MenuIds in the MenuResource.xml file, that is provided with the installation. Use this method to invoke the execution of the desired action.
Protected methodOnHandleCreated (Overrides Control..::..OnHandleCreated(EventArgs).)
Protected methodOnPaint (Overrides Control..::..OnPaint(PaintEventArgs).)
Protected methodOnSizeChanged (Overrides Control..::..OnSizeChanged(EventArgs).)
Public methodShowFile
Displays the provided file in the control. The following file formats are supported:
  • "cdb" CADability native format
  • "dxf", "dwg" AutoCAD dxf and dwg format
  • "stp" STEP format
  • "igs" IGES format
  • "sat" ACIS format (if pruchased)
  • "xt" Parasolid format (if pruchased)
Public methodUpdateMenu
If you use your own menu or toolbars and forward the execution of a menu via ExecuteMenu(String) to CADability you must know in advance the state of the menu items (like enabled or checked). When dropping down a menu is a good trigger to request for the states of the menu items. Toolbar items are usually updated on the OnIdle event of the application.

See Also