Sqlite 属性数据库 - 有关 _objects_attr 表中的数据类型和单位符号的任何文档吗?

问题描述 投票:0回答:1

美好的一天,

有关于sqlite属性数据库(_objects_attr表)中的数据类型和单位符号的任何文档吗?

查看不同的文件后,数据类型似乎映射如下:

  • 1 - 布尔值
  • 2 - 整数
  • 3 - 浮动
  • 11 - 链接/参考
  • 20 - 字符串
  • 21 - 元素类型
  • 22 - 日期

单位(data_type_context)似乎因源文件格式而异。 只有浮点数有单位定义。

对于 Revit,单位以 Revit 特定方式定义:

对于其他格式,使用 SI 和英制单位符号(mm、m、m^2、m^3、ft、ft^2、ft^3、弧度、deg、...)

这是正确的吗?任何文档都会有帮助。

非常感谢

沃尔夫冈

autodesk-forge autodesk-model-derivative
1个回答
0
投票

相关问题显示部分答案并确认数据类型:

搜的时候没找到🤔❓

́\(ツ)

以下是执行属性提取的 C++ 代码中的类型值:

enum AttributeType {

  /* Numeric types */
  Unknown                 = 0,
    Boolean,
    Integer,
    Double,

    /* Special types */
    BLOB                    = 10,
    DbKey, /* reprensets a link to another object in the database, using database internal ID */

    /* String types */
    String                  = 20,
    LocalizableString,
    DateTime,       /* ISO 8601 date */
    GeoLocation,    /* LatLonHeight - ISO6709 Annex H string, e.g: "+27.5916+086.5640+8850/" for Mount Everest */
    Position        /* "x y z w" space separated string representing vector with 2,3 or 4 elements*/
};
© www.soinside.com 2019 - 2024. All rights reserved.