尧图精选

ZW3D二次开发_工程图_获取/设置参考的线属性

🕒 发布时间:2026/9/1 7:30:58 📁 来源:尧图网络
//获取参考的线属性 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)); }
上一篇/下一篇内容由系统自动关联 返回资讯列表 →