user8444489
user8444489

Reputation:

Show dimensions in Autodesk Forge Viewer

I've started trying the autodesk-forge samples and I would like to customize how elements show up on the viewer. So my question is: Is it possible to show the plan elements' dimensions (as shown in the picture below) with Autodesk-viewer?
I can see this dimensions if I click on an element, but I'm trying to get something like this when the viewer starts:

Plan with dimensions

Thanks in advance.

Upvotes: 2

Views: 728

Answers (1)

Felipe
Felipe

Reputation: 4375

There is no API to create dimensions at the moment, but you can use custom implementation to add Three.js lines like the dimension command is doing. You can basically add any 2D/3D custom graphic element to the viewer scene. enter image description here

Unfortunately we have no sample that illustrates how to achieve that, you may take a look at the code of the Measure Extension, see line#60358 in viewer3D.js, but there is quite a bit of work to achieve...

Hope that helps.

Upvotes: 1

Related Questions