v2.13
IDrawing Interface Reference

Represents an architectural drawing. More...

Inheritance diagram for IDrawing:

Public Member Functions

HRESULT ExportToDxf ([in] BSTR filePath, [in] enum AutocadVersion autocadVersion, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult)
 Export the drawing to DXF file format. More...
 
HRESULT ExportToDwg ([in] BSTR filePath, [in] enum AutocadVersion autocadVersion, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult)
 Export the drawing to DWG file format. More...
 
HRESULT ExportToPdf ([in] BSTR filePath, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult)
 Export the drawing to PDF file format. More...
 
HRESULT ExportToOpenXps ([in] BSTR filePath, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult)
 Export the drawing to OpenXPS file format. More...
 
HRESULT GetTitleBlockInstance ([in] int index, [out, retval] ITitleBlockInstance **ppTitleBlockInstance)
 Returns the drawing title block instance by index.
 

Properties

BSTR Name [get]
 The name of the drawing.
 
GUID Id [get]
 The Id of the drawing.
 
BSTR IdS [get]
 The Id of the drawing as a string.
 
int TitleBlockInstanceCount [get]
 The drawing title block instance count.
 

Detailed Description

Represents an architectural drawing.

Allows the user to export a drawing to the DXF and DWG file formats.

Member Function Documentation

HRESULT IDrawing::ExportToDwg ( [in] BSTR  filePath,
[in] enum AutocadVersion  autocadVersion,
[in] VARIANT_BOOL  overwrite,
[out, retval] int *  pResult 
)

Export the drawing to DWG file format.

Parameters
[in]filePathThe file path of file to export.
[in]autocadVersionThe AutoCAD format version to target for.
[in]overwriteOverwrite the file if it exists
[out]pResultOperation result.
Returns
Zero if the drawing was successfully exported, non-zero otherwise.
HRESULT IDrawing::ExportToDxf ( [in] BSTR  filePath,
[in] enum AutocadVersion  autocadVersion,
[in] VARIANT_BOOL  overwrite,
[out, retval] int *  pResult 
)

Export the drawing to DXF file format.

Parameters
[in]filePathThe file path of file to export.
[in]autocadVersionThe AutoCAD format version to target for.
[in]overwriteOverwrite the file if it exists.
[out]pResultOperation result.
Returns
Zero if the drawing was successfully exported, non-zero otherwise.
HRESULT IDrawing::ExportToOpenXps ( [in] BSTR  filePath,
[in] VARIANT_BOOL  overwrite,
[out, retval] int *  pResult 
)

Export the drawing to OpenXPS file format.

Parameters
[in]filePathThe result file path.
[in]overwriteOverwrite the file if it exists.
[out]pResultOperation result.
Returns
Zero if the drawing was successfully exported, non-zero otherwise.
HRESULT IDrawing::ExportToPdf ( [in] BSTR  filePath,
[in] VARIANT_BOOL  overwrite,
[out, retval] int *  pResult 
)

Export the drawing to PDF file format.

Parameters
[in]filePathThe result file path.
[in]overwriteOverwrite the file if it exists.
[out]pResultOperation result.
Returns
Zero if the drawing was successfully exported, non-zero otherwise.