Public Methods
Activate | Activates the first window associated with the document. |
AuditInfo | Evaluates the integrity of the drawing. |
Close | Closes the document and all associated windows. |
EndUndoMark | Marks the end of a block of operations. |
Export | Exports the file to any of the supported formats. Optionally, pass in a selection set to export only a part of the file. Format is based on the extension in the FileName (default is the DXF format). |
GetLispVariable | Returns the value of a LISP variable. |
GetVariable | Returns the value of a system variable. |
HandleToObject | Finds an object with the given handle. |
Import | Imports files in DXF and other supported formats. |
LoadShapeFile | Load shape file and entry text style table as a shape library. |
NewWindow | Creates a new window for the document. |
ObjectIdToObject | Gets the object that corresponds to the given object ID. |
ObjectIdToObject32 | Gets the object that corresponds to the given object ID. |
PrintDrawing | Prints the document. |
PrintPreview | Previews a document with the current print settings. |
PurgeAll | Purges the document of all unused table objects. |
Regen | Purges the document of all unused table objects. |
Save | Save the document. |
SaveAs | Save the document to a different name and optionally a different version. The default version is R2007. |
SendCommand | Sends a command string from a VB or VBA application to the document for processing. |
SetLispVariable | Sets the value of a LISP variable. |
SetVariable | Sets the value of the specified system variable. |
StartUndoMark | Marks the beginning of a block of operations. |
WBlock | Writes out the block as a drawing file. Pass in a selection set containing the blocks to be written out. |
Public Properties
Active | Returns whether the document is active. |
ActiveDimStyle | Sets or returns the current dimstyle. |
ActiveLayer | Sets or returns the current layer. |
ActiveLayout | Specifies the active layout. |
ActiveLinetype | Sets or returns the current linetype. |
ActiveSelectionSet | Returns the currently active selection set. |
ActiveSpace | Sets or returns the current space (toggles between model space and paper space). |
ActiveTextStyle | Sets or returns the current text style. |
ActiveUCS | Sets or returns the current UCS. |
ActiveViewport | Sets or returns the current viewport. |
Application | Returns the Application object. |
Blocks | Returns the Block Collection object. |
Dictionaries | Gets the Dictionaries Collection for the document. |
DimensionStyles | Returns the Dimension Style Collection object. |
DimStyles | Returns the Dimension Style Collection object.(VBA compatibility only) |
ElevationModelSpace | Sets or returns the model space elevation. |
ElevationPaperSpace | Sets or returns the paper space elevation. |
FullName | Returns the full pathname of the document. |
Groups | Gets the Groups Collection for the document. |
Height | Sets or returns height in pixel of this document window. |
HWND | Returns handle of this document window. |
HWND32 | Returns handle of this document window. |
Layers | Returns the Layer Collection object. |
Layouts | Gets the Layouts Collection for the document. |
Limits | Sets or returns the drawing limits. |
Linetypes | Returns the Linetype Collection object. |
ModelSpace | Returns the Model Space Collection object. |
MSpace | Sets or returns the model space / paper space if tilemode is 0. |
Name | Returns the filename of the document (excluding path). |
ObjectSnapMode | Specifies the setting of the object snap mode. |
PaperSpace | Returns the Paper Space Collection object. |
Parent | Returns the parent of the object. |
Path | Returns the pathname of the document (excluding filename). |
PickfirstSelectionSet | Returns the currently active selection set. |
PlotConfigurations | Gets the PlotConfigurations Collection for the document. |
Preferences | Returns the document-level Preferences object. |
ReadOnly | Returns whether the document is read-only. |
RegisteredApplications | Returns the Application Collection object. |
Saved | Returns whether the document has been changed since creation or loading. |
SelectionSets | Returns the Selection Sets Collection object. |
SnapOn | Sets or returns whether object snaps are on. |
TextStyles | Returns the Text Style Collection object. |
UserCoordinateSystems | Returns the user coordinate system collection object. |
Utility | Returns the Utility object. |
Viewports | Returns the Viewport Collection object. |
Views | Returns the View Collection object. |
Width | Sets or returns width in pixel of this document window. |
WindowState | Specifies the state of the application or document window. |
WindowTitle | Gets the title of the document window. |
Events
BeginClose | Occurs when a request is received to close the drawing. |
BeginCommand | Occurs when receives a command. |
BeginDocClose | Occurs when a request is received to close the drawing. |
BeginDoubleClick | Occurs when the user double-clicks the drawing window. |
BeginLisp | Occurs when receives a request to evaluate a LISP expression. |
BeginPlot | Occurs when receives a request to print drawing. |
BeginRightClick | Occurs when the user right-clicks the drawing window. |
BeginSave | Occurs when receives a request to save the drawing. |
Deactivate | Occurs when a document window is deactivated. |
EndCommand | Occurs when a command completed. |
EndLisp | Occurs when evaluating of a LISP expression completed. |
EndPlot | Occurs when drawing has been sent to the printer. |
EndSave | Occurs when a request to save the drawing has been completed. |
LayoutSwitched | Occurs after a layout has been changed. |
LispCanceled | Occurs when evaluating of a LISP expression canceled. |
OnActivate | Occurs when a document window is activated. |
SelectionChanged | Occurs when the current selection set is changed. |
WindowChanged | Occurs when window state changed. |
WindowMovedOrResized | Occurs when window moved or resized. |