摘要: 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)
摘要: 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)
摘要: 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)
摘要: 阅读全文
posted @ 2021-12-28 15:19 刘朋1102 阅读(49) 评论(0) 推荐(0)
摘要: 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)
摘要: 1.获取封闭曲线的对象 2.延一个方向做条辅助线,判断辅助线与封闭曲线的交点个数,判断完后删除 注意还需判断交点是否在封闭对象的端点,在端点则不计算数量(-2) 3.判断交点的奇偶性 if ((num & 1) != 1) 如偶数在外边,奇数在内部 阅读全文
posted @ 2021-12-28 14:29 刘朋1102 阅读(723) 评论(0) 推荐(0)
摘要: 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)
摘要: 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 阅读(240) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)