在 Forge Viewer 中识别上传的 Revit 模型中的只读参数
Identification of read-only parameters in an uploaded revit model in forge viewer
是否可以在 forge 查看器中识别上传的 revit 模型中的只读参数?
我已经尝试使用查看器 api (getProperties(dbId, onSuccessCallback, onErrorCallback)) 检索信息,无论它是否为只读参数。
同样在SQL数据库中,从上传的模型中导出,我找不到任何信息。
read-only 信息存储在 sqlite 数据库和查看器使用的 *.json.gz 文件中的属性 flags
中(更多信息在这个 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) */
}
是否可以在 forge 查看器中识别上传的 revit 模型中的只读参数?
我已经尝试使用查看器 api (getProperties(dbId, onSuccessCallback, onErrorCallback)) 检索信息,无论它是否为只读参数。
同样在SQL数据库中,从上传的模型中导出,我找不到任何信息。
read-only 信息存储在 sqlite 数据库和查看器使用的 *.json.gz 文件中的属性 flags
中(更多信息在这个 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) */
}