zoukankan      html  css  js  c++  java
  • NX二次开发-NXOPEN C#UF遍历函数theUfSession.Obj.CycleObjsInPart

    NX9+VS2012

    using
    System; using NXOpen; using NXOpen.UF; using NXOpen.Utilities; //遍历当前显示部件所有实体 Tag PartTag = Tag.Null; theUfSession.Obj.CycleObjsInPart(theUfSession.Part.AskDisplayPart(), UFConstants.UF_solid_type, ref PartTag); while (PartTag != Tag.Null) { int type1; int subtype1; theUfSession.Obj.AskTypeAndSubtype(PartTag, out type1, out subtype1);//获得类型和子类型 if (type1 == UFConstants.UF_solid_type & subtype1 == UFConstants.UF_solid_body_subtype)//判断实体类型 { //设置颜色 theUfSession.Obj.SetColor(PartTag, 186); } theUfSession.Obj.CycleObjsInPart(theUfSession.Part.AskDisplayPart(), UFConstants.UF_solid_type, ref PartTag); } Caesar卢尚宇 2020年6月23日

  • 相关阅读:
    JEECG开发总结
    ehcache集群的配置
    spring拦截器
    spring的基本配置
    kindeditor编辑器
    jQuery中的Ajax
    表单验证
    Python中的Random模块
    Open vSwitch FAQ (二)
    Open vSwitch FAQ (一)
  • 原文地址:https://www.cnblogs.com/nxopen2018/p/13184730.html
Copyright © 2011-2022 走看看