New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying different properties from the server #586

Open
miolfo opened this Issue Jul 28, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@miolfo

miolfo commented Jul 28, 2017

Hello,

I have a question regarding how to query some of the metadata that is visible in the bimvie.ws. For example, when I select one of the objects in an ifc model, I can see properties as follows in the bimvie.ws:
image

How can I query the properties such as the "Tekla Reinforcement" from the server? I found no information about it on the wiki, and I went through all of the JSON queries in the Console -application, but I couldn't find a query that can be used for getting the values in the image.

Regards,
Mikko Forsman

@miolfo

This comment has been minimized.

Show comment
Hide comment
@miolfo

miolfo Aug 30, 2017

Hello @rubendel ,

Is there any solution to this issue?

miolfo commented Aug 30, 2017

Hello @rubendel ,

Is there any solution to this issue?

@xie-qianyue

This comment has been minimized.

Show comment
Hide comment
@xie-qianyue

xie-qianyue Aug 31, 2017

I would also like to know the solutiion.

xie-qianyue commented Aug 31, 2017

I would also like to know the solutiion.

@dishesh

This comment has been minimized.

Show comment
Hide comment
@dishesh

dishesh Jun 1, 2018

Yes this is an important question that I have been waiting to ask. I have managed to get basic properties using multiple callbacks for json. But to find these properties is not seem easy : Quantities and pSet

dishesh commented Jun 1, 2018

Yes this is an important question that I have been waiting to ask. I have managed to get basic properties using multiple callbacks for json. But to find these properties is not seem easy : Quantities and pSet

@nelsonmunoz

This comment has been minimized.

Show comment
Hide comment
@nelsonmunoz

nelsonmunoz Jun 1, 2018

One way you can get all property sets with getObjectByType method on the LowLevelInterface interface via json. Set packageName to either "ifc4" or whatever and then set className to "IfcPropertySet".

{
  "token": "YOUR_TOKEN_HERE",
  "request": {
    "interface": "LowLevelInterface", 
    "method": "getDataObjectsByType", 
    "parameters": {
      "roid": 99999999,
      "packageName": "ifc4",
      "className": "IfcPropertySet",
      "flat": "false"
    }
  }
}

This returns all IfcPropertySet and their attached individual properties. Then you just filter by the "Name" attribute client side, in your case "Tekla Reinforcement".

All calls for the interface are accessible with some tutorials and many are documented in the console (yourhost/apps/console) if you've chosen to install it during bimserver setup.

You can learn all about the diferent classes on http://www.buildingsmart-tech.org/ifc/IFC4/Add2/html/ once you know the ifc denomination of what your looking for you can use the LowLevelInterface to get pretty much anything depending on its type.

nelsonmunoz commented Jun 1, 2018

One way you can get all property sets with getObjectByType method on the LowLevelInterface interface via json. Set packageName to either "ifc4" or whatever and then set className to "IfcPropertySet".

{
  "token": "YOUR_TOKEN_HERE",
  "request": {
    "interface": "LowLevelInterface", 
    "method": "getDataObjectsByType", 
    "parameters": {
      "roid": 99999999,
      "packageName": "ifc4",
      "className": "IfcPropertySet",
      "flat": "false"
    }
  }
}

This returns all IfcPropertySet and their attached individual properties. Then you just filter by the "Name" attribute client side, in your case "Tekla Reinforcement".

All calls for the interface are accessible with some tutorials and many are documented in the console (yourhost/apps/console) if you've chosen to install it during bimserver setup.

You can learn all about the diferent classes on http://www.buildingsmart-tech.org/ifc/IFC4/Add2/html/ once you know the ifc denomination of what your looking for you can use the LowLevelInterface to get pretty much anything depending on its type.

@nelsonmunoz

This comment has been minimized.

Show comment
Hide comment
@nelsonmunoz

nelsonmunoz Jun 1, 2018

If you install the BimQL plugin you can also do the following:

Select $Var1
Where $Var1.Attribute.Name = "Tekla Reinforcement"

You can find more info on BimQL on http://openbimstandards.org/standards/bimql/

nelsonmunoz commented Jun 1, 2018

If you install the BimQL plugin you can also do the following:

Select $Var1
Where $Var1.Attribute.Name = "Tekla Reinforcement"

You can find more info on BimQL on http://openbimstandards.org/standards/bimql/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment