简体   繁体   中英

How to get Large Model Property using GetModelviewProperties API in C#

I'm trying to get large model property using 'GetModelviewProperties' API in C#. (the model is translated svf2 format)

I faced the problem and got an error.

Error Message is

Autodesk.Forge.Client.ApiException: 'Error calling GetModelviewProperties: 
{"diagnostic":"Property Database is too large under this URN"}'

Do you have an IDEA for solve it?

As the documentation states, there's a forceget URL query parameter that can be set to:

  • true : Forcibly gets large resources even if they exceed the expected maximum size (20 MB). If the resource is larger than 800 MB, the server behaves as though forceget is false. In such a case, use the objectid query string parameter to download resources by Object ID.
  • false : (Default) Does not get resources if they exceed the expected maximum size (20 MB).

Another option would be to getting the properties using one of the other formats, and not JSON. Please refer to this blog post for more information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM