![]() |
v2.50
|
|
Represents an architectural drawing. This interface can be obtained as an additional interface from IEntity if the entity is a drawing. More...
Public Member Functions | |
| HRESULT | CreateDwgDxfExportSettings ([out, retval] IDwgDxfExportSettings **ppDwgDxfExportSettings) |
| Creates the instance of DWG/DXF export settings. | |
| HRESULT | ExportToDwg ([in] BSTR filePath, [in] enum AutocadVersion autocadVersion, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult) |
| Exports the drawing to DWG file format. | |
| HRESULT | ExportToDwg2 ([in] BSTR filePath, [in] enum AutocadVersion autocadVersion, [in] IDwgDxfExportSettings *pDwgDxfExportSettings, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult) |
| Exports the drawing to DWG file format. | |
| HRESULT | ExportToDxf ([in] BSTR filePath, [in] enum AutocadVersion autocadVersion, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult) |
| Exports the drawing to DXF file format. | |
| HRESULT | ExportToDxf2 ([in] BSTR filePath, [in] enum AutocadVersion autocadVersion, [in] IDwgDxfExportSettings *pDwgDxfExportSettings, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult) |
| Exports the drawing to DXF file format. | |
| HRESULT | ExportToOpenXps ([in] BSTR filePath, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult) |
| Exports the drawing to OpenXPS file format. | |
| HRESULT | ExportToPdf ([in] BSTR filePath, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult) |
| Exports the drawing to PDF file format. | |
| HRESULT | GetTitleBlockInstance ([in] int index, [out, retval] ITitleBlockInstance **ppTitleBlockInstance) |
| Returns the drawing title block instance by index. | |
| HRESULT | GetTransformFromEmbeddedModelView ([in] int embeddedModelViewId, [in] int viewPartIndex, [out, retval] ITransform3D **transform) |
| Returns the transformation matrix that maps points from the drawing coordinate system into the building model coordinate system according to the given emebedded model view. The matrix transforms 3D points: the input point should contain drawing coordinates in X and Y, while Z must be set to 0 (because drawings are 2D). | |
Represents an architectural drawing. This interface can be obtained as an additional interface from IEntity if the entity is a drawing.
Allows the user to export a drawing to the DXF and DWG file formats.
| HRESULT ExportToDwg | ( | [in] BSTR | filePath, |
| [in] enum AutocadVersion | autocadVersion, | ||
| [in] VARIANT_BOOL | overwrite, | ||
| [out, retval] int * | pResult ) |
Exports the drawing to DWG file format.
| [in] | filePath | The file path of file to export. |
| [in] | autocadVersion | The AutoCAD format version to target for. |
| [in] | overwrite | Overwrite the file if it exists |
| [out] | pResult | Operation result. |
| HRESULT ExportToDwg2 | ( | [in] BSTR | filePath, |
| [in] enum AutocadVersion | autocadVersion, | ||
| [in] IDwgDxfExportSettings * | pDwgDxfExportSettings, | ||
| [in] VARIANT_BOOL | overwrite, | ||
| [out, retval] int * | pResult ) |
Exports the drawing to DWG file format.
| [in] | filePath | The file path of file to export. |
| [in] | autocadVersion | The AutoCAD format version to target for. |
| [in] | overwrite | Overwrite the file if it exists |
| [in] | pDwgDxfExportSettings | The DWG/DXF export settings. |
| [out] | pResult | Operation result. |
| HRESULT ExportToDxf | ( | [in] BSTR | filePath, |
| [in] enum AutocadVersion | autocadVersion, | ||
| [in] VARIANT_BOOL | overwrite, | ||
| [out, retval] int * | pResult ) |
Exports the drawing to DXF file format.
| [in] | filePath | The file path of file to export. |
| [in] | autocadVersion | The AutoCAD format version to target for. |
| [in] | overwrite | Overwrite the file if it exists. |
| [out] | pResult | Operation result. |
| HRESULT ExportToDxf2 | ( | [in] BSTR | filePath, |
| [in] enum AutocadVersion | autocadVersion, | ||
| [in] IDwgDxfExportSettings * | pDwgDxfExportSettings, | ||
| [in] VARIANT_BOOL | overwrite, | ||
| [out, retval] int * | pResult ) |
Exports the drawing to DXF file format.
| [in] | filePath | The file path of file to export. |
| [in] | autocadVersion | The AutoCAD format version to target for. |
| [in] | overwrite | Overwrite the file if it exists. |
| [in] | pDwgDxfExportSettings | The DWG/DXF export settings. |
| [out] | pResult | Operation result. |
| HRESULT ExportToOpenXps | ( | [in] BSTR | filePath, |
| [in] VARIANT_BOOL | overwrite, | ||
| [out, retval] int * | pResult ) |
Exports the drawing to OpenXPS file format.
| [in] | filePath | The result file path. |
| [in] | overwrite | Overwrite the file if it exists. |
| [out] | pResult | Operation result. |
| HRESULT ExportToPdf | ( | [in] BSTR | filePath, |
| [in] VARIANT_BOOL | overwrite, | ||
| [out, retval] int * | pResult ) |
Exports the drawing to PDF file format.
| [in] | filePath | The result file path. |
| [in] | overwrite | Overwrite the file if it exists. |
| [out] | pResult | Operation result. |
| HRESULT GetTransformFromEmbeddedModelView | ( | [in] int | embeddedModelViewId, |
| [in] int | viewPartIndex, | ||
| [out, retval] ITransform3D ** | transform ) |
Returns the transformation matrix that maps points from the drawing coordinate system into the building model coordinate system according to the given emebedded model view. The matrix transforms 3D points: the input point should contain drawing coordinates in X and Y, while Z must be set to 0 (because drawings are 2D).
| [in] | embeddedModelViewId | The Id of embedded model view object |
| [in] | viewPartIndex | The zero-based index of view part for which the transform will be obtained. This parameter only makes sense for embedded section views which were formed by section with multiple planes. For one-plane section view and for other embedded model views this parameter should be equal 0. |
| [out] | transform | The resulting transformation matrix. |
See an example of using this method below: