IDocument Interface Members

IDocument Interface Members | Send Feedback
See Also Properties Methods

The following tables list the members exposed by IDocument.

# Public Properties

| Name | Description
--- | --- | ---
| DimensionScale | Gets or sets the scale factor based on the ratio between the current Viewport and the drawing Sheet.
| ScaleUnit | Gets or sets the scale factor for DimensionStyle settings.

Top

# Public Methods

| Name | Description
--- | --- | ---
| Activate | Activates the document.
| Clean | Purges this document of the objects that are defined or loaded but not used.
| CopySheet | Creates a new Sheet by copying the specified existing Sheet.
| CreateBlockDefinition | Creates a Block definition.
| CreateGroup | Creates an EntityGroup, which combines the specified entities into a group that you can manipulate in a single operation.
| CreateHighlightSet | Creates a highlight selection set containing the specified entities.
| CreateLispFunction | Creates a LISP function that can be called from LISP.
| CreateSheet | Creates a Sheet using the specified name.
| CreateSheetByTemplate | Creates a Sheet based on a Sheet in another file.
| ErrorCheck | Checks the integrity of this document and optionally corrects errors.
| GetAngleUnitExpression | Gets the type of angular unit and its precision for the document.
| GetBaseAngle | Gets the base angle for the document.
| GetBlockDefinition | Gets the specified Block definition for the document.
| GetBlockDefinitions | Gets the Block definitions for the document.
| GetCommandOptionBool | Gets the Boolean value of the specified command option for the document.
| GetCommandOptionDouble | Gets the double value of the specified command option for the document.
| GetCommandOptionInt16 | Gets the 16-bit signed integer, also called Int16, value of the specified command option for the document.
| GetCommandOptionInt32 | Gets the 32-bit signed integer, also called Int32, value of the specified command option for the document.
| GetCommandOptionInt8 | Gets the 8-bit signed integer, also called Int8, value of the specified command option for the document.
| GetCommandOptionPoint2D | Gets the 2D point's coordinates for the specified command option in the document.
| GetCommandOptionPoint3D | Gets the 3D point's coordinates for the specified command option in the document.
| GetCommandOptionString | Gets the string value for the specified command option in the document.
| GetCustomCoordinateSystemManager | Creates a new instance of the custom coordinate system manager.
| GetDimensionStyleManager | Gets the DimensionStyle Manager.
| GetDocumentExporter | Gets the export feature for the document.
| GetDrawingProperties | Gets access to the standard (i.e., author, keywords, title, and subject) and custom properties of a drawing document.
| GetExternalReferences | Gets the external references for the document.
| GetGroup | Gets the specified EntityGroup, which contains entities that have been combined into a group that you can manipulate in a single operation.
| GetGroups | Gets the specified EntityGroups.
| GetHandleFromObject | Gets the handle of the specified object.
| GetLayerManager | Gets the Layer Manager for the document.
| GetLengthUnitExpression | Gets the type of linear unit and its precision for the document.
| GetLineStyleManager | Gets the LineStyle Manager.
| GetModel | Gets the model for the document.
| GetNamedObjectsDictionary | Gets the named-objects dictionary for the drawing.
| GetObjectByHandle | Gets an object by its handle.
| GetPathName | Gets the path and file name of the document.
| GetRegisteredApplications | Gets the names of the registered applications for the document's custom data.
| GetRichLineStyleManager | Gets the RichLineStyle Manager.
| GetSelectionManager | Gets the interface for selecting entities, which makes the currently and previously selected entity available.
| GetShapeManager | Gets the Shape Manager.
| GetSheet | Gets the specified Sheet.
| GetSheets | Obsolete. Superseded by IDocument::GetSheets2.
| GetSheets2 | Gets the Sheets for the document.
| GetTableStyleManager | Gets the TableStyle Manager.
| GetTextStyleManager | Gets the TextStyle Manager.
| GetViewManager | Gets the View Manager.
| GetWindow | Gets the DraftSight document window.
| HasBlockDefinition | Gets whether the specified Block definition is inserted in the document.
| HasSheet | Gets whether the document contains the specified Sheet.
| IsActive | Gets whether the document is active.
| IsDirty | Gets whether the document has been modified since it was opened and not saved.
| IsReadOnly | Gets whether the document is read only.
| Pan | Moves the visible portion of the drawing in the direction and distance defined through a vector.
| Rebuild | Rebuilds the document.
| RemoveLispFunction | Removes the specified LISP function so that it can no longer be called from LISP.
| RemoveSheet | Deletes the specified Sheet from the document.
| Save | Saves the document.
| SaveAs | Obsoleted. Superseded by IDocument::SaveAs2.
| SaveAs2 | Saves the document as the specified file name and file type.
| SetAngleUnitExpression | Sets the type of angular unit and its precision for the document.
| SetBaseAngle | Sets the base angle for the document.
| SetCommandOptionBool | Sets the Boolean value for the specified command option for the document.
| SetCommandOptionDouble | Sets the double value for the specified command option for the document.
| SetCommandOptionInt16 | Sets the 16-bit signed integer, also called Int16, value for the specified command option for the document.
| SetCommandOptionInt32 | Sets the 32-bit signed integer, also called Int32, value for the specified command option for the document.
| SetCommandOptionInt8 | Sets the 8-bit signed integer, also called Int8, value for the specified command option for the document.
| SetCommandOptionPoint2D | Sets the command option for the specified 2D point in the document.
| SetCommandOptionPoint3D | Sets the command option for the specified 3D point in the document.
| SetCommandOptionString | Sets the string value for the specified command option in the document.
| SetLengthUnitExpression | Sets the type of linear unit and its precision for the document.

Top

# See Also

####

IDocument Interface
DraftSight Namespace
IDocument Event DestroyNotify
IDocument Event FileSavePostNotify
IDocument Event FileSavePreNotify
IDocument Event ModifyNotify