【问题标题】:Identification of read-only parameters in an uploaded revit model in forge viewer在 Forge 查看器中识别上传的 Revit 模型中的只读参数
【发布时间】:2021-02-14 22:40:12
【问题描述】:

是否可以在 Forge 查看器中识别上传的 Revit 模型中的只读参数?

我已经尝试使用查看器 api (getProperties(dbId, onSuccessCallback, onErrorCallback)) 检索信息,无论它是否为只读参数。

在从上传模型导出的 SQL 数据库中,我也找不到任何信息。

【问题讨论】:

    标签: autodesk-forge


    【解决方案1】:

    只读信息存储在属性 flags 中,既在 sqlite 数据库中,也在查看器使用的 *.json.gz 文件中(有关此blog post 中解释的更多信息):

    以下是flags 中各个位的含义:

    {
        Hidden    : 1 << 0, /* Attribute will not be displayed in default GUI property views. */
        DontIndex : 1 << 1, /* Attribute will not be indexed by the search service. */
        DirectStorage : 1 << 2,  /* Attribute is not worth de-duplicating (e.g. vertex data or dbId reference) */
        ReadOnly : 1 << 3 /* Attribute is read-only (used when writing back to the design model, in e.g. Revit) */
    }
    

    【讨论】:

    • 对于上传模型中的只读参数'Volume'参数,值8存储在属性'flag'中。值 8 也可以在非只读参数中找到。
    • 也许我们都指的是不同的“只读”设置/标志。如果您有特定的 Revit 模型,并且您认为特定属性的只读标志设置不正确,请通过forge (dot) help (at) autodesk (dot) com 与我们共享文件,我们会将其传递给工程团队。
    猜你喜欢
    • 2019-12-10
    • 2018-03-09
    • 2019-01-17
    • 2020-11-02
    • 2018-07-16
    • 1970-01-01
    • 2019-03-23
    • 2022-08-19
    • 2021-06-27
    相关资源
    最近更新 更多