BIMserver icon indicating copy to clipboard operation
BIMserver copied to clipboard

getDataObjectByGuid vs getExtendedData

Open sigurdne opened this issue 5 years ago • 3 comments

Version 1.5.172: I am trying to get a complete dataset about an object ( like IfcDoor). The method LowLevelInterface::getDataObjectByGuid() returns some of the data - but it seems that I have to look for extra property sets - and fetch them separately.

Is there a way to get the information with all p-sets in one go?

ServiceInterface::getExtendedData() is not working (for me) - "Unhandled exception..."

Regards

sigurdne avatar Nov 05 '19 12:11 sigurdne

Not sure what ExtendedData has to do with this, ExtendedData are extra pieces of data you can attach to BIMserver Revisions or Projects.

You can try this query to load all property sets and properties of all IfcProducts in your model:

{
  "type": {
    "name": "IfcProduct",
    "includeAllSubTypes": true
  }, "include": "ifc2x3tc1-stdlib:AllProperties"
}

rubendel avatar Nov 08 '19 14:11 rubendel

Thanks for the tip. this one gave me a lot more:

{ "guid": "3cVEcftE5DtRX0GlhOvV$2", "include": "ifc2x3tc1-stdlib:AllProperties" } Is the possible input-variants to queries to be found somewhere?

sigurdne avatar Nov 10 '19 16:11 sigurdne

Are you asking for documentation of the query language?

hlg avatar May 12 '21 10:05 hlg