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 }
标签:prtfull,name,C#,theUfSession,Assem,instance,二次开发,UG,string 来源: https://www.cnblogs.com/lpserver1102/p/15619107.html