会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
UG二次开发
博客园
首页
新随笔
联系
订阅
管理
1
2
3
下一页
2022年2月18日
UG二次开发 移动一个组件中的约束到某个图层 (C#)
摘要: 1 public static void setDisplayedConstraintLayer(string asmName ,int layerId) 2 { 3 NXOpen.Part workPart = theSession.Parts.Work; 4 NXOpen.Part displa
阅读全文
posted @ 2022-02-18 10:44 刘朋1102
阅读(264)
评论(0)
推荐(0)
2022年1月19日
UG二次开发 UF_ATTR_get_user_attribute (C#)
摘要: C# 1 NXOpen.Session.GetSession().ListingWindow.Open(); 2 UFAttr.Iterator iter = new UFAttr.Iterator(); 3 iter.category = ""; 4 iter.check_category = f
阅读全文
posted @ 2022-01-19 15:04 刘朋1102
阅读(372)
评论(0)
推荐(0)
2022年1月11日
UG二次开发 判断属性是否存在(C#)
摘要: 1 NXOpen.Body body; 2 if (body.HasUserAttribute("attrName", NXObject.AttributeType.String, -1)) 3 { 4 //属性存在 5 } 6 else 7 { 8 //属性不存在 9 }
阅读全文
posted @ 2022-01-11 09:36 刘朋1102
阅读(308)
评论(0)
推荐(0)
2021年12月28日
草绘
摘要:
阅读全文
posted @ 2021-12-28 15:19 刘朋1102
阅读(49)
评论(0)
推荐(0)
UG二次开发 创建特征组(C#)
摘要: 1 Tag[] features = new Tag[0]; 2 Tag feature1 = Tag.Null; 3 UFSession.GetUFSession().Modl.CreateSetOfFeature("name", features, features.Length, 0, out
阅读全文
posted @ 2021-12-28 14:40 刘朋1102
阅读(452)
评论(0)
推荐(0)
UG二次开发 判断点在封闭曲线内还是外边
摘要: 1.获取封闭曲线的对象 2.延一个方向做条辅助线,判断辅助线与封闭曲线的交点个数,判断完后删除 注意还需判断交点是否在封闭对象的端点,在端点则不计算数量(-2) 3.判断交点的奇偶性 if ((num & 1) != 1) 如偶数在外边,奇数在内部
阅读全文
posted @ 2021-12-28 14:29 刘朋1102
阅读(723)
评论(0)
推荐(0)
UG二次开发 隐藏对象(C#)
摘要: 1 NXOpen.Session theSession = NXOpen.Session.GetSession(); 2 NXOpen.Part workPart = theSession.Parts.Work; 3 NXOpen.Part displayPart = theSession.Part
阅读全文
posted @ 2021-12-28 14:13 刘朋1102
阅读(444)
评论(0)
推荐(0)
UG二次开发 偏执面(C#)
摘要: 1 public static void creatOffsetFaceBuilder(NXOpen.Face[] faces1 ,double dis) 2 { 3 NXOpen.Session theSession = NXOpen.Session.GetSession(); 4 NXOpen.
阅读全文
posted @ 2021-12-28 14:06 刘朋1102
阅读(241)
评论(0)
推荐(0)
UG二次开发 获取面法相(C#)
摘要: 1 NXOpen.Direction direction1; 2 direction1 = workPart.Directions.CreateDirection(face, NXOpen.Sense.Forward, NXOpen.SmartObject.UpdateOption.WithinMo
阅读全文
posted @ 2021-12-28 13:59 刘朋1102
阅读(724)
评论(0)
推荐(0)
2021年11月29日
UG二次开发 隐藏实体(C#)
摘要: 1 public void setFitAfterShowOrHide(NXOpen.Body inBody) 2 { 3 NXOpen.Session theSession = NXOpen.Session.GetSession(); 4 NXOpen.Part workPart = theSes
阅读全文
posted @ 2021-11-29 14:03 刘朋1102
阅读(359)
评论(0)
推荐(0)
1
2
3
下一页
公告