DerivativesApi.GetModelviewProperties 属性的子集

DerivativesApi.GetModelviewProperties for subset of properties

模型查看器可以通过过滤器获取属性:viewer.model.getBulkProperties(dbIds, ['externalId', 'Category'], function) 我们可以将结果限制为只有 'externalId' 和 'Category'.

这两个属性

从模型导数 api 中获得相同的过滤功能对我们来说将是一个巨大的好处: https://developer.autodesk.com/en/docs/model-derivative/v2/reference/http/urn-metadata-guid-properties-GET/

我们有包含 40,000 多个零件的 Revit 文件,查询特性可能需要 15 分钟以上,但我们获得的数据远远超过我们需要的。

这是一个合理的增强。我将其记录为内部票 DERI-4610。

如果你用过 Extractor to download the whole SVF dataset to local , you could try with extract the properties from properties.db (the 告诉更多)。这是一个精简版 sql 数据库,实际上由 Forge 云上的 Derivative API 使用。我认为有一些聪明的方法可以通过 db 文件过滤特定属性。