UG二次开发 添加装配(C#)

 1       /// <summary> 
 2         /// 添加装配
 3         /// </summary>
 4         /// <returns>返回 </returns>
 5         public void asmAddPartToAssembly(string prtfull, double[] org, double[] vecXY, string refset_name, ref Tag instance)
 6         {
 7             instance = Tag.Null;
 8             UFPart.LoadStatus error_status;
 9             string name = Path.GetFileNameWithoutExtension(prtfull);
10             theUfSession.Assem.AddPartToAssembly(theUfSession.Assem.AskWorkPart(), prtfull, refset_name, 
11                 name.ToUpper(), org, vecXY, -1, out instance, out error_status);
12             instance = theUfSession.Assem.AskChildOfInstance(instance);
13         }

 

上一篇:Istio 限流的正确姿势


下一篇:Istio Helm Chart 详解 - Ingress