askrius 发表于 2022-7-6 09:29:35

ObjectARX:。净:DwgVersion en

有人知道DWGVersion枚举的映射是什么吗?

iblanco 发表于 2022-7-6 10:23:49

它是DWG格式的版本。
 
    if fs.Read(data, 0, 6) = 6 then
   match (new System.Text.ASCIIEncoding()).GetString data with
   | StartsWith "MC0.0" -> "R1.0"
   | StartsWith "AC1.2" -> "R1.2"
   | StartsWith "AC1.40" -> "R1.4"
   | StartsWith "AC1.50" -> "R2.05"
   | StartsWith "AC2.10" -> "R2.10"
   | StartsWith "AC2.21" -> "R2.21"
   | StartsWith "AC2.22" -> "R2.22"
   | StartsWith "AC1001" -> "R2.22"
   | StartsWith "AC1002" -> "R2.5"
   | StartsWith "AC1003" -> "R2.6"
   | StartsWith "AC1004" -> "R9"
   | StartsWith "AC1006" -> "R10"
   | StartsWith "AC1009" -> "R11"
   | StartsWith "AC1012" -> "R13"
   | StartsWith "AC1014" -> "R14"
   | StartsWith "AC1015" -> "2000"
   | StartsWith "AC1018" -> "2004"
   | StartsWith "AC1021" -> "2007"
   | StartsWith "AC1024" -> "2010"
   | _ -> "Unknown"
   else ""
 
希望这有助于确定每个DWG版本是什么。

iblanco 发表于 2022-7-6 10:36:37

也许这更清楚。
页: [1]
查看完整版本: ObjectARX:。净:DwgVersion en