#include <domainBim/AutomationAPI.h>
Public Slots | |
FIND OBJECTS | |
bool | hasElement (QString id) |
QStringList | getRootContainerList (QString modelName) |
QString | findContainerByName (const QString &parentId, const QString &name, const QString &lookupDomain="all") |
QString | getContainerByName (QString parentId, QString name) |
bool | isContainer (QString id) |
QVariantList | findDocumentsByLocationGps (double lat, double lon, double distance, QStringList idList=QStringList()) |
QVariantList | findDocumentsByLocationRangeGps (QStringList gpsCoordinates, double distance, QStringList idList=QStringList()) |
QVariantList | findDocumentsByLocationGk (double rw, double hw, double distance, QStringList idList=QStringList()) |
QStringList | findDocumentsByDate (QDateTime start, QDateTime end, QStringList idList=QStringList(), bool useRef=false) |
DOCUMENTS - SYNC, METADATA | |
int | synchronizeDocumentContainer (QString containerId, QScriptValue callback=QScriptValue(), bool blockExecution=false) |
void | resetDocumentMetaData (QString objId) |
ACTIVITIES - TOOLS | |
QVariantMap | getVisualisationList () |
int | setVisualisationByID (QString taskIDList, QString visID) |
int | removeVisualisation (QString taskIDList) |
int | setTaskMode (QString taskID, int mode) |
int | recalculateActivityProject (QString taskID=QString(), bool visibleOnly=false) |
QVariantMap | calcPropertyValuesOverTime (QString propName, QString propType, QVariantMap options) |
ACTIVITIES - CALENDAR | |
QStringList | getCalendarList () |
QString | getCalendarByName (QString name) |
QString | getCalendarByTask (QString taskID, bool checkInh=true) |
int | setCalendar (QString taskID, QString calendarID) |
int | removeCalendarFromTask (QString taskID) |
int | setCalendarOptions (QString calendarID, QVariantMap options) |
QVariantMap | getCalendarOptions (QString calendarID) |
int | calcWorkInMinutes (QDateTime start, QDateTime finish, QString calendarID=QString()) |
ACTIVITIES - TASK RESTRICTIONS | |
QStringList | getTaskRestrictionsList () |
QString | getTaskRestrictionsByName (QString name) |
int | setTaskRestrictions (QString taskID, QString restrictionsID) |
int | removeTaskRestrictions (QString taskID) |
BOQ - TOOLS | |
int | setBoQBreakdownStructure (QString boqModelID, QString templateStr) |
![]() | |
QString | addDays (QString dateStr, int nrDays) |
QString | timeStamp (QString format=QString()) |
int | getCalendarWeek (QDateTime dt) |
QString | format (double v, int dec=2, QString frmt="%L1", int fieldWidth=10, QChar fillChar=QChar::Nbsp) |
QString | formatDateTime (QDateTime dt, QString formatstr="iso") |
QString | createID () |
long | calcHashcode (QString str) |
QString | compressToIfcGuid (QString id) |
QString | uncompressFromIfcGuid (QString ifcGuid) |
bool | checkRegExp (QString value, QString pattern) |
double | calcSlantedArea (QString objId, double angleMin=0.0, double angleMax=45.0) |
QVariantMap | calcGpsCoordsByStation (QString objId, double station) |
QVariantMap | calcGpsCoordsByModelCoords (double x, double y) |
QVariantMap | calcModelCoordsByGpsCoords (double lat, double lon) |
QVariantMap | calcGkCoordsByGpsCoords (double lat, double lon) |
QVariantMap | calcGpsCoordsByGkCoords (double rw, double hw) |
QString | idListToStr (QStringList idList) |
QStringList | strToIdList (QString strIDList) |
QVariantMap | getFileInfo (QString filePath) |
QString | getAbsolutePath (QString filePath) |
QString | getBaseName (QString filePath) |
QString | getFileName (QString filePath) |
QString | getApplicationDirectory () |
QString | getApplicationFilename () |
virtual QString | getApplicationLanguage () |
QString | getVersionAsString () |
int | getVersionMAJOR () |
int | getVersionMINOR () |
int | getVersionBUILD () |
QVariantMap | getVersion () |
bool | requireVersion (int major, int minor, int patch) |
QString | getUserName () |
QString | getProjectID () |
int | getProjectVariantNumber () |
int | getProjectVersionNumber () |
QString | getProjectNumber () |
int | setProjectNumber (QString s, bool overwriteExisting=false) |
QString | getProjectName () |
QString | getProjectShortDescription () |
int | setProjectShortDescription (QString s, bool overwriteExisting=false) |
QString | getProjectLongDescription () |
int | setProjectLongDescription (QString s, bool overwriteExisting=false) |
QString | getProjectDirectory () |
QString | getLocation () |
QVariantMap | getProjectLocation () const |
QVariantMap | getCloudSettings () |
QVariantMap | getProjectInfo () |
QString | getDomainByElement (QString objId) |
QVariant | getPropertyValue (QString objId, QString propName, QString propType, bool inh=true) |
QList< QVariant > | getPropertyValuesByObject (QString objId, QString filterpattern="*") |
QVariant | getPropertySource (QString objId, QString propName, QString propType, bool inh=true) |
QString | getPropertyUnit (QString objId, QString propName, QString propType, bool inh=true) |
QString | getPropertyUnit (QString propName, QString propType) |
QVariant | getPropertyValueByDate (QString objId, QString propName, QString propType, bool inh=true) |
QDateTime | getPropertyLastDate (QString objId, QString propName, QString propType, bool inh=true) |
QDateTime | getPropertyFirstDate (QString objId, QString propName, QString propType, bool inh) |
QVariantMap | getPropertyDateListAsJSON (QString objId, QString propName, QString propType, bool inh=true) |
QVariantList | getPropertyDateList (QString objectId, QString propertyBaseName, QString propertyType) |
QVariantMap | getPropertyTypesByObject (QString objId, QString filterPattern="*") |
QVariantMap | getPropertyTypesByDomain (QString domainName, QString filterPattern="*") |
QVariantMap | getPropertyTypeMetaData (QString propName, QString propType) |
QList< QVariant > | getPropertyTypeList (QString domain="all", QString filterPattern="*", bool activeOnly=false) |
QList< QVariant > | getPropertyTypeListByObject (QString objId, QString filterPattern="*") |
bool | isPropertyInherited (QString objId, QString propName, QString propType) |
QString | getPropertyValueRange (QString idList, QString propName, QString propType, QString domainFilter="geometry") |
QStringList | getPropertyValueList (QString propName, QString propType, int maxValues) |
QString | getPropertyValueAsString (QString objId, QString propName, QString propType, bool inh=true) |
QVariant | evaluateFormula (QString code, QString id, QString id_otherdomain=QString()) |
QString | prepareJsCode (QString code, QString id, int dec=-1, QString frmt="%L1", int fieldWidth=10, QChar fillChar=QChar()) |
QStringList | extractPropertyNames (const QString &code, const QString &startTag="[[", const QString &endTag="]]") |
QStringList | getLinkedObjects (QString objectIDList, QString resultDomains="all", QString objectLookupDomains="all") |
QStringList | getTasksByObjectList (QString idList) |
QStringList | getObjectsByTaskList (QString idList) |
QStringList | getDocumentsByObjectList (QString idList) |
QStringList | getObjectsByDocumentList (QString idList) |
QStringList | getSectionsByObjectList (QString idList) |
QStringList | getObjectsBySectionList (QString idList) |
QStringList | getTypesByObjectList (QString idList) |
QStringList | getObjectsByTypeList (QString idList) |
QStringList | getResourcesByObjectList (QString idList) |
QStringList | getObjectsByResourcesList (QString idList) |
QStringList | getBoQItemsByObjectList (QString idList) |
QStringList | getObjectsByBoQItemList (QString idList) |
QStringList | getPcItemsByObjectList (QString idList) |
QStringList | getObjectsByPcItemList (QString idList) |
QStringList | getContainedElements (QString containerId, int maxDepth, bool loadExternal=true) |
int | countContainedElements (QString containerId, int maxDepth, bool loadExternal=true) |
QString | getParent (QString objId) |
QStringList | getOpenings (QString objId) |
QStringList | getParts (QString objId) |
bool | isVisible (QString objId) |
bool | isSelected (QString objId) |
bool | isLocked (QString objId) |
bool | isWired (QString objId) |
QVariantList | getPointList (QString objId) |
QVariantMap | getPointOnAlignmentAtStation (QString alignmentId, double d) |
double | getStationOfProjectedPoint (QString alignmentId, double x, double y, double z=0.0) |
QStringList | getRegionsOfAlignment (QString alignmentId) |
QVariantList | getRangesOfRegion (QString alignmentID, QString regionID) |
double | getValueOfAlignmentRegion (QString alignmentID, QString regionID) |
int | getTaskMode (QString taskID) |
QString | getTaskVisualisation (QString taskID) |
QString | getTaskRestrictionsByTask (QString taskID) |
int | updateRuleBasedLinks (QString domainName, bool visibleOnly=false) |
int | removeRuleBasedLinks (QString domainName) |
Public Member Functions | |
SELECTION SETS | |
QString | createSelectionSets (QString propertyTypes, QString rootName, QVariantMap config=QVariantMap()) |
QStringList | getRootNodeListSelectionSets (QString domainFilter="all") |
int | addToSelectionSetGeometry (QString setId, QString objectIDList) |
int | removeFromSelectionSetGeometry (QString setId, QString objectIDs) |
QString | createSelectionSet (QString name, QString parentID=QString()) |
bool | removeSelectionSet (QString selsetID) |
int | updateSmartSets (QStringList smartSetIDs=QStringList()) |
MODELS | |
QString | getModelByName (QString name, QString domainFilter="geometry") |
QString | getModelByElement (QString id, QString domainFilter="all") |
QString | getRootContainerByName (QString modelName, QString rootContainerName) |
QStringList | getModelListByName (QString name, QString domain="geometry") |
QStringList | getModelListByDomain (QString domainFilter="all") |
QString | getRootNodeByModel (QString modelId) |
QStringList | getRootNodeListByDomain (QString domainFilter="all") |
QString | createModel (QString name, bool createRootC=true, QString domain="geometry") |
QVariantMap | getModelMetaData (QString modelId) |
int | deleteModel (const QString &id) |
PROJECT | |
void | setCloudSettings (QVariantMap vm) |
void | setTempValue (QString name, QVariant value) |
QVariant | getTempValue (QString name) |
QStringList | getListOfTempValues () |
void | clearListOfTempValues () |
LINKED OBJECTS | |
int | setLinkedObjects (const QString &elementID, const QString &IDList) |
int | removeAllLinkedObjects (QString id) |
int | removeLinkedObjects (QString id, QString linkedIdList) |
PROPERTY TYPES | |
int | createPropertyType (const QString &propName, const QString &propDatatype, const QString &uomCode, bool isInh, int target, const QString &domainName="all") |
int | setPropertyTypeMetaData (QString pName, QString ptype, QVariantMap metadata) |
int | deletePropertyType (QString propName, QString propDatatype, QString domainName="all") |
QList< QVariant > | getPropertyTypeBookmarkList () |
QVariantMap | getPropertyTypeBookmarkByID (QString bookmarkId) |
int | activatePropertyTypeBookmark (QString bkmId) |
bool | setPropertyTypeActive (QString pName, QString ptype, QString domain, bool active) |
int | setAllPropertyTypesActive () |
int | removePropertyTypeBookmarkByID (QString bkmId) |
QString | addPropertyTypeBookmark (QVariantMap bookmarkConfig) |
PROPERTIES | |
int | setPropertyValue (QString objId, QString propName, QString propDataType, QVariant value) |
int | setPropertyValueRepository (QString objId, QString propName, QString propDataType, QVariant value, bool createType=true) |
int | deleteProperty (QString objId, QString propName, QString propDatatype) |
QList< QVariant > | getAvailablePropertyValues (QString propName, QString propDatatype, int maxValues, QString domainName="geometry") |
QList< QVariant > | getPropertyValues (QString propName, QString propDatatype, int maxValues=0, QString domainName="all", bool getNullValues=false) |
QList< QVariant > | getPropertyValuesByObjectList (QString propName, QString propDatatype, bool checkInh, QString objIdList, int maxValues=0, QString domainName="all", bool getNullValues=false) |
QVariantMap | getPropertyListAsJSON (QVariantMap options) |
void | setPropertyListAsJSON (QVariantMap propmap, QVariantMap opt) |
PROPERTY SCRIPTS | |
QVariantMap | getPropertyScriptList () const |
QString | getPropertyScriptCode (QString domain, QString pname, QString datatype) const |
QString | getPropertyScriptFgColor (QString domain, QString pname, QString datatype) const |
QString | getPropertyScriptBgColor (QString domain, QString pname, QString datatype) const |
int | setPropertyScriptCode (QString domain, QString pname, QString datatype, QString code) |
int | setPropertyScriptFgColor (QString domain, QString pname, QString datatype, QString code) |
int | setPropertyScriptBgColor (QString domain, QString pname, QString datatype, QString code) |
QVariantMap | addPropertyScript (QString domain, QString pname, QString datatype, QString code=QString()) |
int | removePropertyScript (QString domain, QString pname, QString datatype) |
void | propertyScriptClearCache () |
void | propertyScriptClearCache (QString domain, QString pname, QString datatype) |
QVariantMap | getPropertyScriptOptions (QString domain, QString pname, QString datatype) |
int | setPropertyScriptOptions (QString domain, QString pname, QString datatype, QVariantMap opt) |
GEOMETRY - MATERIALS | |
QString | createMaterial (QString matXml, QString modelId=QString()) |
int | deleteMaterial (QString matId) |
QStringList | getMaterialList () |
QString | getMaterialAsXmlByID (QString matId) |
QVariantMap | getMaterial (const QString &matId) |
QString | getMaterialIDByName (QString matName) |
void | updateMaterial (QString matId, QString xmlMat) |
int | setMaterialToObjects (QString matId, QString objectIds) |
int | setTransparency (QString objectIds, float defaultTransparency=0.95) |
void | resetMaterials (bool updateUI=true) |
void | reorderElements () |
GEOMETRY - COLOR SCHEMA | |
QString | createColorSchema (QString setContainerId, QString name) |
QString | createColorSchemaFromCurrentMaterials (QString name, bool updateExisting, QVariantMap options=QVariantMap()) |
int | deleteColorSchema (QString namePattern) |
QStringList | getColorSchemaList () |
QString | getCurrentColorSchema () |
bool | activateColorSchemaByName (QString name) |
GEOMETRY- WIREMODE | |
void | showWireModeSchema (QString name) |
void | clearWireMode () |
void | setObjectsToWireMode (QString ids, bool wired) |
QString | createWireModeSchema (QString ids, QString wmName, bool overwrite=false) |
QString | getWired () |
int | countWired () |
BOUNDINGBOX | |
double | getBBoxMinX () |
double | getBBoxMaxX () |
double | getBBoxMinY () |
double | getBBoxMaxY () |
double | getBBoxMinZ () |
double | getBBoxMaxZ () |
void | updateBoundingBox3DView () |
int | calcOOBB (QString objIdList, double eps=0.001) |
int | updateOOBB (QString obIDList, double eps=0.001) |
int | calcOOBBxy (QString objIdList, double eps=0.001) |
int | updateOOBBxy (QString objIdList, double eps=0.001) |
QVariantMap | getBoundingBoxCommon (QString objIdList) |
QVariantMap | getOOBBCommon (QString objIdList) |
QVariantMap | getOOBBxyCommon (QString objIdList) |
double | checkOverlapOBB (QString id1, QString id2, double eps=0.001) |
CREATE / DELETE OBJECTS / GET OBJECTS | |
int | startProjectTransaction (const QString &domain="geometry") |
int | endProjectTransaction (const QString &domain="geometry") |
QString | createObjectFromXml (const QString &parentId, const QString &objectXML) |
int | deleteObjects (QString idList) |
void | setName (QString objIdList, QString name) |
QString | createObject (QString parentId, QString name) |
QVariantMap | getAsJSON (QString objId) |
int | setAsComposite (const QString &id, bool composite) |
REGIONS OF ALIGNMENTS | |
QString | addRegionToAlignment (QString alignmentId, QVariantMap setting) |
int | removeAllRegionsFromAlignment (QString alignmentId) |
int | addRangeToRegion (QString regionId, double fromStation, double toStation, QString alignmentId=QString()) |
int | removeRangeFromRegion (QString regionId, double fromStation, double toStation, QString alignmentId=QString()) |
int | removeAllRangesFromRegion (QString regionId, QString alignmentId=QString()) |
FILE OPERATIONS | |
int | createDirectory (QString path, QString dirName) |
bool | writeFile (QString filePath, const QString &content, const QString &encoding=QString()) |
bool | writeBinaryFile (QString filePath, const QByteArray &data) |
bool | appendToFile (QString filePath, const QString &content, const QString &encoding=QString()) |
bool | removeFile (QString filePath) |
bool | copyFile (QString fnFrom, QString fnTo) |
bool | moveFile (QString fnFrom, QString fnTo) |
bool | checkIfFileExists (QString filePath) |
bool | openFile (QString filePath, const QString &encoding=QString()) |
bool | writeToFile (QString content) |
bool | closeFile () |
QStringList | readTextFile (QString filename, bool ignoreLineBreakesInDoubleQuotes=false, QString codec=QString()) |
QString | readTextFileAsString (QString filename, QString codec=QString()) |
QByteArray | readBinaryFile (QString filePath) |
QVariantMap | readCsvFile (QString filename, QString delimiter=";", QString quoteSign="\) |
int | csvOpen (QString filename, QString delimiter=";", QString quoteSign="\) |
QStringList | csvNextLine () |
bool | csvHasNextLine () |
bool | csvClose () |
QString | readImageFile (QString filename, QString targetFormat="", bool applyExifRotation=false) |
QVariantList | getDirectoryEntryList (QString dirPath, bool filesOnly=false, QString orderBy="Name") |
Database | |
bool | dbIsLocalCopy () |
QString | dbGetFilepath () const |
int | dbOpen (const QVariant connectionData=QVariant()) |
bool | dbClose () |
void | dbCheckIn () |
void | dbCheckOut (const QStringList &propList) |
bool | dbQueryExec (const QString &sqlQuery) |
QVariantMap | dbQueryRecordset (const QString &sqlQuery, const QString &key, int maxNumberOfRows=0) |
bool | dbEndQueryExec () |
bool | dbQueryNext () |
QVariant | dbQueryValue (int column) |
QString | dbQueryLastError () |
int | setPropertyValueDB (const QString &objIdList, const QString &propName, const QString &propDataType, const QString &propDomain, const QVariant &value, bool createType=true) |
int | writePropertyValueDB (const QString &objIdList, const QString &propName, const QString &propDataType, const QString &propDomain, const QVariant &value, bool createType=true) |
bool | startTransaction () |
bool | endTransaction () |
bool | dbGetImmediateUpdate () |
void | dbSetImmediateUpdate (bool) |
int | dbClearCache (const QString &propName, const QString &propType) |
void | dbClearCacheAll () |
int | dbDeleteProperty (const QString &objIdList, const QString &propName, const QString &propType) |
int | dbAssertTable (const QString &tableName, const QStringList &columnsList) |
Object Tooltips | |
QStringList | getListOfObjTooltips () |
void | addObjectListToTooltip (QString idList, QString tooltipname) |
void | removeObjectListFromTooltip (QString idList, QString tooltipname) |
Locking of Objects | |
void | lockObjects (QString idList) |
void | unlockObjects (QString idList) |
void | unlockAllObjects () |
QString | getLocked () |
int | countLocked () |
Object Iterator | |
void | itClear () |
int | itByFilter (QString propName, QString propDatatype, QString filterPattern, bool checkInh=true, QString domain="geometry") |
int | itFilterByStatus (QString status, bool enabled=true, QString domain="geometry") |
int | itByObjectList (QString idList) |
QString | itGetObjectList () |
bool | itHasNext () |
QString | itNext () |
int | itCount () |
void | itToFront () |
QList< QVariant > | itGetAvailablePropertyValues (QString propName, QString propDatatype, int maxValues) |
void | itSetupDbCache (QString propName, QString propType) |
void | itSetMaterial (QString matId) |
void | itColorCode (QString propName, QString propDT) |
void | itColorCodeNumber (QString propName, QString propDT, double intervalSize) |
void | itCalcOOBB (double eps) |
void | itUpdateOOBB (double eps) |
void | itCalcOOBBxy (double eps) |
void | itUpdateOOBBxy (double eps) |
GEOMETRY | |
int | hasContact (QString objId1, QString objId2, QVariantMap options=QVariantMap()) |
QString | createContactObject (QString parentId, QString objId1, QString objId2, QString matId, QVariantMap options=QVariantMap()) |
QStringList | cutObject (QString parentId, QString objId, QVariantMap plane=QVariantMap(), bool closeCuts=true, bool splitUnconnectedParts=true) |
QString | mergeObjects (QString parentContainerId, QString idList, bool skipClosed=false, bool keepTransparency=false, bool keepCommonProperties=false, bool replaceParent=false) |
bool | isIncludedIn (QString objId1, QString objId2) |
int | isPointIncludedIn (double x, double y, double z, QString objId, double tol=1.e-5) |
int | checkIntersection (QString objId1, QString objId2, double tolerance=-0.00001) |
int | transformObject (QString objId, QString transformation) |
int | setAsOpening (QString objId, QString openingIDList) |
QString | getProjectionAsSvg (QString idList, QVariantMap options=QVariantMap()) |
double | calcDistance (QString objId1, QString objId2) |
int | swapOrientationOfTriangles (QVariantList idList) |
Additional Inherited Members | |
![]() | |
static bool | BLOCK_UNSAFE |
DESITE API for scripting in automation.
(c) ceapoint aec technologies GmbH
bool domainBim::AutomationAPI::activateColorSchemaByName | ( | QString | name | ) |
Activate color scheme with given name (case sensitive). If name is empty, materials will be restored. View will be repainted.
int domainBim::AutomationAPI::activatePropertyTypeBookmark | ( | QString | bkmId | ) |
void domainBim::AutomationAPI::addObjectListToTooltip | ( | QString | idList, |
QString | tooltipname | ||
) |
Add object list to tooltip.
idList | List of objects |
tooltipname | Name of the tooltip template |
QVariantMap domainBim::AutomationAPI::addPropertyScript | ( | QString | domain, |
QString | pname, | ||
QString | datatype, | ||
QString | code = QString() |
||
) |
QString domainBim::AutomationAPI::addPropertyTypeBookmark | ( | QVariantMap | bookmarkConfig | ) |
Add property type bookmark.
bookmarkConfig | Bookmark config information map. For format description see getPropertyTypeBookmarkByID() |
int domainBim::AutomationAPI::addRangeToRegion | ( | QString | regionId, |
double | fromStation, | ||
double | toStation, | ||
QString | alignmentId = QString() |
||
) |
Add an ADDITIONAL range to a region (a region can have several - possibly disjunct - ranges with the same value).
regionId | ID of region (will be returned if region is successfully added to an alignment) |
fromStation | Lower bound of range |
toStation | Upper bound of range |
alignmentId | ID of alignment. Optional parameter, if given, method is faster, because not all objects have to be searched |
QString domainBim::AutomationAPI::addRegionToAlignment | ( | QString | alignmentId, |
QVariantMap | setting | ||
) |
Add a region with a first given range and value to an alignment (simplified, linear representation of a road or track).
A region is represented by a strip along an alignment with a name, value and color and is used to visualize different properties/data, indicated by a color and a value, along the alignment. Further ranges (which will get the same name, color and value) can be added to this region afterwards. At the beginning of each range, the name and the value set will be drawn (like stations).
alignmentId | ID of alignment |
options | Options, given as json object (see below). |
Example
int domainBim::AutomationAPI::addToSelectionSetGeometry | ( | QString | setId, |
QString | objectIDList | ||
) |
Add objects to selection set in domain 'geometry'.
bool domainBim::AutomationAPI::appendToFile | ( | QString | filePath, |
const QString & | content, | ||
const QString & | encoding = QString() |
||
) |
Append a string to a file. User must not take care of opening and closing the file.
filePath | Name and path of the file to be written. If no path is given, the current project's path will be used. |
content | String to be appended to the end of the file |
encoding | File encoding, such as "ISO 8859-1", "UTF-8", or "UTF-16" (optional) |
double domainBim::AutomationAPI::calcDistance | ( | QString | objId1, |
QString | objId2 | ||
) |
Calculate distance between two surface objects.
objId1 | ID of first object |
objId2 | ID of second object |
int domainBim::AutomationAPI::calcOOBB | ( | QString | objIdList, |
double | eps = 0.001 |
||
) |
Calculate optimized, orientated bounding box (OOBB) of all given geometric objects and set it to them. The bounding box is only calculated and set if an object has no OOBB yet.
objIdList | IDs of objects to be affected (separated by ';') |
eps | Threshold for optimization (default: 0.001) |
int domainBim::AutomationAPI::calcOOBBxy | ( | QString | objIdList, |
double | eps = 0.001 |
||
) |
Calculate optimized, orientated bounding box in xy-plane (OOBBxy) of all given geometric objects and set it to them. The bounding box is only calculated and set if an object has no OOBBxy yet.
objIdList | IDs of objects to be affected (separated by ';') |
eps | Threshold for optimization (default: 0.001) |
|
slot |
Calculate property values over time. Returns an object with a list of property values for each day between startDay and endDay.
Options:
Return:
|
slot |
Calculate working time between two given dates by specifying a calendar.
start | Start date and time |
finish | Finish date and time |
calendarID | ID of calendar (if empty the default calendar is used) |
bool domainBim::AutomationAPI::checkIfFileExists | ( | QString | filePath | ) |
Checks if a file exists
filePath | Name and path of the file. If no path is given, the current project's path will be used. |
int domainBim::AutomationAPI::checkIntersection | ( | QString | objId1, |
QString | objId2, | ||
double | tolerance = -0.00001 |
||
) |
Check if two geometric objects intersects.
objId1 | : ID of object #1 |
objId2 | : ID of object #2 |
tolerance | : Numerical tolerance (default -0.00001). If tolerance is set to a small negative value, objects may overlap without intersection detected. A value > 0 means approach. |
double domainBim::AutomationAPI::checkOverlapOBB | ( | QString | id1, |
QString | id2, | ||
double | eps = 0.001 |
||
) |
Check overlap of oriented bounding boxes of two given objects. If an OOBB has not been already calculated for each object, it will be calculated with numerical precision eps (default 0.01).
id1 | ID of first object |
id2 | ID of second object |
eps | Precision for generating missing OOBBs |
Note: In case of two OBBs with the same orientation it is the exact percentage of overlap, else only a indicative value. If no geometric object exists for one of both IDs, 0.0 will be returned.
void domainBim::AutomationAPI::clearWireMode | ( | ) |
Set all objects to normal mode, 3D view will be refreshed.
bool domainBim::AutomationAPI::closeFile | ( | ) |
Close an open file. There can only be one open file at once!
bool domainBim::AutomationAPI::copyFile | ( | QString | fnFrom, |
QString | fnTo | ||
) |
Copy file 'fnFrom' to file 'fnTo'.
int domainBim::AutomationAPI::countLocked | ( | ) |
Count locked objects.
int domainBim::AutomationAPI::countWired | ( | ) |
Count objects which are in wireframe mode.
QString domainBim::AutomationAPI::createColorSchema | ( | QString | setContainerId, |
QString | name | ||
) |
Create color schema with given name from the hierarchy (content) given by a container.
setContainerId | ID of container whose content defines the color schema. For each contained container a material is created with the container names. |
name | Name of new color schema. If name already exists it is augmented by an index, e.g. '~(2)'. |
QString domainBim::AutomationAPI::createColorSchemaFromCurrentMaterials | ( | QString | name, |
bool | updateExisting, | ||
QVariantMap | options = QVariantMap() |
||
) |
Create color scheme with given name from current material settings.
name | Name of new color scheme |
updateExisting | If 'true' an already existing color scheme is updated, otherwise a new color scheme is created. If name already exists it is augmented by an index, e.g. '~(2)'. |
Options,e.g. | if a legend shall be drawn if color scheme is applied |
Options:
|
slot |
Create contact object (contact surface) between two objects. If angle
> 0, the resulting surface may differ for each object. In this case the projection on object 1 ist choosen.
parentId | : ID of container the newly created object should be added. |
objId1 | : ID of object 1. |
objId2 | : ID of object 2. |
matId | : ID of material of the newly created object. If empty, a default material (dark orange) will be chosen. |
options | : Options encoded as JSON. If not specified, the default values of the code snipped (see below) will be chosen. |
int domainBim::AutomationAPI::createDirectory | ( | QString | path, |
QString | dirName | ||
) |
Create new directory at given file path. Resulting directory path is path + '/' + dirName.
dirName | Name of new directory |
path | File path of directory in which new directory should be created (relative paths are allowed) |
QString domainBim::AutomationAPI::createMaterial | ( | QString | matXml, |
QString | modelId = QString() |
||
) |
Create a new material for visualization. If the material already exists the existing material is not changed.
matXml | Material encoded as XML. If a tag is missing, default values are set. |
modelId | Create a new material in this model. If the model is not found or the string is empty (default) the default model of the geometry project is used. |
Example:
QString domainBim::AutomationAPI::createModel | ( | QString | name, |
bool | createRootC = true , |
||
QString | domain = "geometry" |
||
) |
Create a new model in a specified domain.
By default the model is empty.
For models within the geometry and documents domain a root container has to be created. to access the rootnode in the model use method getRootNodeByModel(). The model itself is not visible in the GUI.
name | Name of model |
domain | Domain in which model is created. This is one of
|
createRootC | If true, create a root container (in domain 'geometry': a container on which transformations can be applied) with the same name as the new model (only for domains: geometry/documents!) |
QString domainBim::AutomationAPI::createObject | ( | QString | parentId, |
QString | name | ||
) |
Create an attribute object (no geometry).
parentId | ID of parent container |
name | Name of new object. |
QString domainBim::AutomationAPI::createObjectFromXml | ( | const QString & | parentId, |
const QString & | objectXML | ||
) |
Create a new object encoded by XML.
If ID (attribute ID="..." in code) is not given or is already used in the project, a new ID will be created.
If the attribute matID is used, the material must exist in the same model as the object! If this attribute is not used, a default material will be created in the same model as the object.
parentId | ID of parent element |
objectXML | XML code |
Error Codes:
Available objects
Examples
Available objects
Note: If WBS is empty, it will be automatically created from parent task WBS and child index of the new task.
Examples
Available objects
Available types:
Examples
Create two nested sections in the building structure
Available objects
Examples
Note that a "document" object can be used either as a file link or as a URL.
A "documentDir" will scan contained directories recursively, so deeply nested directory structures may incur a performance penalty.
Available objects
Examples
Available types:
1 - Category (LV-Bereich)
2 - BOQ-Item (LV-Position)
3 - Markup Item (Zuschlagsposition)
4 - Remark (Hinweistext)
5 - Performance Description (Ausfuehrungsbeschreibung)
6 - Sub-Description (Unterbeschreibung)
7 - Invalid, reserved for internal use
8 - AddText (Zusatztext)
9 - Take-Off Sheet (Aufmassblatt)
10 - Take-Off Row (Aufmasszeile)
qty is the quantity as floating point number (double). unit is the unit of measurements as text. up is the unit price as a floating point number (double).
Example JavaScript:
Available objects
Examples
Available objects
Examples
ID, prefix and comment are optional.
Available objects
int domainBim::AutomationAPI::createPropertyType | ( | const QString & | propName, |
const QString & | propDatatype, | ||
const QString & | uomCode, | ||
bool | isInh, | ||
int | target, | ||
const QString & | domainName = "all" |
||
) |
uomCode | Unit of Measurement |
target | 1 - Project Repository 2 - Database |
QString domainBim::AutomationAPI::createSelectionSet | ( | QString | name, |
QString | parentID = QString() |
||
) |
name | Name of new Selection Set |
parentID | Parent of new Selection Set. If empty the set is created on top level. |
QString domainBim::AutomationAPI::createSelectionSets | ( | QString | propertyTypes, |
QString | rootName, | ||
QVariantMap | config = QVariantMap() |
||
) |
Create selections sets of geometry objects.
For each value of a given property type a selection set is created.
propertyTypes | A concatenation of Property Type Keys, each containing a name and datatype. Example: 'cpName##xs:string;cpVolume##xs:double' This is still possible, but deprecated. |
rootName | Name of the Selection Set Container to be created. If the name is empty, the name is constructed from property type key names. If the name is already used, a suffix will be added. |
config | Object/map containing options. Default Values: { "maxItems" : 0, "considerCompositeParts" : true, "considerOpenings" : true, "considerParts" : true, "intervalSize" : 0.5, "visibleOnly" : false, "createAsSmartSet" : false } |
Usage examples:
QString domainBim::AutomationAPI::createWireModeSchema | ( | QString | ids, |
QString | wmName, | ||
bool | overwrite = false |
||
) |
Create a wire mode schema for objects.
ids | String of semicolon-separated object IDs |
wmName | Name of new wire-frame mode |
overwrite | If 'true' an existing schema will be overwritten with current settings (default: 'false') |
bool domainBim::AutomationAPI::csvClose | ( | ) |
bool domainBim::AutomationAPI::csvHasNextLine | ( | ) |
Checks if csv file has more data.
QStringList domainBim::AutomationAPI::csvNextLine | ( | ) |
Reads next line of csv.
int domainBim::AutomationAPI::csvOpen | ( | QString | filename, |
QString | delimiter = ";" |
||
) |
Open text file in CSV format for reading.
filename | Name of file |
delimiter | one character as delimiter of cells, mostly ";" or " " (a tab sign) |
quoteSign | one character, Some CSV files use quotes to specify text. Delimiters and line breaks within quotes are ignored. |
|
slot |
Cut object into subparts.
parentId | ID of parent container. If empty, subparts will be added to object. |
objId | ID of object |
plane | Cutting plane encoded as JSON. If not specified, the default values of the code snipped (see below) will be chosen. |
closeCuts | Close mesh of cut parts. |
splitUnconnectedParts | Split cut parts which are not connected (e.g. when cutting an U-shape horizontally). |
Example: Cut object ID="ABCxyz123" by xy-plane (through origin) and append parts to object (parent=""):
int domainBim::AutomationAPI::dbAssertTable | ( | const QString & | tableName, |
const QStringList & | columnsList | ||
) |
Check if database has a specific table with certain columns.
tableName | Table name |
columnsList | List of columns specified in the format [columnname columndatatype] |
Example:
void domainBim::AutomationAPI::dbCheckIn | ( | ) |
Database check-in.
void domainBim::AutomationAPI::dbCheckOut | ( | const QStringList & | propList | ) |
Check out properties in local database. Only properties which are checked out can be edited. All other properties are locked in local database.
propList | List of properties in such format: propName##propType |
int domainBim::AutomationAPI::dbClearCache | ( | const QString & | propName, |
const QString & | propType | ||
) |
void domainBim::AutomationAPI::dbClearCacheAll | ( | ) |
bool domainBim::AutomationAPI::dbClose | ( | ) |
Close the currently connected DB. Returns false if no DB was connected.
int domainBim::AutomationAPI::dbDeleteProperty | ( | const QString & | objIdList, |
const QString & | propName, | ||
const QString & | propType | ||
) |
Delete properties from database.
objIdList | The properties are removed and deleted from these objects. |
bool domainBim::AutomationAPI::dbEndQueryExec | ( | ) |
Free all resources bound to the last dbQueryExec.
QString domainBim::AutomationAPI::dbGetFilepath | ( | ) | const |
If the connected DB is file-based, returns the filename and path. Otherwise, an empty string is returned.
bool domainBim::AutomationAPI::dbGetImmediateUpdate | ( | ) |
bool domainBim::AutomationAPI::dbIsLocalCopy | ( | ) |
Check if current database is a local copy.
int domainBim::AutomationAPI::dbOpen | ( | const QVariant | connectionData = QVariant() | ) |
Open and connect a project database. Will do nothing if a database connection is already open.
Pass connection data as object.
Example:
You can pass an empty object or no connection data at all. In that case, a DB will be opened with default parameters (in the current project's directory). Project must have been saved first.
bool domainBim::AutomationAPI::dbQueryExec | ( | const QString & | sqlQuery | ) |
Create a database query by a SQL statement. To iterate over the query result use dbQueryNext() and get the values of the current record by dbQueryValue().
sqlQuery | Database query as SQL statement |
QString domainBim::AutomationAPI::dbQueryLastError | ( | ) |
Get the error message that the last executed SQL query returned (if any).
bool domainBim::AutomationAPI::dbQueryNext | ( | ) |
Go to next record of last query.
QVariantMap domainBim::AutomationAPI::dbQueryRecordset | ( | const QString & | sqlQuery, |
const QString & | key, | ||
int | maxNumberOfRows = 0 |
||
) |
Create a database query by SQL statement.
sqlQuery | the SQL query string. |
key | the field name used as key in record set returned. For more than one key value only the last one will be returned. |
maxNumberOfRows | max number of rows in result set returned, left open or 0 for unlimited. |
Example call: desiteAPI.dbQueryRecordset("SELECT matchKey, price FROM tblPrices", "matchKey", 0);
Example:
QVariant domainBim::AutomationAPI::dbQueryValue | ( | int | column | ) |
void domainBim::AutomationAPI::dbSetImmediateUpdate | ( | bool | ) |
int domainBim::AutomationAPI::deleteColorSchema | ( | QString | namePattern | ) |
Remove and delete color scheme by name (pattern).
namePattern | Name of the color scheme that should be deleted. Could be a pattern such as 'csXYZ*', which means that all CS which name starts with 'csXYZ' are removed and deleted. |
int domainBim::AutomationAPI::deleteMaterial | ( | QString | matId | ) |
Delete material with given ID. Only materials of the default model which are not used (e.g. by north arrow) can be deleted.
matId | ID of material to be deleted |
int domainBim::AutomationAPI::deleteModel | ( | const QString & | id | ) |
Delete Model.
Contained elements are removed from all locations where they are used (links, viewpoints, ...) and will be deleted afterwards.
id | ID of model |
int domainBim::AutomationAPI::deleteObjects | ( | QString | idList | ) |
Delete and remove one or more objects or containers. Model root nodes will not be deleted!
Contained elements are also removed and deleted. Also these elements are removed from all other locations where they are used (links, viewpoints, ...)
idList | List of object/container IDs separated by ';' |
int domainBim::AutomationAPI::deleteProperty | ( | QString | objId, |
QString | propName, | ||
QString | propDatatype | ||
) |
Delete property 'propName' with data type 'propDatatype' from the element identified by 'objId'.
objId | ID of element. Use 'GlobalProject' to remove and delete a global project property. |
int domainBim::AutomationAPI::deletePropertyType | ( | QString | propName, |
QString | propDatatype, | ||
QString | domainName = "all" |
||
) |
Remove property type from domain. All affected properties will be deleted.
Note that for DB property types, this will only work if the type is defined for a single domain only. (To delete DB property types across all domains, use the database widget.)
propName | Name of property type |
propDatatype | Data type of property type |
domainName | Name of domain (default: "all", combinations are allowed) |
int domainBim::AutomationAPI::endProjectTransaction | ( | const QString & | domain = "geometry" | ) |
Finish transaction on project of given domain.
bool domainBim::AutomationAPI::endTransaction | ( | ) |
Finish database transaction.
|
slot |
Get container with name 'name' and parent node 'parentId'. If the container does not exist, an empty string is returned.
Note that a name is not necessarily unique; this method will only return the first match.
parentId | Parent node ID |
name | Name of the container |
lookupDomain | Lookup container 'name' in this domain, default = 'all' |
|
slot |
Get documents where the creation date is between a given range or where the reference date is between a given range.
start | Start of date range |
end | End of date range |
idList | (optional) List of IDs of documents. If empty, all documents will be considered. |
useRef | (optional) Flag determining if documents are searched by their create or reference date |
|
slot |
Get documents which are located around a given point in Gauss-Krueger coordinates by a given distance.
rw | 'Rechtswert' (x-coordinate) of search point |
hw | 'Hochwert' (y-coordinate) of search point |
distance | Search range |
idList | (optional) List of IDs of documents. If empty, all documents will be considered. |
|
slot |
Get documents which are located around a given point in GPS coordinates by a given distance.
lat | Latitude of search point |
lon | Longitude of search point |
distance | Search range |
idList | (optional) List of IDs of documents. If empty, all documents will be considered. |
|
slot |
Get documents which are located around a given point list in GPS coordinates by a given distance.
gpsCoordinates | List of GPS coordinates (lat/lon) as string, delimited by '#', e.g. ['51.4556#7.0116',...] |
distance | Search range |
idList | (optional) List of IDs of documents |
QVariantMap domainBim::AutomationAPI::getAsJSON | ( | QString | objId | ) |
Get geometric object data.
Example:
A 3D-object that contains vertices, triangles and faces (uv is available only if texture is attached on the surface).
Note: the triangle list - unlike the face list - is not grouped; each consecutive triple of vertex indices forms a triangle
Example Result:
QList<QVariant> domainBim::AutomationAPI::getAvailablePropertyValues | ( | QString | propName, |
QString | propDatatype, | ||
int | maxValues, | ||
QString | domainName = "geometry" |
||
) |
Get all available values of property 'propName/propDatatype'.
maxValues | 0 - get all values > 0 - do not get more than 'maxValues' items |
Example:
double domainBim::AutomationAPI::getBBoxMaxX | ( | ) |
Get maximal x-coordinate of overall bounding box of all geometric objects (visible and hidden) in the project.
double domainBim::AutomationAPI::getBBoxMaxY | ( | ) |
Get maximal y-coordinate of overall bounding box of all geometric objects (visible and hidden) in the project.
double domainBim::AutomationAPI::getBBoxMaxZ | ( | ) |
Get maximal z-coordinate of overall bounding box of all geometric objects (visible and hidden) in the project.
double domainBim::AutomationAPI::getBBoxMinX | ( | ) |
Get minimal x-coordinate of overall bounding box of all geometric objects (visible and hidden) in the project.
double domainBim::AutomationAPI::getBBoxMinY | ( | ) |
Get minimal y-coordinate of overall bounding box of all geometric objects (visible and hidden) in the project.
double domainBim::AutomationAPI::getBBoxMinZ | ( | ) |
Get minimal z-coordinate of overall bounding box of all geometric objects (visible and hidden) in the project.
QVariantMap domainBim::AutomationAPI::getBoundingBoxCommon | ( | QString | objIdList | ) |
Get common bounding box of all objects in objIdList. If an object ID represents a composite (geometric container), all parts of it will be taken into account.
objIdList | IDs of objects to be affected (separated by ';') |
|
slot |
Get calendar by name. If more than one calendars with the same name exists, return the first calendar
name | Name of calendar |
|
slot |
Get calendar assigned to a task. Note: If no calendar is explicitly assigned to a task, the ID of the default calendar will be returned.
taskID | ID of task |
checkInh | Also check inherited calendars |
|
slot |
Get available calendars.
|
slot |
Get default options of calendar.
calendarID | ID of the calendar |
Example return:
QStringList domainBim::AutomationAPI::getColorSchemaList | ( | ) |
Get all color schemes.
|
slot |
Get container with name 'name' and parent node 'parentId'. If the container does not exist, it is created.
parentId | : Parent node ID |
name | : Name of the container |
QString domainBim::AutomationAPI::getCurrentColorSchema | ( | ) |
Get current (applied) color scheme.
QVariantList domainBim::AutomationAPI::getDirectoryEntryList | ( | QString | dirPath, |
bool | filesOnly = false , |
||
QString | orderBy = "Name" |
||
) |
Return a list of all files and (optionally) subdirectories in the given directory.
The list will NOT include system and hidden files.
A Windows environment variable can be used, but only once in the string (e.g. 'userprofile%/pictures')
Objects in the returned list will contain the following keys:
Name
AbsoluteFilePath
AbsolutePath
SizeInBytes
CreationDateTime
LastModifiedDateTime
IsReadable
IsWritable
IsDirectory
dirPath | Full path to the directory to scan |
filesOnly | (default false) if this is set to true, subdirectories will not be included in the list |
orderBy | Sort the result list either by "Name" (alphabetically, default), "Size" (largest first), or "Time" (most recently modified first) |
QStringList domainBim::AutomationAPI::getListOfObjTooltips | ( | ) |
Get list of tooltip templates.
QStringList domainBim::AutomationAPI::getListOfTempValues | ( | ) |
Get list of temporary values.
QString domainBim::AutomationAPI::getLocked | ( | ) |
Get all locked objects.
QVariantMap domainBim::AutomationAPI::getMaterial | ( | const QString & | matId | ) |
Get material as object.
matId | ID of Material |
Example return:
QString domainBim::AutomationAPI::getMaterialAsXmlByID | ( | QString | matId | ) |
Get material encoded by XML.
matId | ID of Material |
QString domainBim::AutomationAPI::getMaterialIDByName | ( | QString | matName | ) |
Get ID of material with given name.
matName | Name of material |
QStringList domainBim::AutomationAPI::getMaterialList | ( | ) |
Get list of all available materials.
QString domainBim::AutomationAPI::getModelByElement | ( | QString | id, |
QString | domainFilter = "all" |
||
) |
Lookup the parent model of the element with the given ID. If the model could not be found, this method returns an empty string.
id | Element ID to find the model of |
domainFilter | [optional] Domain(s) to look in; by default "all". The lookup may be faster if you narrow the search to specific domains. |
QString domainBim::AutomationAPI::getModelByName | ( | QString | name, |
QString | domainFilter = "geometry" |
||
) |
Return ID of Model 'name'. If the model does not exist, it is created.
QStringList domainBim::AutomationAPI::getModelListByDomain | ( | QString | domainFilter = "all" | ) |
Return a ID-list of all models in a given domain.
NOTE: The model ID is not identical to the ID of the model root nodes in the element hierarchies.
domainFilter | Given domain(s) (default = 'all'). Different domain names have to be separated by ';'. |
QStringList domainBim::AutomationAPI::getModelListByName | ( | QString | name, |
QString | domain = "geometry" |
||
) |
Get a list of IDs of all models with name 'name'.
NOTE: The model ID is not identical to the ID of the model root nodes in the element hierarchies.
name : Name of the model domain : Domain name combination. Default is 'geometry'
QVariantMap domainBim::AutomationAPI::getModelMetaData | ( | QString | modelId | ) |
Get meta data of a given model as JSON object.
Keys of JSON object:
QVariantMap domainBim::AutomationAPI::getOOBBCommon | ( | QString | objIdList | ) |
Calculate the common OOBB of all objects in objIdList. The OOBB is not explicitly set to affected objects and cannot be re-used (see properties cpOOBB... and so on). If an object ID represents a composite or geometric container, all parts of it will be taken into account.
objIdList | IDs of objects to be affected (separated by ';') |
QVariantMap domainBim::AutomationAPI::getOOBBxyCommon | ( | QString | objIdList | ) |
Calculate the common OOBBxy of all objects in objIdList. The OOBBxy is not explicitly set to affected objects and cannot be re-used (see properties cpOOBBxy... and so on). If an object ID represents a composite or geometric container, all parts of it will be taken into account.
objIdList | IDs of objects to be affected (separated by ';') |
QString domainBim::AutomationAPI::getProjectionAsSvg | ( | QString | idList, |
QVariantMap | options = QVariantMap() |
||
) |
Get projection of given geometric objects as SVG.
idList | Given geometric objects, list of IDs separated by ';' |
options | Options as JSON object If an empty JSON object is passed to this method, the size and viewBox is adjusted to the drawn objects. |
Example Options:
resolution - resolution in DPI, default is 72
QVariantMap domainBim::AutomationAPI::getPropertyListAsJSON | ( | QVariantMap | options | ) |
Get list of properties.
This is the same format as the export/import of properties used by the GUI.
opt | Options to configure the export. |
Example:
QString domainBim::AutomationAPI::getPropertyScriptBgColor | ( | QString | domain, |
QString | pname, | ||
QString | datatype | ||
) | const |
Get code (background) of property script.
QString domainBim::AutomationAPI::getPropertyScriptCode | ( | QString | domain, |
QString | pname, | ||
QString | datatype | ||
) | const |
Get code (value) of property script.
QString domainBim::AutomationAPI::getPropertyScriptFgColor | ( | QString | domain, |
QString | pname, | ||
QString | datatype | ||
) | const |
Get code (foreground) of property script.
QVariantMap domainBim::AutomationAPI::getPropertyScriptList | ( | ) | const |
Get list of property scripts as JSON object.
Example:
QVariantMap domainBim::AutomationAPI::getPropertyScriptOptions | ( | QString | domain, |
QString | pname, | ||
QString | datatype | ||
) |
QVariantMap domainBim::AutomationAPI::getPropertyTypeBookmarkByID | ( | QString | bookmarkId | ) |
Get a property type bookmark as an object.
The 'Type' of the bookmark is 1 for User-defined and 2 for Global.
bookmarkId | ID of the bookmark to look up. If the ID isn't found, an empty object is returned. |
QList<QVariant> domainBim::AutomationAPI::getPropertyTypeBookmarkList | ( | ) |
Return list of property types bookmarks.
Example:
QList<QVariant> domainBim::AutomationAPI::getPropertyValues | ( | QString | propName, |
QString | propDatatype, | ||
int | maxValues = 0 , |
||
QString | domainName = "all" , |
||
bool | getNullValues = false |
||
) |
Get all available property values for a given property type and domain.
propName | Name of property type |
propDatatype | Data type of property type |
maxValue | Max. number of values which should be returned. If 'maxValue' = 0 all available values will be returned. |
domainName | Name of domain (default: "all", combinations are allowed) |
QList<QVariant> domainBim::AutomationAPI::getPropertyValuesByObjectList | ( | QString | propName, |
QString | propDatatype, | ||
bool | checkInh, | ||
QString | objIdList, | ||
int | maxValues = 0 , |
||
QString | domainName = "all" , |
||
bool | getNullValues = false |
||
) |
Get all available different property values for a given property type, list of objects and domain.
propName | Name of property type |
propDatatype | Data type of property type |
checkInh | true = Consider inherited properties, false = Check direct properties only |
maxValue | Max. number of values which should be returned. If 'maxValue'<= 0 all available values will be returned. |
obIdList | Ids of objects to check property values. |
domainName | Name of domain (default: "all", combinations are allowed) |
getNullValues | Set true if result list shall contain NULL values for objects not having this property. |
QString domainBim::AutomationAPI::getRootContainerByName | ( | QString | modelName, |
QString | rootContainerName | ||
) |
Return ID of Root Container 'rootContainerName' which is elements of model 'modelName'.
If the model or the container does not exist it is created. If the model is readonly, an empty string is returned.
|
slot |
Get a list of IDs of all root containers of all models with name 'modelName'. Works only in domain geometry, because not the model roots but the 'red' root containers (where transformations can be applied) are returned.
modelName | : Name of the model(s) |
QString domainBim::AutomationAPI::getRootNodeByModel | ( | QString | modelId | ) |
Get ID of root node of a given model.
Each model has a container as root node in which the whole object hierarchy of a model is stored. This root node is visible in the tree view. The model itself is not visible in the GUI but can be accessed by methods in the API.
QStringList domainBim::AutomationAPI::getRootNodeListByDomain | ( | QString | domainFilter = "all" | ) |
Get list of IDs of root nodes of a given domain filter.
Each model has a container as a root node in which the whole object hierarchy of a model is stored.
domainFilter | Given domain(s) (default = 'all'). Different domain names have to be separated by ';'. |
QStringList domainBim::AutomationAPI::getRootNodeListSelectionSets | ( | QString | domainFilter = "all" | ) |
Get root nodes of selection sets. These root nodes are the top level selection sets in a domain project.
|
slot |
Get first task restriction with given name.
name | Name of task restriction |
|
slot |
Get available task restrictions.
QVariant domainBim::AutomationAPI::getTempValue | ( | QString | name | ) |
Retrieve a temporarily stored property.
|
slot |
Get list of visualization configurations as JSON object.
Example
QString domainBim::AutomationAPI::getWired | ( | ) |
Get all objects which are set to wireframe mode.
|
slot |
Check if two objects have contact.
objId1 | : ID of object 1 |
objId2 | : ID of object 2 |
options | : Options encoded as JSON. If not specified, the default values of the code snipped (see below) will be chosen. |
|
slot |
Check if an object or container with the given ID exists.
id | : Element ID |
|
slot |
Checks if the object with the given ID is a container.
id | : Object ID |
bool domainBim::AutomationAPI::isIncludedIn | ( | QString | objId1, |
QString | objId2 | ||
) |
Check if object with ID 'objId1' is included in object with ID 'objId2'.
int domainBim::AutomationAPI::isPointIncludedIn | ( | double | x, |
double | y, | ||
double | z, | ||
QString | objId, | ||
double | tol = 1.e-5 |
||
) |
Check if point with given coordinates is included in object with ID 'objId'.
x | : x coordinate of point |
y | : y coordinate of point |
z | : z coordinate of point |
objId | : ID of object (surface or composite) |
tol | : numerical tolerance |
int domainBim::AutomationAPI::itByFilter | ( | QString | propName, |
QString | propDatatype, | ||
QString | filterPattern, | ||
bool | checkInh = true , |
||
QString | domain = "geometry" |
||
) |
Get objects which match the filter. If the filter should be applied on all objects, make sure the object iterator is cleared first. Otherwise the filter is applied on an existing object iterator. The filter string is not case sensitive (except for data type xs:ID and xs::IDREF).
propName | Property name |
propDatatype | Property data type [xs:string, xs:double, xs:long, ... ] |
checkInh | Check inherited properties |
domain | [ all, geometry, activities, ... ] |
int domainBim::AutomationAPI::itByObjectList | ( | QString | idList | ) |
Object Iterator is set to objects in idList.
idList | List of Object IDs as String separated by ';'. |
void domainBim::AutomationAPI::itCalcOOBB | ( | double | eps | ) |
Calculate OptOBB of all contained 3D-objects. The bounding box is only calculated if an object has no OOBB.
void domainBim::AutomationAPI::itCalcOOBBxy | ( | double | eps | ) |
Calculate OptOBBxy of all contained 3D-objects. The bounding box is only calculated if an object has no OOBBxy.
void domainBim::AutomationAPI::itClear | ( | ) |
Clear and delete an existing object iterator.
void domainBim::AutomationAPI::itColorCode | ( | QString | propName, |
QString | propDT | ||
) |
Color code objects in current object iterator. If the current object iterator does not exist all objects are color coded by property 'propName'. An existing object iterator is deleted by calling itClear().
propName | : property name |
propDT | : property data type |
void domainBim::AutomationAPI::itColorCodeNumber | ( | QString | propName, |
QString | propDT, | ||
double | intervalSize | ||
) |
Color code objects in current object iterator. If the current object iterator is empty or does not exists all objects are color coded by property 'propName'. (An existing object iterator can be deleted by calling itClear() ).
propName | : property name |
propDT | : property data type |
intervalSize | : Size of interval |
int domainBim::AutomationAPI::itCount | ( | ) |
Count the elements in current object iterator.
int domainBim::AutomationAPI::itFilterByStatus | ( | QString | status, |
bool | enabled = true , |
||
QString | domain = "geometry" |
||
) |
Filter objects in iterator list by their status.
status | Status as string ['visible', 'selected', 'wired' or 'locked'] |
enabled | Value of status [true, false] |
domain | Domain as string to check ['geometry', 'activities', 'documents, 'building', 'boq', 'qto', 'pc', 'cd', 'qa', 'type', 'res', 'all]', combinations are allowed (separated by ';') |
QList<QVariant> domainBim::AutomationAPI::itGetAvailablePropertyValues | ( | QString | propName, |
QString | propDatatype, | ||
int | maxValues | ||
) |
Get property values of objects in current object iterator.
QString domainBim::AutomationAPI::itGetObjectList | ( | ) |
Get list of IDs of current object iterator.
bool domainBim::AutomationAPI::itHasNext | ( | ) |
Check if iterator is not at end.
QString domainBim::AutomationAPI::itNext | ( | ) |
Get ID of next element in object iterator.
void domainBim::AutomationAPI::itSetMaterial | ( | QString | matId | ) |
Set material to current objects of iterator.
void domainBim::AutomationAPI::itSetupDbCache | ( | QString | propName, |
QString | propType | ||
) |
Setup cache for objects in iterator and property 'propname'.
void domainBim::AutomationAPI::itToFront | ( | ) |
Set object iterator before first element. Call itNext(9 to get the first element.
void domainBim::AutomationAPI::itUpdateOOBB | ( | double | eps | ) |
Calculate OptOBB of all contained 3D-objects. The bounding box is always calculated.
void domainBim::AutomationAPI::itUpdateOOBBxy | ( | double | eps | ) |
Calculate OptOBB of all contained 3D-objects. The bounding box is always calculated.
void domainBim::AutomationAPI::lockObjects | ( | QString | idList | ) |
Locks given objects.
idList | List of IDs of objects to lock (separated by ';') |
QString domainBim::AutomationAPI::mergeObjects | ( | QString | parentContainerId, |
QString | idList, | ||
bool | skipClosed = false , |
||
bool | keepTransparency = false , |
||
bool | keepCommonProperties = false , |
||
bool | replaceParent = false |
||
) |
Merge objects into a new one. The material of the resulting object is the material of the object with the largest surface area, or, if flag 'keepTransparency' is set, the transparent material.
New: Source Objects must NOT be deleted manually if merging was successful.
parentContainerId | : ID of container to which merged object should be added. |
idList | : String of IDs of objects to be merged, separated by ';' |
skipClosed | : Exclude closed surfaces from merging. |
keepTransparency | : Keep transparent material if any. |
keepCommonProperties | : Keep common properties of merged objects. |
replaceParent | : Replace parent container with merged object, if all children could be merged into one. |
bool domainBim::AutomationAPI::moveFile | ( | QString | fnFrom, |
QString | fnTo | ||
) |
Move file 'fnFrom' to file 'fnTo'.
bool domainBim::AutomationAPI::openFile | ( | QString | filePath, |
const QString & | encoding = QString() |
||
) |
Open a text stream to a new file for writing. By default, local 8 bit encoding is used.
To change it, set encoding as optional second parameter.
filePath | Name and path of the file to be opened. If no path is given, the current project's path will be used. |
encoding | File encoding, such as "ISO 8859-1", "UTF-8", or "UTF-16" (optional) |
void domainBim::AutomationAPI::propertyScriptClearCache | ( | ) |
Clear cache of all property scripts.
void domainBim::AutomationAPI::propertyScriptClearCache | ( | QString | domain, |
QString | pname, | ||
QString | datatype | ||
) |
QByteArray domainBim::AutomationAPI::readBinaryFile | ( | QString | filePath | ) |
Read a file and return its complete content as unformatted data.
filePath | Name and path of file |
QVariantMap domainBim::AutomationAPI::readCsvFile | ( | QString | filename, |
QString | delimiter = ";" |
||
) |
Read text file in CSV format and return a JSON-object of cells.
filename | Name of file |
delimiter | one character as delimiter of cells, mostly ";" or " " (a tab sign) |
quoteSign | one character, some CSV files use quotes to specify text. Delimiters and line-breaks within quotes are ignored. |
Example:
... returns something like:
QString domainBim::AutomationAPI::readImageFile | ( | QString | filename, |
QString | targetFormat = "" , |
||
bool | applyExifRotation = false |
||
) |
Read image file and return a Base64-encoded string.
By default, this just encodes the raw input data into Base64, but you can optionally add image format conversion and Exif rotation.
filename | Name of image file |
targetFormat | Optionally specify "png", "jpg", "bmp" or "gif" for target format if you want a conversion. If you want to keep the original source format, this parameter can be omitted (or set to ""). |
applyExifRotation | If set to true, Exif data (if present in the source file) is evaluated to rotate the image. This will only work if an output format is specified (because otherwise, the raw input data will only be encoded, but not otherwise processed). |
QStringList domainBim::AutomationAPI::readTextFile | ( | QString | filename, |
bool | ignoreLineBreakesInDoubleQuotes = false , |
||
QString | codec = QString() |
||
) |
Read text file and return each line as string.
filename | Name of file |
ignoreLineBreakesInDoubleQuotes | |
code | Codec for reading the textfile, one of [ "ISO 8859-1", "UTF-8", "UTF-16" ] |
QString domainBim::AutomationAPI::readTextFileAsString | ( | QString | filename, |
QString | codec = QString() |
||
) |
Read text file and return complete content.
filename | Name of file |
|
slot |
Recalculate projected dates of Activity Project.
taskID | ID of root task. If ID is empty, all time schedules will be considered. |
visibleOnly | Use visible tasks only |
int domainBim::AutomationAPI::removeAllLinkedObjects | ( | QString | id | ) |
Remove all linked objects from the element with the given ID.
id | ID of element |
int domainBim::AutomationAPI::removeAllRangesFromRegion | ( | QString | regionId, |
QString | alignmentId = QString() |
||
) |
Remove all ranges from region.
regionId | ID of region (will be returned if region is successfully added to an alignment) |
alignmentId | ID of alignment. Optional parameter, if given, method is faster, because not all objects have to be searched |
int domainBim::AutomationAPI::removeAllRegionsFromAlignment | ( | QString | alignmentId | ) |
Remove all regions from an alignment with given ID.
|
slot |
Remove calendar from task. This will not affect inherited calendars.
taskID | ID of the task |
bool domainBim::AutomationAPI::removeFile | ( | QString | filePath | ) |
Remove a file
filePath | Name and path of file to be removed. If no path is given, the current project's path will be used. |
int domainBim::AutomationAPI::removeFromSelectionSetGeometry | ( | QString | setId, |
QString | objectIDs | ||
) |
Remove objects from selection set in domain 'geometry'.
objectIDs | String containing object IDs, separated by ';'. |
int domainBim::AutomationAPI::removeLinkedObjects | ( | QString | id, |
QString | linkedIdList | ||
) |
Remove links to a given list of objects from another object.
void domainBim::AutomationAPI::removeObjectListFromTooltip | ( | QString | idList, |
QString | tooltipname | ||
) |
Removes the object list from tooltip.
idList | List of objects |
tooltipname | Name of the tooltip template |
int domainBim::AutomationAPI::removePropertyScript | ( | QString | domain, |
QString | pname, | ||
QString | datatype | ||
) |
int domainBim::AutomationAPI::removePropertyTypeBookmarkByID | ( | QString | bkmId | ) |
int domainBim::AutomationAPI::removeRangeFromRegion | ( | QString | regionId, |
double | fromStation, | ||
double | toStation, | ||
QString | alignmentId = QString() |
||
) |
Remove a range from a region. Example: Remove [110.0,300.0] from [0.0,350.0] => [0.0,110.0] + [300.0,350.0]
regionId | ID of region (will be returned if region is successfully added to an alignment) |
fromStation | Lower bound of range |
toStation | Upper bound of range |
alignmentId | ID of alignment. Optional parameter, if given, method is faster, because not all objects have to be searched |
bool domainBim::AutomationAPI::removeSelectionSet | ( | QString | selsetID | ) |
Remove selection set with given ID.
|
slot |
Remove task restriction from task.
taskID | ID of task |
|
slot |
Remove visualisation configuration from tasks.
taskIDList | IDs of task, separated by semicolon |
void domainBim::AutomationAPI::reorderElements | ( | ) |
Renew painting order of geometric elements. Transparent objects have to be drawn at last to appear properly in 3d view. This method should be called after changes in transparency of visible materials.
|
slot |
Forces the MetaDataThreadWorker to reread the meta data of document from URL. since 1.9.0, 18 jun 2016, jh
void domainBim::AutomationAPI::resetMaterials | ( | bool | updateUI = true | ) |
Reset all object materials to materials originally imported with the geometry model file.
updateUI | If set to true (default), an active color scheme will be unapplied and the 3D view will be repainted |
int domainBim::AutomationAPI::setAllPropertyTypesActive | ( | ) |
Set all property types active.
int domainBim::AutomationAPI::setAsComposite | ( | const QString & | id, |
bool | composite | ||
) |
Change container with given ID to composite and vice versa.
id | ID of container/composite |
composite | true: set as composite, false: set as container |
int domainBim::AutomationAPI::setAsOpening | ( | QString | objId, |
QString | openingIDList | ||
) |
Set list of objects as opening elements to a given object. Objects in lists which have openings will be skipped.
objId | ID of object for which to set openings |
openingIDList | Objects to set as openings |
|
slot |
Set BoQ model breakdown structure by template string.
boqModelID | ID of BoQ model |
templateStr | Text with information about the BoQ structure like "1122PPPPI" |
|
slot |
Set a calendar for a task.
taskID | ID of the task |
calendarID | ID of calendar |
|
slot |
Set default options of calendar.
calendarID | ID of the calendar |
void domainBim::AutomationAPI::setCloudSettings | ( | QVariantMap | vm | ) |
Set Cloud Data such as URL, User and Password. Password is not saved when the project is saved.
int domainBim::AutomationAPI::setLinkedObjects | ( | const QString & | elementID, |
const QString & | IDList | ||
) |
Create a link (relation) between objects.
elementID | ID of element to the linked.object links. The element can be of any domain (like geometry, activity etc). |
IDList | List of objects to be linked to. List must be a semicolon-separated string. Currently, only geometric elements are supported as link targets. |
int domainBim::AutomationAPI::setMaterialToObjects | ( | QString | matId, |
QString | objectIds | ||
) |
Set material to given objects (elements of domain 'geometry').
matId | ID of material |
objectIds | String of semicolon-separated object IDs to which the material is to be assigned. If an ID is an ID of a container, the material is assigned to all contained objects. |
void domainBim::AutomationAPI::setName | ( | QString | objIdList, |
QString | name | ||
) |
Set name of all given elements.
eleIDList | List of elements to be renamed |
name | Name to be set to elements |
void domainBim::AutomationAPI::setObjectsToWireMode | ( | QString | ids, |
bool | wired | ||
) |
Set objects to wire-frame mode based on condition.
ids | String of semicolon-separated object IDs |
wired | true = set objects to wire mode false = set objects to normal mode |
void domainBim::AutomationAPI::setPropertyListAsJSON | ( | QVariantMap | propmap, |
QVariantMap | opt | ||
) |
Set list of property values to objects.
propmap | List of properties as JSON object. |
Example: Property List
opt | Options for setting property values. Target: <br> 1: Database <br> 2: Repo <br> 3: Default <br> HandleExisting: 0: overwrite <br> 1: ignore <br> 2: backupWithDate |
Example: Options
int domainBim::AutomationAPI::setPropertyScriptBgColor | ( | QString | domain, |
QString | pname, | ||
QString | datatype, | ||
QString | code | ||
) |
Set code (background) of property script.
int domainBim::AutomationAPI::setPropertyScriptCode | ( | QString | domain, |
QString | pname, | ||
QString | datatype, | ||
QString | code | ||
) |
Set code (value) of property script.
int domainBim::AutomationAPI::setPropertyScriptFgColor | ( | QString | domain, |
QString | pname, | ||
QString | datatype, | ||
QString | code | ||
) |
Set code (foreground) of property script.
int domainBim::AutomationAPI::setPropertyScriptOptions | ( | QString | domain, |
QString | pname, | ||
QString | datatype, | ||
QVariantMap | opt | ||
) |
bool domainBim::AutomationAPI::setPropertyTypeActive | ( | QString | pName, |
QString | ptype, | ||
QString | domain, | ||
bool | active | ||
) |
domain | Domain(s) for which to set the active status, e.g. "geometry", "geometry;activities", "all" |
int domainBim::AutomationAPI::setPropertyTypeMetaData | ( | QString | pName, |
QString | ptype, | ||
QVariantMap | metadata | ||
) |
Set meta data of property type such as display name and unit.
pName | Name of property type |
pType | Data type of property type |
metadata | Object containing data to set |
Example:
int domainBim::AutomationAPI::setPropertyValue | ( | QString | objId, |
QString | propName, | ||
QString | propDataType, | ||
QVariant | value | ||
) |
A Property value is set in the Project Repository, DB or model (the lookup sequence for this is the same as when setting a Property via the GUI).
If the Property Type does not exist, it is created in the Project Repository.
To set a global property use objId = GlobalProject
.
objId | ID of element to set the property value to |
propName | Name of the Property |
propDataType | Data Type of the Property in XML notation (for example 'xs:string' or 'xs:long') |
value | Property Value |
int domainBim::AutomationAPI::setPropertyValueDB | ( | const QString & | objIdList, |
const QString & | propName, | ||
const QString & | propDataType, | ||
const QString & | propDomain, | ||
const QVariant & | value, | ||
bool | createType = true |
||
) |
A property is set in the database.
Only datatypes supported by the database are provided. In SQLite DBs, datatypes xs:int
and xs:float
are mapped to xs:long
and xs:double
accordingly.
objIdList | : List of objects (objIDs separated by ';') which should be affected. |
propDomain | : Domains that the object IDs will be looked up in and the property will be created for. Example: "geometry;activities". If empty, "geometry" is used. |
createType | : If true (default), a property type will be created if not yet existing; if false, the operation will fail if the property type does not already exist |
Changed in 1.3.0, 30 jan 2014:
Extended signature by parameter 'propDomain'.
int domainBim::AutomationAPI::setPropertyValueRepository | ( | QString | objId, |
QString | propName, | ||
QString | propDataType, | ||
QVariant | value, | ||
bool | createType = true |
||
) |
Explicitly force the property to be written in project repository (memory).
objId | ID of element to set the property value to |
propName | Name of the Property |
propDataType | Data Type of the Property in XML notation (for example 'xs:string' or 'xs:long') |
value | Property Value |
createType | If true (default), a property type will be created if not yet existing; if false, the operation will fail if the property type does not already exist |
|
slot |
Set Task Mode:
taskmodeManuallyScheduled = 1, taskmodeAutomaticallyScheduled = 2
To get task mode see class CoreAPI.
|
slot |
Set task restrictions for a task.
taskID | ID of the task |
restrictionsID | ID of task restrictions |
void domainBim::AutomationAPI::setTempValue | ( | QString | name, |
QVariant | value | ||
) |
Stores the value for property name as long as the project is not closed or reloaded. Webform reload has no effect on it. No persistence. Information is lost when project is reloaded or DESITE ist closed, even when the project is saved before.
int domainBim::AutomationAPI::setTransparency | ( | QString | objectIds, |
float | defaultTransparency = 0.95 |
||
) |
Objects get a transparent version of their original material. A new material is created if not already assigned to an object. '-T' is appended to the original name.
objectIds | String of semicolon-separated IDs of objects to change material of. |
defaultTransparency | Transparency value used (default: 0.95). Existing transparency remains unchanged. |
|
slot |
Set visualisation configuration to task.
taskIDList | IDs of task, separated by semicolon |
visID | ID of visualisation |
void domainBim::AutomationAPI::showWireModeSchema | ( | QString | name | ) |
Apply wire mode schema with given name.
name | Name of wire mode schema which should be applied. 'Reset' resets wire mode (draw all objects solid). |
int domainBim::AutomationAPI::startProjectTransaction | ( | const QString & | domain = "geometry" | ) |
Start transaction on project of given domain. Use this if you want to create many objects at once.
bool domainBim::AutomationAPI::startTransaction | ( | ) |
Start database transaction.
int domainBim::AutomationAPI::swapOrientationOfTriangles | ( | QVariantList | idList | ) |
Swap orientation of triangles of surface objects.
idList | List of surface object IDs. |
|
slot |
Synchronizes a document container with the assigned local directory or webservice. An URL must be set for the container which should be synchronized!
containerId | : container node ID |
callback | When synching via webservice, the process will be asynchronous. You can optionally set this callback to be triggered when the sync finishes. The callback function should have one boolean parameter, indicating success (true) or failure (false). |
blockExecution | Will only have an effect with a webservice sync. With this flag set to true, script execution will not continue until the synchronisation has finished. This may incur a performance penalty and is generally not recommended. If possible, use a callback function to define post-sync steps instead. |
Example 1: Non-blocking with callback
Example 2: Blocking, no callback
int domainBim::AutomationAPI::transformObject | ( | QString | objId, |
QString | transformation | ||
) |
Rotate, scale, translate object.
objId | ID of object which should be transformed |
transformation | scale, translate, rotate encoded as XML |
Transformation:
void domainBim::AutomationAPI::unlockAllObjects | ( | ) |
Unlocks all objects.
void domainBim::AutomationAPI::unlockObjects | ( | QString | idList | ) |
Unlocks given objects.
idList | List of IDs of objects to lock (separated by ';') |
void domainBim::AutomationAPI::updateBoundingBox3DView | ( | ) |
Update overall bounding box of all objects in 3D view.
void domainBim::AutomationAPI::updateMaterial | ( | QString | matId, |
QString | xmlMat | ||
) |
Update material properties such as diffuse, transparency, ...
matId | ID of material |
matXml | New material properties as XML |
int domainBim::AutomationAPI::updateOOBB | ( | QString | obIDList, |
double | eps = 0.001 |
||
) |
Update optimized, orientated bounding box (OOBB) of all given geometric objects. It will always be re-calculated.
objIdList | IDs of objects to be affected (separated by ';') |
eps | Threshold for optimization (default: 0.001) |
int domainBim::AutomationAPI::updateOOBBxy | ( | QString | objIdList, |
double | eps = 0.001 |
||
) |
Update optimized, orientated bounding box in xy-plane (OOBBxy) of all given geometric objects. It will always be re-calculated.
objIdList | IDs of objects to be affected (separated by ';') |
eps | Threshold for optimization (default: 0.001) |
int domainBim::AutomationAPI::updateSmartSets | ( | QStringList | smartSetIDs = QStringList() | ) |
Update the Smart Sets with given IDs. If ID list is empty (default), all available Smart Sets will be updated.
bool domainBim::AutomationAPI::writeBinaryFile | ( | QString | filePath, |
const QByteArray & | data | ||
) |
Write any unformatted data to a file.
filePath | Name and path of the file to be written. If no path is given, the current project's path will be used. |
data | Data to be written to the file |
bool domainBim::AutomationAPI::writeFile | ( | QString | filePath, |
const QString & | content, | ||
const QString & | encoding = QString() |
||
) |
Write a string as a whole to a file.
filePath | Name and path of the file to be written. If no path is given, the current project's path will be used. |
content | String to be written to the file |
encoding | File encoding, such as "ISO 8859-1", "UTF-8", or "UTF-16" |
int domainBim::AutomationAPI::writePropertyValueDB | ( | const QString & | objIdList, |
const QString & | propName, | ||
const QString & | propDataType, | ||
const QString & | propDomain, | ||
const QVariant & | value, | ||
bool | createType = true |
||
) |
Write property value to database.
Other than setPropertyValueDB(), this method does not check if the objects given by objIdList exist in the project.
bool domainBim::AutomationAPI::writeToFile | ( | QString | content | ) |
Write text to an open file.
content | Text to be written |
Created: Tue Dec 13 2022 13:14:00 |