簡體   English   中英

在 Forge 查看器中識別上傳的 Revit 模型中的只讀參數

[英]Identification of read-only parameters in an uploaded revit model in forge viewer

是否可以在 Forge 查看器中識別上傳的 Revit 模型中的只讀參數?

我已經嘗試使用查看器 api (getProperties(dbId, onSuccessCallback, onErrorCallback)) 檢索信息,無論它是否是只讀參數。

同樣在從上傳的模型導出的 SQL 數據庫中,我找不到任何信息。

只讀信息存儲在屬性flags ,包括 sqlite 數據庫和查看器使用的 *.json.gz 文件中(有關此博客文章中解釋的內容的更多信息):

在此處輸入圖片說明

以下是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) */
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM