Provides methods to query the current project. This interface can be obtained from IApplication interface. More...
Public Member Functions | |
HRESULT | HasFile ([out, retval] VARIANT_BOOL *pResult) |
Indicates whether the project has ever been saved. More... | |
HRESULT | HasUnsavedChanges ([out, retval] VARIANT_BOOL *pResult) |
Indicates whether the project has unsaved changes. More... | |
HRESULT | Save ([out, retval] int *pResult) |
Saves the project under its current filename. More... | |
HRESULT | SaveAs ([in] BSTR filePath, [in] enum ProjectType projectType, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult) |
Saves the project under the given filename. More... | |
HRESULT | ExportToIfc ([in] BSTR filePath, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult) |
Exports the project to the IFC file format. More... | |
HRESULT | ExportToCsv ([in] BSTR folderPath, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult) |
Exports the project data to CSV format. This method creates several CSV files in the given folder. More... | |
HRESULT | ExportDrawingsToPdf ([in] SAFEARRAY(GUID) drawingIds, [in] BSTR filePath, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult) |
Exports the collection of drawings to the PDF file format. More... | |
HRESULT | ExportToIfc2 ([in] BSTR filePath, [in] VARIANT_BOOL overwrite, [in] IIfcExportSettings *pIfcExportSettings, [out, retval] int *pResult) |
Exports the project to the IFC file format. More... | |
HRESULT | ExportDrawingsToPdfS ([in] SAFEARRAY(BSTR) drawingIds, [in] BSTR filePath, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult) |
Same as ExportDrawingsToPdf, but accepting GUID as a string. | |
HRESULT | ExportDrawingsToOpenXpsS ([in] SAFEARRAY(BSTR) drawingIds, [in] BSTR filePath, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult) |
Exports the collection of drawings to the OpenXPS file format. More... | |
HRESULT | CreateOperation ([out, retval] IOperation **ppOperation) |
Creates an operation. More... | |
HRESULT | GetEntityNumberInTopic ([in] GUID entityId, [out, retval] int *pResult) |
Returns the number of the specified entity in it's Topic. | |
HRESULT | GetEntityNumberInTopicS ([in] BSTR entityId, [out, retval] int *pResult) |
Same as GetEntityNumberInTopic, but accepting GUID as a string. | |
Provides methods to query the current project. This interface can be obtained from IApplication interface.
HRESULT IProject::CreateOperation | ( | [out, retval] IOperation ** | ppOperation | ) |
HRESULT IProject::ExportDrawingsToOpenXpsS | ( | [in] SAFEARRAY(BSTR) | drawingIds, |
[in] BSTR | filePath, | ||
[in] VARIANT_BOOL | overwrite, | ||
[out, retval] int * | pResult | ||
) |
Exports the collection of drawings to the OpenXPS file format.
[in] | drawingIds | An array of identifiers of drawings to export. |
[in] | filePath | File path. |
[in] | overwrite | A flag that controls the behavior in the case the OXPS file with the same name already exists: VARIANT_TRUE to overwrite, VARIANT_FALSE to return a failure code. |
[out] | pResult | Operation result. |
HRESULT IProject::ExportDrawingsToPdf | ( | [in] SAFEARRAY(GUID) | drawingIds, |
[in] BSTR | filePath, | ||
[in] VARIANT_BOOL | overwrite, | ||
[out, retval] int * | pResult | ||
) |
Exports the collection of drawings to the PDF file format.
[in] | drawingIds | An array of identifiers of drawings to export. |
[in] | filePath | File path. |
[in] | overwrite | A flag that controls the behavior in the case the PDF file with the same name already exists: VARIANT_TRUE to overwrite, VARIANT_FALSE to return a failure code. |
[out] | pResult | Operation result. |
HRESULT IProject::ExportToCsv | ( | [in] BSTR | folderPath, |
[in] VARIANT_BOOL | overwrite, | ||
[out, retval] int * | pResult | ||
) |
Exports the project data to CSV format. This method creates several CSV files in the given folder.
[in] | folderPath | File path. |
[in] | overwrite | A flag that controls the behavior in the case one of the CSV file with the same name already exists: VARIANT_TRUE to overwrite, VARIANT_FALSE to return a failure code. |
[out] | pResult | Operation result. |
HRESULT IProject::ExportToIfc | ( | [in] BSTR | filePath, |
[in] VARIANT_BOOL | overwrite, | ||
[out, retval] int * | pResult | ||
) |
Exports the project to the IFC file format.
[in] | filePath | File path. |
[in] | overwrite | A flag that controls the behavior in the case an IFC file with the same name already exists: VARIANT_TRUE to overwrite, VARIANT_FALSE to return a failure code. |
[out] | pResult | Operation result. |
HRESULT IProject::ExportToIfc2 | ( | [in] BSTR | filePath, |
[in] VARIANT_BOOL | overwrite, | ||
[in] IIfcExportSettings * | pIfcExportSettings, | ||
[out, retval] int * | pResult | ||
) |
Exports the project to the IFC file format.
[in] | filePath | File path. |
[in] | overwrite | A flag that controls the behavior in the case an IFC file with the same name already exists: VARIANT_TRUE to overwrite, VARIANT_FALSE to return a failure code. |
[in] | pIfcExportSettings | The IFC export settings. |
[out] | pResult | Operation result. |
HRESULT IProject::HasFile | ( | [out, retval] VARIANT_BOOL * | pResult | ) |
Indicates whether the project has ever been saved.
Use this function to distinguish new projects from ones that have already been saved.
HRESULT IProject::HasUnsavedChanges | ( | [out, retval] VARIANT_BOOL * | pResult | ) |
Indicates whether the project has unsaved changes.
HRESULT IProject::Save | ( | [out, retval] int * | pResult | ) |
Saves the project under its current filename.
If there is no project open or there is no current filename, no prompts are shown to user, and a non-zero value is returned.
HRESULT IProject::SaveAs | ( | [in] BSTR | filePath, |
[in] enum ProjectType | projectType, | ||
[in] VARIANT_BOOL | overwrite, | ||
[out, retval] int * | pResult | ||
) |
Saves the project under the given filename.
[in] | filePath | The file name of the project. |
[in] | projectType | The file format to save the project in: either a template (*.rnt) or a project (*.rnp). |
[in] | overwrite | A flag that controls the behavior in the case the project file already exists: pass VARIANT_TRUE to overwrite or VARIANT_FALSE to return a failure code. |
[out] | pResult | Operation result. |
|
get |
Returns the collection of all the drawings in the project.
|
get |
Returns the collection of all the drawings in the project as IEntity.
|
get |
|
get |
The plumbing fixture style manager.
|
get |
The system style manager.