1 ///
2 /// 添加装配
3 ///
4 /// 返回
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 }