# HOOPS Communicator

**URL:** <https://forum.techsoft3d.com/t/hoops-communicator/425>\
**Category:** Help\
**Created:** [August 3, 2021, 9:54pm UTC](https://forum.techsoft3d.com/t/hoops-communicator/425 "2021-08-03T21:54:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vidroforta](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@vidroforta](https://forum.techsoft3d.com/u/vidroforta)\
**Post date:** [August 3, 2021, 9:54pm UTC](https://forum.techsoft3d.com/t/hoops-communicator/425/1 "2021-08-03T21:54:50Z")

</div>

Does Hoop Communicator SDK provide a way to retrieve the height, width and length of a part from a converted STEP file? I don’t see any methods in the model class supporting this. Can you provide an example showing how this can be accomplished?

---

<div class="post-metadata">

**Author:** ![cpillion](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/cpillion/32/70_2.png) [@cpillion](https://forum.techsoft3d.com/u/cpillion)\
**Post date:** [August 4, 2021, 9:14pm UTC](https://forum.techsoft3d.com/t/hoops-communicator/425/2 "2021-08-04T21:14:45Z")

</div>

Hello,

Yes, you can query the model dimensions using the Communicator WebViewer API.

The best way to do this programmatically would be to query the bounding box of the model. You can use [getModelBounding](https://docs.techsoft3d.com/communicator/latest/build/api_ref/typedoc/classes/communicator.model.html#getmodelbounding) to achieve this. This will return a box containing the extents of the model, and using that returned box, you can query things like width, height, length, model center, etc. You can find all methods on the returned Box object [here](https://docs.techsoft3d.com/communicator/latest/build/api_ref/typedoc/classes/communicator.box.html). The [extents](https://docs.techsoft3d.com/communicator/latest/build/api_ref/typedoc/classes/communicator.box.html#extents) method will return the dimensions in each axis direction.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/23633593023ab943e40bef708d66eddcad0698a1.png)

Note that the orientation of your model relative to the scene axes will make an impact here, as the bounding box returned is an axis-aligned box. Therefore, any orientation of the model from its original state will give different box values. It may also be desirable to use the tightBounding option to ensure no whitespace is caught between the model and box, though this is a bigger performance hit.

If this does not meet your needs, we have measurement operators that users can use to interactively query the model. This allows a user to select a two points on the model and have a distance returned. You can read more about this operator [here](https://docs.techsoft3d.com/communicator/latest/build/prog_guide/viewing/markup/measurement.html).

 ![image](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/7958e88c4cb205961d78c3900fb7ef4b7eb9b3bc.png)

(note that the small difference in returned measurement is a user input tolerance artifact - this can be more finely tuned by the user to be more precise)

---

<div class="post-metadata">

**Author:** ![guido](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/guido/32/115_2.png) [@guido](https://forum.techsoft3d.com/u/guido)\
**Post date:** [August 4, 2021, 9:46pm UTC](https://forum.techsoft3d.com/t/hoops-communicator/425/3 "2021-08-04T21:46:36Z")

</div>

Just to add to Chris’ answer if you are also interested in the units of the bounding box returned with getModelBounding() you can query those with the [getNodeUnitMultiplier()](https://docs.techsoft3d.com/communicator/latest/build/api_ref/typedoc/classes/communicator.model.html#getnodeunitmultiplier) function.

---

<div class="post-metadata">

**Author:** ![vidroforta](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@vidroforta](https://forum.techsoft3d.com/u/vidroforta)\
**Post date:** [August 6, 2021, 10:16pm UTC](https://forum.techsoft3d.com/t/hoops-communicator/425/4 "2021-08-06T22:16:01Z")

</div>

Thank you guys! I will look into all your suggestions.
