![]() |
v2.30
|
|
Provides methods to work with a Renga project. This interface can be obtained from IApplication interface. To edit Renga project use IOperation class. More...
Public Member Functions | |
HRESULT | CreateOperation ([out, retval] IOperation **ppOperation) |
Creates an operation. More... | |
HRESULT | CreateOperationWithUndo ([in] GUID modelId, [out, retval] IOperation **ppOperation) |
Creates an operation with undo history. More... | |
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 | 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 | 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 | 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 | ExportToIfc ([in] BSTR filePath, [in] VARIANT_BOOL overwrite, [out, retval] int *pResult) |
Exports the project to the IFC 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 | 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. | |
HRESULT | GetUndoStack ([in] GUID modelId, [out, retval] IUndoStack **ppUndoStack) |
The undo stack of the model See IProject::CreateOperationWithUndo. | |
HRESULT | HasActiveOperation ([out, retval] VARIANT_BOOL *pResult) |
Indicates whether the project has active operation. More... | |
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... | |
Provides methods to work with a Renga project. This interface can be obtained from IApplication interface. To edit Renga project use IOperation class.
HRESULT IProject::CreateOperation | ( | [out, retval] IOperation ** | ppOperation | ) |
HRESULT IProject::CreateOperationWithUndo | ( | [in] GUID | modelId, |
[out, retval] IOperation ** | ppOperation | ||
) |
Creates an operation with undo history.
Same as CreateOperation, but with Undo history
Each model (IModel) has associated undo history stack. For example Building model, Assembly model, Drawing model have different undo history stacks. Changes in one model may cause changes in another one but all the changeset will form one undo item and will belong to concrete undo stack. The plugin developer can control where this item will be placed. It should also be understood that the undo operation is disabled for project based Renga entities, e.g. styles, materials, etc. The undo operation is applicable only for model objects.
[in] | modelId | ID of the model that will own the undo history item. See IModel::Id. |
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::HasActiveOperation | ( | [out, retval] VARIANT_BOOL * | pResult | ) |
Indicates whether the project has active operation.
If there is an active operation then the plugin can not start another one.
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.