IAcadDocument
A DWGdirect drawing
Supported Platforms: Windows only
                            
Object Inheritance
Members
These members are part of this object:
Methods- CopyObjects
 
- HandleToObject
 
- ObjectIdToObject
 
- Open
 
- AuditInfo
 
- Import
 
- Export
 
- New
 
- Save
 
- SaveAs
 
- Wblock
 
- PurgeAll
 
- GetVariable
 
- SetVariable
 
- LoadShapeFile
 
- Regen
 
- Activate
 
- Close
 
- SendCommand
 
- StartUndoMark
 
- EndUndoMark
 
- StartTransaction
 
- EndTransaction
 
- AbortTransaction
 
- NumActiveTransactions
 
Properties- ModelSpace
 
- PaperSpace
 
- Blocks
 
- Groups
 
- DimStyles
 
- Layers
 
- Linetypes
 
- Dictionaries
 
- RegisteredApplications
 
- TextStyles
 
- UserCoordinateSystems
 
- Views
 
- Viewports
 
- ElevationModelSpace
 
- ElevationPaperSpace
 
- Limits
 
- Layouts
 
- PlotConfigurations
 
- Preferences
 
- FileDependencies
 
- SummaryInfo
 
- SectionManager
 
- Materials
 
- Plot
 
- ActiveLayer
 
- ActiveLinetype
 
- ActiveDimStyle
 
- ActiveTextStyle
 
- ActiveUCS
 
- ActiveViewport
 
- ActivePViewport
 
- ActiveSpace
 
- SelectionSets
 
- ActiveSelectionSet
 
- FullName
 
- Name
 
- Path
 
- ObjectSnapMode
 
- ReadOnly
 
- Saved
 
- MSpace
 
- Utility
 
- PickfirstSelectionSet
 
- Active
 
- WindowState
 
- Width
 
- Height
 
- ActiveLayout
 
- HWND
 
- WindowTitle
 
- Application
 
- Database
 
 
- CopyObjects()
 
VARIANT CopyObjects([in] VARIANT Objects, [in Owner,  optional] VARIANT,[in, out] Pointer Type IdPairs)
                                                
Duplicates multiple objects.
 
 
- HandleToObject()
 
IDispatch* HandleToObject([in] BSTR Handle)
                                                
Returns the object that corresponds with a specified handle.
 
 
- ObjectIdToObject()
 
IDispatch* ObjectIdToObject(LONG_PTRShort ObjectID)
                                                
Returns the object that corresponds with a specified object ID.
 
 
- Open()
 
IAcadDocument* Open([in] BSTR FullName, [in, optional] VARIANT Password)
                                                
Opens an existing drawing file (DWG) and makes it the active document
 
 
- AuditInfo()
 
Void AuditInfo([in] Boolean FixErr)
                                                
Evaluates the integrity of the drawing
 
 
- Import()
 
IDispatch* Import([in] BSTR FileName, [in] VARIANT InsertionPoint, [in] Double ScaleFactor)
                                                
Imports a drawing file in SAT, EPS, DXF, or WMF format
 
 
- Export()
 
Void Export([in] BSTR FileName, [in] BSTR Extension, [in] Pointer Type SelectionSet)
                                                
Exports the Argon drawing to a WMF, SAT, EPS, DXF, or BMP format
 
 
- New()
 
IAcadDocument* New([in] BSTR TemplateFileName)
                                                
Creates a new document in SDI mode
 
 
- Save()
 
Void Save( )
                                                
Saves the document or menu group
 
 
- SaveAs()
 
Void SaveAs([in] BSTR FullFileName, [in SaveAsType,  optional] VARIANT,[in, optional] VARIANT vSecurityParams)
                                                
Saves the document or menu group to a specified file
 
 
- Wblock()
 
Void Wblock([in] BSTR FileName, [in] Pointer Type SelectionSet)
                                                
Writes out the given selection set as a new drawing file
 
 
- PurgeAll()
 
Void PurgeAll( )
                                                
Removes unused named references such as unused Symbols or Layers from the document
 
 
- GetVariable()
 
VARIANT GetVariable([in] BSTR Name)
                                                
Gets the current setting of a system variable
 
 
- SetVariable()
 
Void SetVariable([in] BSTR Name, [in] VARIANT Value)
                                                
Sets the value of a system variable
 
 
- LoadShapeFile()
 
