« View and Data API Tips: how to make viewer full screen | Main | View and Data API Tips: How to set hotkeys for viewer »



Feed You can follow this conversation by subscribing to the comment feed for this post.


Hello Phillippe, thanks for your post.
I am trying to use it in my app but I am facing an issue in this line:

var root = _viewer.model.getLayersRoot();

Basically the "model" property is null.

Am I missing something?

Philippe Leefsma

Do you have any geometry in your model? Are you sure that model is null or is it the result "root"?

This code only works for 2d drawings, getLayersRoot return null for 3d models...

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Your Information

(Name is required. Email address will not be displayed with the comment.)

February 2017

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28        

Autodesk Blogs


Cloud and Mobile RSS Feed

Related Posts Plugin for WordPress, Blogger...