v2.32
 
IDrawing Interface Reference

Represents an architectural drawing. More...

Inheritance diagram for IDrawing:

Public Member Functions

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

Properties

GUID Id [get]
 The Id of the drawing.
 
BSTR IdS [get]
 The Id of the drawing as a string.
 
BSTR Name [get]
 The name of the drawing.
 
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

◆ ExportToDwg()

HRESULT 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.

◆ ExportToDxf()

HRESULT 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.

◆ ExportToOpenXps()

HRESULT 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.

◆ ExportToPdf()

HRESULT 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.