IApplication Interface Methods Send Feedback
See Also 

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

Public Methods

 NameDescription
 MethodAbortRunningCommandAborts the command that is executing.  
 MethodAddCommandContextMenuAdds a menu item to the specified command's context-sensitive menu.  
 MethodAddDefaultContextMenuAdds a menu item to the DraftSight default context-sensitive menu.  
 MethodAddMenuAdds a menu item to the DraftSight user interface.  
 MethodAddObjectContextMenuAdds a menu item to the specified object type's context-sensitive menu.  
 MethodAddToolbarAdds a toolbar to the DraftSight user interface.  
 MethodCloseDocumentCloses the specified document.  
 MethodCreateColorPickerGets access to the DraftSight color picker, which allows users to assign standard and custom LineColors directly to entities, by Layer, or by Block.  
 MethodCreateCommandObsolete. Superseded by IApplication::CreateCommand2.  
 MethodCreateCommand2Creates a command for the command window.  
 MethodCreateCustomPropertyControlObsolete. Superseded by IApplication::CreateCustomPropertyControl2.  
 MethodCreateCustomPropertyControl2Creates a custom tab.  
 MethodCreateLineStyleCreates a simple LineStyle.  
 MethodCreateTrackerCreates a tracker, the mechanism that draws temporary entities along the cursor's path when prompting a user for a value, keyword, or selection.  
 MethodCreateUserCommandCreates a command for a menu item and toolbar.  
 MethodExitApplicationExits DraftSight.  
 MethodGetActiveDocumentGets the active document.  
 MethodGetApplicationOptionsGets access to DraftSight application options.  
 MethodGetColorByIndexGets the LineColor using the specified index within the Standard Colors.  
 MethodGetCommandMessageGets the message in the command window.  
 MethodGetContextMenuItemsGets the top-level context-sensitive menu items added by IApplication::AddCommandContextMenu, IApplication::AddDefaultContextMenu, and IApplication::AddObjectContextMenu.  
 MethodGetDocumentsGets the open documents.  
 MethodGetDrawingSupportFilesGets 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.  
 MethodGetEntityHelperGets the IEntityHelper interface.  
 MethodGetHWNDGets the DraftSight application window handle.  
 MethodGetInterfaceFilesGets access to the DraftSight options that get and set default paths for these user-interface files: alias, custom icon, main customization, and custom menu.  
 MethodGetLanguageGets the name of the language supported by this DraftSight installation.  
 MethodGetLineStyleListFromFileGets the names of the simple LineStyles and their descriptions contained in the specified LineStyle file.  
 MethodGetMacroManagerGets the macro manager, which manages macro recording and which is available in DraftSight Premium only.  
 MethodGetMainWindowGets the DraftSight application window.  
 MethodGetMathUtilityGets the IMathUtility interface.  
 MethodGetMenuItemsGets menu items.  
 MethodGetMessageFolderGets the path of DraftSight's messages folder.  
 MethodGetNamedColorGets the named LineColor.  
 MethodGetObjectTypeGets the type of specified object.  
 MethodGetPreviewBitmapGets the preview bitmap of the specified document.  
 MethodGetPreviewBitmapBytesGets a byte array of the preview bitmap for the specified document.  
 MethodGetPreviewBitmapFileGets the preview bitmap of the specified document and saves it as a Windows bitmap file (.bmp) using the specified file name.  
 MethodGetPreviewOfEntitiesCreates a preview bitmap of the specified entities and returns a byte array of the bitmap.  
 MethodGetPrintManagerGets the interface for printing.  
 MethodGetRecentFilesGets the paths and file names of the files most recently opened in DraftSight.  
 MethodGetRGBColorGets the LineColor for the specified RGB (Red, Green, Blue) color model values.  
 MethodGetRunningCommandGets the name of the executing command.  
 MethodGetSystemFilesGets access to the DraftSight options that get and set these system files: dictionary, font, Help, log, and support.  
 MethodGetToolbarsGets the toolbars.  
 MethodGetVersionGets the version of DraftSight.  
 MethodIsTemporaryEntityGets whether the specified entity is a temporary entity.  
 MethodNewDocumentCreates a new document using the specified template.  
 MethodOpenDocumentObsolete. Superseded by IApplication::OpenDocument2.  
 MethodOpenDocument2Opens the specified document.  
 MethodRecoverRecovers a damaged drawing file.  
 MethodRegisterOnIdleNotifyPost an event to the event queue.  
 MethodRemoveCommandRemoves the specified command.  
 MethodRemoveUserInterfaceRemoves an add-in's user interface from the DraftSight user interface.  
 MethodRunCommandRuns the specified command.  
 MethodRunScriptRuns the specified script.  
 MethodZoomZooms to a region of the drawing determined by the specified range and entities.  
Top

See Also