重构: AecXData 类型标签改用枚举 AecXData::EType
- 在 AecXData 内新增 enum EType,取值直接采用 wtypes.h 的 VARENUM(VT_*), 与原实现逐位一致(nVt 会序列化进 DWG/DXF/XData,数值必须保持不变)。 - 各模块共 303 处 nVt 判断由裸 VT_* 改为 AecXData::kTypeXxx,涉及 18 个文件; 仅调试打印用的字符串字面量保持原样。 - AecDbObjXDataMap.h 增加 #include <wtypes.h>(EType 引用 VT_*)。
This commit is contained in:
1 parent
9d9077a03e
commit
0467086e65
18 files changed
+602
-723
No files matched your search
@@ -4082,7 +4082,7 @@ void TDbPipeLine::RemoveHolePipe(AecDbEwPipe* pWPipe)
|
||||
for (; it != end;)
|
||||
{
|
||||
if (!pXDatMap->GetNext(it, sKey, cVal)) break;
|
||||
if (sKey.Find(_T("$H")) != -1 && cVal.nVt == VT_BSTR)//可能的实体句柄
|
||||
if (sKey.Find(_T("$H")) != -1 && cVal.nVt == AecXData::kTypeString)//可能的实体句柄
|
||||
{
|
||||
AcDbHandle handle(cVal.pszVal);
|
||||
|
||||
|
||||
Reference in new issue
Block a user