# running 3d building by entity API

**URL:** <https://community.cesium.com/t/running-3d-building-by-entity-api/4950>\
**Category:** CesiumJS\
**Created:** [December 24, 2016, 5:15pm UTC](https://community.cesium.com/t/running-3d-building-by-entity-api/4950 "2016-12-24T17:15:32Z")\
**Posts on this page:** 1\
**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:** [December 24, 2016, 5:15pm UTC](https://community.cesium.com/t/running-3d-building-by-entity-api/4950/1 "2016-12-24T17:15:32Z")

</div>

Hello,  
Please help me,

I’m using the 3d Model code sample in sandcastle but it not run correctly. I runs but don’t search for 3d models.

In this line there is error(line 40): var hpr = new Cesium.HeadingPitchRoll(heading, pitch, roll);

Error description:

Uncaught TypeError: Cesium.HeadingPitchRoll is not a constructor  
at createModel (3D%20Models2.html:40)  
at Object.onselect (3D%20Models2.html:64)  
at HTMLSelectElement.menu.onchange (Sandcastle-header.js:57)

I attached image from error message,

This code is code from 3d model in sandcastle:

 3d models @import url(../templates/bucket.css); @import url(../Build/Cesium/Widgets/widgets.css); html, body, #cesiumContainer { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden;

# Loading...

Very thanks in advance,

Sabah

 ![Untitled.jpg](https://global.discourse-cdn.com/cesium/original/1X/87d83ffe508b013d1dee270937ea1a4327ad9f8f.jpeg)
