# Selecting different parts from a 3d building and display attribute it

**URL:** <https://community.cesium.com/t/selecting-different-parts-from-a-3d-building-and-display-attribute-it/4996>\
**Category:** CesiumJS\
**Created:** [January 7, 2017, 11:19pm UTC](https://community.cesium.com/t/selecting-different-parts-from-a-3d-building-and-display-attribute-it/4996 "2017-01-07T23:19:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sabah\_Motamedi](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@Sabah\_Motamedi](https://community.cesium.com/u/Sabah_Motamedi)\
**Post date:** [January 7, 2017, 11:19pm UTC](https://community.cesium.com/t/selecting-different-parts-from-a-3d-building-and-display-attribute-it/4996/1 "2017-01-07T23:19:48Z")

</div>

Hello,

I’m working on 3D Cadastre, I want to select different parts (lots) from a building and display attribute it.

Can you help me for this?

I don’t want to select whole of a building, Do you have code for selecting different parts from building?

Thank you,

Sabah

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [January 9, 2017, 10:53pm UTC](https://community.cesium.com/t/selecting-different-parts-from-a-3d-building-and-display-attribute-it/4996/2 "2017-01-09T22:53:56Z")

</div>

What type of data are you working with? Is it just a glTF or a combination of glTF with some sort of vector data?

---

<div class="post-metadata">

**Author:** ![Sabah\_Motamedi](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@Sabah\_Motamedi](https://community.cesium.com/u/Sabah_Motamedi)\
**Post date:** [January 10, 2017, 7:40am UTC](https://community.cesium.com/t/selecting-different-parts-from-a-3d-building-and-display-attribute-it/4996/3 "2017-01-10T07:40:42Z")

</div>

Hello,  
First data is with CityGML format (a building with attribute) then i convert it to COLLADA then to glTF format, The building including multi-unit buildings, I want to select different parts from building then display attribute it in the Cesium,

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [January 13, 2017, 2:15am UTC](https://community.cesium.com/t/selecting-different-parts-from-a-3d-building-and-display-attribute-it/4996/4 "2017-01-13T02:15:58Z")

</div>

Some information may get lost from the CityGML to glTF conversion. Can you send over one of your models? Is it possible to select different nodes in a model like in this dev-example: [http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=development/3D%20Models.html&label=Showcases](http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=development/3D%20Models.html&label=Showcases) and then show or hide the picked node by setting node.show to true or false. I don’t think the attributes would be preserved, but I’d like to check out the model you have.

---

<div class="post-metadata">

**Author:** ![Sabah\_Motamedi](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@Sabah\_Motamedi](https://community.cesium.com/u/Sabah_Motamedi)\
**Post date:** [January 13, 2017, 7:35am UTC](https://community.cesium.com/t/selecting-different-parts-from-a-3d-building-and-display-attribute-it/4996/5 "2017-01-13T07:35:46Z")

</div>

Hello,

Thank you,

I don’t think so, Yes i attached my model,

I want to select units of building and display attribute it on screen.(I send for you image from example).

I don’t want to enter coordinate of object, i want to read coordinate of building from model and display attribute of building by any click(select model).

i sent for you snapshot from my model that i run(by error name, first image).

Best

Sabah

 ![Error with country block.jpg](https://global.discourse-cdn.com/cesium/original/2X/3/3eedc090dd0298921000247a62de37276acc16ec.jpeg)

 ![sabah.JPG](https://global.discourse-cdn.com/cesium/original/2X/c/ced99014d0853c3cee44ff62116dd0fe38bbaba2.jpeg)

![sabah1.JPG](https://global.discourse-cdn.com/cesium/original/2X/a/a4d2fe80878c7d0a7dd196117ffccb48fbcdd3d0.jpeg)

[faculty-citygml1.xml](https://community.cesium.com/uploads/short-url/rh3UVmhO0kTzP9QZ3F9TeO7BVKT.xml) (918 KB)

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [January 15, 2017, 1:42am UTC](https://community.cesium.com/t/selecting-different-parts-from-a-3d-building-and-display-attribute-it/4996/6 "2017-01-15T01:42:45Z")

</div>

Can you also send over the glTF model?

---

<div class="post-metadata">

**Author:** ![noorfazierafarahin](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@noorfazierafarahin](https://community.cesium.com/u/noorfazierafarahin)\
**Post date:** [April 25, 2017, 2:55pm UTC](https://community.cesium.com/t/selecting-different-parts-from-a-3d-building-and-display-attribute-it/4996/7 "2017-04-25T14:55:58Z")

</div>

Hello Sabah. Can I know how you build your building from the scratch until it can have the function to display the attributes?

---

<div class="post-metadata">

**Author:** ![Sabah\_Motamedi](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@Sabah\_Motamedi](https://community.cesium.com/u/Sabah_Motamedi)\
**Post date:** [April 25, 2017, 10:13pm UTC](https://community.cesium.com/t/selecting-different-parts-from-a-3d-building-and-display-attribute-it/4996/8 "2017-04-25T22:13:08Z")

</div>

Hello,  
I drew it by the Sketch up software, No unfortunately.

---

<div class="post-metadata">

**Author:** ![noorfazierafarahin](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@noorfazierafarahin](https://community.cesium.com/u/noorfazierafarahin)\
**Post date:** [April 26, 2017, 2:30pm UTC](https://community.cesium.com/t/selecting-different-parts-from-a-3d-building-and-display-attribute-it/4996/9 "2017-04-26T14:30:48Z")

</div>

Sorry if I ask you again, how you link the sketch up data with their database?

---

<div class="post-metadata">

**Author:** ![Sabah\_Motamedi](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@Sabah\_Motamedi](https://community.cesium.com/u/Sabah_Motamedi)\
**Post date:** [April 27, 2017, 10:53pm UTC](https://community.cesium.com/t/selecting-different-parts-from-a-3d-building-and-display-attribute-it/4996/10 "2017-04-27T22:53:00Z")

</div>

By install city engine plug-in on sketch up.
