예제 #1
0
파일: EX.cs 프로젝트: suifengsigan/TEST_1
 public static NXOpen.Selection.Response SelectTaggedObjects(this NXOpen.Selection obj, string message, string title, NXOpen.Selection.SelectionScope scope, bool includeFeatures, bool keepHighlighted, out TaggedObject[] objectArray)
 {
     //Response response;
     //int num;
     //JAM.StartCall();
     //IntPtr ptr = JAM.ToLocaleString(message);
     //IntPtr ptr2 = JAM.ToLocaleString(title);
     //IntPtr zero = IntPtr.Zero;
     //int status = JA_UI_SELECT_select_tagged_objects(ptr, ptr2, scope, includeFeatures, keepHighlighted, out response, out num, out zero);
     //JAM.FreeLocaleString(ptr);
     //JAM.FreeLocaleString(ptr2);
     //if (status != 0)
     //{
     //    throw NXException.Create(status);
     //}
     //objectArray = (TaggedObject[])JAM.ToObjectArray(typeof(TaggedObject), num, zero);
     //return response;
     objectArray = new NXOpen.TaggedObject[] { };
     return(new Selection.Response());
 }
예제 #2
0
파일: EX.cs 프로젝트: suifengsigan/TEST_1
 public static NXOpen.Selection.Response SelectTaggedObject(this NXOpen.Selection obj, string message, string title, NXOpen.Selection.SelectionScope scope, bool includeFeatures, bool keepHighlighted, out TaggedObject @object, out Point3d cursor)
 {
     //Response response;
     //NXOpen.Tag tag;
     //JAM.StartCall();
     //IntPtr ptr = JAM.ToLocaleString(message);
     //IntPtr ptr2 = JAM.ToLocaleString(title);
     //int status = JA_UI_SELECT_select_tagged_object(ptr, ptr2, scope, includeFeatures, keepHighlighted, out response, out tag, out cursor);
     //JAM.FreeLocaleString(ptr);
     //JAM.FreeLocaleString(ptr2);
     //if (status != 0)
     //{
     //    throw NXException.Create(status);
     //}
     //@object = NXObjectManager.Get(tag);
     //return response;
     @object = NXObjectManager.Get(Tag.Null);
     cursor  = new Point3d();
     return(new Selection.Response());
 }