프로젝트

일반

사용자정보

개정판 e7770ee1

IDe7770ee1d1ff235de77cd1c9bb9a44e30ac27fd8
상위 f25808d5
하위 436a3d81, c6df982b

gaqhf 이(가) 약 5년 전에 추가함

dev issue #1230 : edit coordinate correction

Change-Id: Iafc7c84c265dd0e1b92a37f0ab08328e92ca445c

차이점 보기:

DTI_PID/APIDConverter/PIDCustomization.cs
408 408
        [CommandMethod("TestS", Autodesk.AutoCAD.Runtime.CommandFlags.UsePickSet)]
409 409
        public static void TestSelection()
410 410
        {
411
            Autodesk.AutoCAD.Interop.AcadApplication acadApplication = Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication as Autodesk.AutoCAD.Interop.AcadApplication;
412
            AcadUtility acutil = (AcadUtility)acadApplication.ActiveDocument.Utility as AcadUtility;
413
            acutil.Prompt("HI");
414
            //Thread tt = new Thread(AvevaThread.Test);
415
            //tt.IsBackground = true;
416
            //tt.Start();
417

  
418
            Autodesk.AutoCAD.ApplicationServices.Document acDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
419
            Editor editor = acDoc.Editor;
420
            editor.PromptingForPoint += Editor_PromptingForPoint;
421
        }
422

  
423
        private static void Editor_PromptingForPoint(object sender, PromptPointOptionsEventArgs e)
424
        {
425
            Autodesk.AutoCAD.ApplicationServices.Document acDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
426
            Editor editor = acDoc.Editor;
427
            editor.PromptingForPoint -= Editor_PromptingForPoint;
428

  
429
            Autodesk.AutoCAD.Interop.AcadApplication acadApplication = Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication as Autodesk.AutoCAD.Interop.AcadApplication;
430
            AcadUtility acutil = (AcadUtility)acadApplication.ActiveDocument.Utility as AcadUtility;
431
            
411 432
        }
412 433

  
413 434
        [CommandMethod("PicTest", Autodesk.AutoCAD.Runtime.CommandFlags.UsePickSet)]

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)