![]() |
COLNEO Pro 1.0
|
Project API interface. Register with "cnProjectAPI".
The Project API provides all project related functions such as ...
(c) COLNEO GmbH
Functions | |
PROJECT | |
ApiJsonResponse | create (QVariantMap settings) |
ApiJsonResponse | open (QString filepath) |
ApiJsonResponse | saveAs (QString &filepath) |
ApiJsonResponse | archive (QString &filepath) |
ApiJsonResponse | setInfo (QVariantMap &projectInfo) |
ApiJsonResponse | getEvaluation () |
ApiJsonResponse | getTemplates () |
ApiJsonResponse | getRecentProjects () |
ApiJsonResponse | removeRecentProject (QString &filename) |
ApiJsonResponse | importModel (QString &filepath, QVariantMap &importOptions=QVariantMap()) |
ApiJsonResponse | exportModels (QString &filePath, QList< QString > &modelList, QVariantMap &options) |
MODELS | |
ApiJsonResponse | createModel (QString &name, QString &domainCode, QVariantMap &settings=QVariantMap()) |
ApiJsonResponse | deleteModel (QString &id) |
ApiJsonResponse | getModels (QVariantMap &options=QVariantMap()) |
ApiJsonResponse | getModelMetaData (QString &id) |
MACROS | |
ApiJsonResponse | getMacros () |
ApiJsonResponse | getMacroById (QString &id) |
ApiJsonResponse | createMacro (QVariantMap ¯oAsJson) |
ApiJsonResponse | updateMacro (QString &id, QVariantMap ¯oAsJson) |
ApiJsonResponse | deleteMacro (QString &id) |
ApiJsonResponse | runMacro (QString &id) |
STYLES | |
ApiJsonResponse | getStyles () |
ApiJsonResponse | getStyleData (QString &styleId) |
ApiJsonResponse | createStyle (QVariantMap &styleData) |
ApiJsonResponse | updateStyle (QString &styleId, QVariantMap &styleData) |
ApiJsonResponse | deleteStyles (QStringList &styleIds) |
ApiJsonResponse | setStyle (QStringList &objectIds, QString &styleId) |
ApiJsonResponse | resetStyles (QStringList &objectIds=QStringList(), QVariantMap &filter=QVariantMap()) |
BOOKMARKS | |
ApiJsonResponse | getPropertyTypeBookmarks (QString &domainCode) |
ApiJsonResponse | applyBookmark (QString &bkmId, QString &domainCode) |
ApiJsonResponse | createBookmark (QString &domainCode, QVariantMap &bookmarkAsJson) |
ApiJsonResponse | deleteBookmark (QString &id) |
PROJECT | |
ApiJsonResponse | getInfo () |
|
slot |
Set visible columns from bookmark.
bkmId | |
domainCode |
|
slot |
Creates a project archive (zip).
filepath |
|
slot |
Create a new, empty project.
settings | {
name: "",
code: "",
description: ""
}
|
|
slot |
Create a bookmark in the given tree structure.
domainCode | |
bookmarkAsJson |
|
slot |
Create a new macro.
macroAsJson | {
}
|
|
slot |
Create a model in the given domain.
name | |
domainCode | |
settings |
|
slot |
...
styleData | {
}
|
|
slot |
Delete the bookmark with the given ID. The bookmarks for each tree structure are searched for the ID.
id |
|
slot |
...
id |
|
slot |
...
id |
|
slot |
...
styleIds | Style object ID or list of style object IDs. |
|
slot |
...
filePath | |
modelList | |
options |
|
slot |
...
|
slotinherited |
Get project information.
|
slot |
Get macro.
id |
|
slot |
Get list of available macros in project.
|
slot |
...
id | ID of model |
|
slot |
options |
|
slot |
Get list of property type bookmarks.
domainCode |
|
slot |
Get recent project as list.
|
slot |
...
styleId |
|
slot |
...
|
slot |
...
|
slot |
...
filepath | The file path of the model file, e.g "C:/MyModels/Test.ifc" |
importOptions | Import options {
format: "ifc",
transformation: {
dx: 0.0,
dy: 0.0,
dz: 0.0,
}
}
|
|
slot |
Open the project from a given file path.
filepath |
|
slot |
Removes a recent project with the given filename from the recent project list
|
slot |
...
objectIds | Object ID or list of object IDs. If empty, all objects will be considered. |
filter | {
???
}
|
|
slot |
Run (evaluates) a macro
id | ID of macro. |
|
slot |
Saves the project under the current file path
|
slot |
...
|
slot |
...
objectIds | |
styleId |
|
slot |
...
id | |
macroAsJson |
|
slot |