Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

autodesk forge - Loading large models on iPad

I am trying to develop an iPad app, which loads a model, reads the properties from model and build some logic on top of the properties. I tried to load different size models(revit), and tried to load the properties of all elements using getBulkProperties(), as well as getProprties(). These functions works fine for small size models, but for large models it simply returns undefined. I have tried to bind object tree created event, but it never gets fired in case of large models on iPad, Is there any way to load the properties for large models on iPad, and is there any difference on loading the properties from a linked model and a normal model?

question from:https://stackoverflow.com/questions/65560277/loading-large-models-on-ipad

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If you're interested strictly in the properties of a model, there are other ways of retrieving the metadata, likely more efficient than using the Viewer APIs. Please see this blog post for more details: https://forge.autodesk.com/blog/accessing-design-metadata-without-viewer. You could for example retrieve all properties in form of a sqlite database, and process the metadata that way.

Regarding the other question (whether there's any difference between "normal" models and "linked" models), the Model Derivative service is extracting properties from "main" and "linked" models in the same way.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...