Void LoadShapeFile([in] BSTR FullName)
                                                
Loads a shape file (SHX)
 
 
- Regen()
 
Void Regen(AcRegenTypeShort WhichViewports)
                                                
Regenerates the entire drawing and recomputes the screen coordinates and view resolution for all objects
 
 
- Activate()
 
Void Activate( )
                                                
Makes the specified drawing active
 
 
- Close()
 
Void Close([in SaveChanges,  optional] VARIANT,[in, optional] VARIANT FileName)
                                                
Closes the specified drawing, or all open drawings
 
 
- SendCommand()
 
Void SendCommand([in] BSTR Command)
                                                
Sends a command string from a VB or VBA application to the document for processing
 
 
- StartUndoMark()
 
Void StartUndoMark( )
                                                
Marks the beginning of a block of operations
 
 
- EndUndoMark()
 
Void EndUndoMark( )
                                                
Marks the end of a block of operations
 
 
- StartTransaction()
 
Void StartTransaction( )
                                                
Starts a new transaction of this document
 
 
- EndTransaction()
 
Void EndTransaction( )
                                                
Ends the current transaction associated with this document
 
 
- AbortTransaction()
 
Void AbortTransaction( )
                                                
Aborts the current transaction associated with this document
 
 
- NumActiveTransactions()
 
Int NumActiveTransactions( )
                                                
Returns the number of active transactions associated with this document.
 
 
- ModelSpace [ReadOnly]
 
IAcadModelSpace* ModelSpace( )
                                                
Returns the ModelSpace collection for a document.
 
 
- PaperSpace [ReadOnly]
 
IAcadPaperSpace* PaperSpace( )
                                                
Returns the PaperSpace collection for a document.
 
 
- Blocks [ReadOnly]
 
IAcadBlocks* Blocks( )
                                                
Returns the Blocks collection for a document.
 
 
- Groups [ReadOnly]
 
IAcadGroups* Groups( )
                                                
Returns the Groups Collection object for a document.
 
 
- DimStyles [ReadOnly]
 
IAcadDimStyles* DimStyles( )
                                                
Returns the DimStyles Collection object for a document.
 
 
- Layers [ReadOnly]
 
IAcadLayers* Layers( )
                                                
Returns the Layers Collection object for a document.
 
 
- Linetypes [ReadOnly]
 
IAcadLineTypes* Linetypes( )
                                                
Returns the Linetypes Collection object for a document.
 
 
- Dictionaries [ReadOnly]
 
IAcadDictionaries* Dictionaries( )
                                                
Returns the Dictionaries Collection object for a document.
 
 
- RegisteredApplications [ReadOnly]
 
IAcadRegisteredApplications* RegisteredApplications( )
                                                
Returns the RegisteredApplications Collection object for a document.
 
 
- TextStyles [ReadOnly]
 
IAcadTextStyles* TextStyles( )
                                                
Returns the TextStyles Collection object of a document.
 
 
- UserCoordinateSystems [ReadOnly]
 
IAcadUCSs* UserCoordinateSystems( )
                                                
Returns the UCSs Collection object of a document.
 
 
- Views [ReadOnly]
 
IAcadViews* Views( )
                                                
Returns the Views Collection object of a document.
 
 
- Viewports [ReadOnly]
 
IAcadViewports* Viewports( )
                                                
Returns the Viewports Collection object of a document.
 
 
- ElevationModelSpace [ReadOnly]
 
Double ElevationModelSpace( )
                                                
Specifies or returns the elevation in modelspace.
 
 
- ElevationPaperSpace [ReadOnly]
 
Double ElevationPaperSpace( )
                                                
Specifies or returns the elevation in paperspace.
 
 
- Limits [ReadOnly]
 
VARIANT Limits( )
                                                
Specifies or returns the drawing limits of a document.
 
 
- Layouts [ReadOnly]
 
IAcadLayouts* Layouts( )
                                                
Returns the Layouts Collection object for a document.
 
 
- PlotConfigurations [ReadOnly]
 
IAcadPlotConfigurations* PlotConfigurations( )
                                                
Returns the PlotConfigurations Collection object for a document.
 
 
- Preferences [ReadOnly]
 
IAcadDatabasePreferences* Preferences( )
                                                
Returns the Preferences object for a document.
 
 
- FileDependencies [ReadOnly]
 
IAcadFileDependencies* FileDependencies( )
                                                
Returns the FileDependencies Collection object for a document.
 
 
- SummaryInfo [ReadOnly]
 
IAcadSummaryInfo* SummaryInfo( )
                                                
Returns the SummaryInfo object for a document.
 
 
- SectionManager [ReadOnly]
 
IAcadSectionManager* SectionManager( )
                                                
Returns the SectionManager Collection object for a document.
 
 
- Materials [ReadOnly]
 
IAcadMaterials* Materials( )
                                                
Returns the Materials Collection object for a document.
 
 
- Plot [ReadOnly]
 
IAcadPlot* Plot( )
                                                
Gets the Plot object for the document
 
 
- ActiveLayer [ReadOnly]
 
IAcadLayer* ActiveLayer( )
                                                
Specifies the active layer
 
 
- ActiveLinetype [ReadOnly]
 
IAcadLineType* ActiveLinetype( )
                                                
Specifies the active linetype for the drawing
 
 
- ActiveDimStyle [ReadOnly]
 
IAcadDimStyle* ActiveDimStyle( )
                                                
Specifies the active DimensionStyle
 
 
- ActiveTextStyle [ReadOnly]
 
IAcadTextStyle* ActiveTextStyle( )
                                                
Specifies the active TextStyle for the drawing
 
 
- ActiveUCS [ReadOnly]
 
IAcadUCS* ActiveUCS( )
                                                
Specifies the active CCS for the drawing
 
 
- ActiveViewport [ReadOnly]
 
IAcadViewport* ActiveViewport( )
                                                
Specifies the active viewport for the drawing
 
 
- ActivePViewport [ReadOnly]
 
IAcadPViewport* ActivePViewport( )
                                                
Specifies the active paper space viewport for the drawing
 
 
- ActiveSpace [ReadOnly]
 
AcActiveSpace ActiveSpace( )
                                                
Toggles the active space between paper space and model space
 
 
- SelectionSets [ReadOnly]
 
IAcadSelectionSets* SelectionSets( )
                                                
Gets the SelectionSets collection for the document
 
 
- ActiveSelectionSet [ReadOnly]
 
IAcadSelectionSet* ActiveSelectionSet( )
                                                
Gets the active selection set for the drawing
 
 
- FullName [ReadOnly]
 
BSTR FullName( )
                                                
Gets the name of the application or document, including the path
 
 
- Name [ReadOnly]
 
BSTR Name( )
                                                
Specifies the name of the object
 
 
- Path [ReadOnly]
 
BSTR Path( )
                                                
Gets the path of the document, application, or external reference
 
 
- ObjectSnapMode [ReadOnly]
 
Boolean ObjectSnapMode( )
                                                
Specifies the setting of the EntitySnap mode
 
 
- ReadOnly [ReadOnly]
 
Boolean ReadOnly( )
                                                
Specifies if the document is read-only or read-write
 
 
- Saved [ReadOnly]
 
Boolean Saved( )
                                                
Specifies if the document has any unsaved changes
 
 
- MSpace [ReadOnly]
 
Boolean MSpace( )
                                                
Allows editing of the model from floating paper space viewports
 
 
- Utility [ReadOnly]
 
IAcadUtility* Utility( )
                                                
Gets the Utility object for the document
 
 
- PickfirstSelectionSet [ReadOnly]
 
IDispatch* PickfirstSelectionSet( )
                                                
Gets the pickfirst selection set
 
 
- Active [ReadOnly]
 
Boolean Active( )
                                                
Determines if the document is the active document for the session
 
 
- WindowState
 
Void WindowState( )
                                                
Specifies the state of the application or document window
 
 
- Width
 
Void Width( )
                                                
Specifies the width of the text boundary, view, image, toolbar, or main application window
 
 
- Height
 
Void Height( )
                                                
Height of the attribute, shape, text, or view toolbar or the main application window
 
 
- ActiveLayout
 
Void ActiveLayout( )
                                                
Specifies the active sheet
 
 
- HWND [ReadOnly]
 
Integer HWND( )
                                                
Gets the window handle of the document window frame
 
 
- WindowTitle [ReadOnly]
 
BSTR WindowTitle( )
                                                
Gets the title of the document window
 
 
- Application [ReadOnly]
 
IAcadApplication* Application( )
                                                
Gets the Application object
 
 
- Database [ReadOnly]
 
IAcadDatabase* Database( )
                                                
Gets the database in which the object belongs