//获取参考的线属性 int colorValid -1; int typeValid -1; int widthValid -1; szwLineAttribute wireAttribute{}; ZF_CALL(ZwDrawingViewReferenceAttributeGet(pRefHandles[j], colorValid, typeValid, widthValid, wireAttribute)); WriteMessage(获取参考【%s】的线属性_是否“随图颜色” %s, fileName, colorValid FALSE ? 是 : 否); if (colorValid TRUE) { WriteMessage(获取参考【%s】的线属性_颜色 %s, fileName, ZF_EnumToString(ezwColor, wireAttribute.color)); } //设置参考的线属性 colorValid 1; wireAttribute.color ezwColor::ZW_COLOR_RED; ZF_CALL(ZwDrawingViewReferenceAttributeSet(pRefHandles[j], colorValid, typeValid, widthValid, wireAttribute)); if (colorValid TRUE) { WriteMessage(设置参考【%s】的线属性_颜色 %s, fileName, ZF_EnumToString(ezwColor, wireAttribute.color)); }