03 2021 档案

摘要://UG OPENAPI 首选项 建模 公差设置 //c#代码 double AngleTolerance=0.001; double DistanceTolerance=0.001; double Tolerance5 = 5.000; //读取备份原公差 theUFSession.Modl.As 阅读全文
posted @ 2021-03-12 16:07 木艮木子 阅读(524) 评论(0) 推荐(0)
摘要://UG OPENAPI 取最小距离 UF_MODL_ask_minimum_dist //c# public double AskMinimumDist(UFSession theUFSession,Tag obj1, Tag obj2) { int guess1_given; double[] 阅读全文
posted @ 2021-03-11 09:07 木艮木子 阅读(247) 评论(0) 推荐(0)
摘要://UG OPENAPI 实体求和 求交 求差 创建立方体、圆柱 //c++ tag_t create_block(){//创建立方体 double origin[3]={0.0,0.0,0.0}; char *edge_lens[3]={"1","1","1"}; tag_t block, fea 阅读全文
posted @ 2021-03-11 08:39 木艮木子 阅读(314) 评论(0) 推荐(0)
摘要://UG OPENAPI 选择面上的点同时获取面tag //c# private void getpoint_face(){ UFSession theUFSession = UFSession.GetUFSession(); int response; double[] point = new d 阅读全文
posted @ 2021-03-09 14:28 木艮木子 阅读(511) 评论(0) 推荐(0)