CADability dotNET

The CADControl type exposes the following members.

Constructors

  NameDescription
Public methodCADControl
Initializes a new instance of the CADControl class

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.

Properties

  NameDescription
Public propertyAdditionalMenues
Public propertyAdditionalPopups
Public propertyControlCenter
Returns the ControlCenter if there is a ControlCenter
Public propertyFrame
Gets the frame property of this control. The frame contains the controlcenter and the toolbars (if activated) and one or multiple views on the CAD model.
Public propertyLeftToolBars
Gets the Container for the left toolbars
Public propertyShowControlCenter
Sets or gets the value whether to show the ControlCenter or not. The ControlCenter is placed right to the drawing or display area and seperated by a splitter, so it's size can be modified by dragging the splitter This property must be set at design time or at least before the CADControl is created
Public propertyShowMenu
Gets or sets a value whether to show the Standard CADability Menu in the parent form of this control.
Public propertyShowToolBars
Gets or sets a value whether to show toolbars on the top and left side of the drawing or display area. The toolbars cam be moved around and positioned.
Public propertyToolBars
Specify the toolbars to be shown if ShowToolBars is true. A comma seperated list of the following items is expected: File, Edit, Zoom, Construct, Snap, Object
Public propertyTopToolBars
Gets the Container for the top toolbars

Events

  NameDescription
Public eventFilterDragDrop
Public eventFilterDragEnter
Public eventFilterDragGetData
Public eventFilterDragLeave
Public eventFilterDragOver
Public eventFilterKeyDown
Public eventFrameCreated
Public eventProcessCommandEvent
Provide a event handler if you want to be notified on command routed through this frame or to execute command handlers for some routed commands-
Public eventUpdateCommandEvent
Provide a event handler if you want to control the appearnce of commands in the menu or toolbar (set the enabled and check flags).

See Also