IApplication Interface Methods

IApplication Interface Methods | Send Feedback
See Also |

For a list of all members of this type, see IApplication members.

# Public Methods

| Name | Description
--- | --- | ---
| AbortRunningCommand | Aborts the command that is executing.
| AddCommandContextMenu | Adds a menu item to the specified command's context-sensitive menu.
| AddDefaultContextMenu | Adds a menu item to the DraftSight default context-sensitive menu.
| AddMenu | Adds a menu item to the DraftSight user interface.
| AddObjectContextMenu | Adds a menu item to the specified object type's context-sensitive menu.
| AddToolbar | Adds a toolbar to the DraftSight user interface.
| CloseDocument | Closes the specified document.
| CreateColorPicker | Gets access to the DraftSight color picker, which allows users to assign standard and custom LineColors directly to entities, by Layer, or by Block.
| CreateCommand | Obsolete. Superseded by IApplication::CreateCommand2.
| CreateCommand2 | Creates a command for the command window.
| CreateCustomPropertyControl | Obsolete. Superseded by IApplication::CreateCustomPropertyControl2.
| CreateCustomPropertyControl2 | Creates a custom tab.
| CreateLineStyle | Creates a simple LineStyle.
| CreateTracker | Creates a tracker, the mechanism that draws temporary entities along the cursor's path when prompting a user for a value, keyword, or selection.
| CreateUserCommand | Creates a command for a menu item and toolbar.
| ExitApplication | Exits DraftSight.
| GetActiveDocument | Gets the active document.
| GetApplicationOptions | Gets access to DraftSight application options.
| GetColorByIndex | Gets the LineColor using the specified index within the Standard Colors.
| GetCommandMessage | Gets the message in the command window.
| GetContextMenuItems | Gets the top-level context-sensitive menu items added by IApplication::AddCommandContextMenu, IApplication::AddDefaultContextMenu, and IApplication::AddObjectContextMenu.
| GetDocuments | Gets the open documents.
| GetDrawingSupportFiles | Gets access to the DraftSight options that get and set default paths and file names for these drawing-support files: alternate font, drawing, drawing template, external references, font mapping, library, LineStyle, and RichLineStyle.
| GetEntityHelper | Gets the IEntityHelper interface.
| GetHWND | Gets the DraftSight application window handle.
| GetInterfaceFiles | Gets access to the DraftSight options that get and set default paths for these user-interface files: alias, custom icon, main customization, and custom menu.
| GetLanguage | Gets the name of the language supported by this DraftSight installation.
| GetLineStyleListFromFile | Gets the names of the simple LineStyles and their descriptions contained in the specified LineStyle file.
| GetMacroManager | Gets the macro manager, which manages macro recording and which is available in DraftSight Premium only.
| GetMainWindow | Gets the DraftSight application window.
| GetMathUtility | Gets the IMathUtility interface.
| GetMenuItems | Gets menu items.
| GetMessageFolder | Gets the path of DraftSight's messages folder.
| GetNamedColor | Gets the named LineColor.
| GetObjectType | Gets the type of specified object.
| GetPreviewBitmap | Gets the preview bitmap of the specified document.
| GetPreviewBitmapBytes | Gets a byte array of the preview bitmap for the specified document.
| GetPreviewBitmapFile | Gets the preview bitmap of the specified document and saves it as a Windows bitmap file (.bmp) using the specified file name.
| GetPreviewOfEntities | Creates a preview bitmap of the specified entities and returns a byte array of the bitmap.
| GetPrintManager | Gets the interface for printing.
| GetRecentFiles | Gets the paths and file names of the files most recently opened in DraftSight.
| GetRGBColor | Gets the LineColor for the specified RGB (Red, Green, Blue) color model values.
| GetRunningCommand | Gets the name of the executing command.
| GetSystemFiles | Gets access to the DraftSight options that get and set these system files: dictionary, font, Help, log, and support.
| GetToolbars | Gets the toolbars.
| GetVersion | Gets the version of DraftSight.
| IsTemporaryEntity | Gets whether the specified entity is a temporary entity.
| NewDocument | Creates a new document using the specified template.
| OpenDocument | Obsolete. Superseded by IApplication::OpenDocument2.
| OpenDocument2 | Opens the specified document.
| Recover | Recovers a damaged drawing file.
| RegisterOnIdleNotify | Post an event to the event queue.
| RemoveCommand | Removes the specified command.
| RemoveUserInterface | Removes an add-in's user interface from the DraftSight user interface.
| RunCommand | Runs the specified command.
| RunScript | Runs the specified script.
| Zoom | Zooms to a region of the drawing determined by the specified range and entities.

Top

# See Also

####

IApplication Interface
DraftSight Namespace
IApplication Event ActiveDocumentChangedNotify
IApplication Event DestroyNotify
IApplication Event FileNewNotify
IApplication Event FileOpenPostNotify
IApplication Event FileOpenPreNotify