프로젝트

일반

사용자정보

개정판 c94252bf

IDc94252bfaede1e9ef4f1895a5688546286a962e9
상위 c8b025e0
하위 abebb10d, 87f22597

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

dev issue #1230 : add DuplicationWarningMessageBox logic

Change-Id: I2a6fac2aa15735bda66f48a04593893cbc6bf3fd

차이점 보기:

DTI_PID/APIDConverter/PIDCustomization.cs
419 419
        [CommandMethod("TestS", Autodesk.AutoCAD.Runtime.CommandFlags.UsePickSet)]
420 420
        public static void TestSelection()
421 421
        {
422
            AvevaThread.Run(ThreadType.AddProperty | ThreadType.OkBtnClick, null);
422
            AvevaThread.Run(ThreadType.AddProperty | ThreadType.LineNumberModeling, null);
423 423
            AvevaThread.Run(ThreadType.AddProperty, null);
424 424
            AvevaThread.Run(ThreadType.AddProperty | ThreadType.None, null);
425 425
            AvevaThread.Run(ThreadType.AddProperty | ThreadType.AddProperty, null);
......
428 428
        [CommandMethod("PicTest", Autodesk.AutoCAD.Runtime.CommandFlags.UsePickSet)]
429 429
        public static void PicTest()
430 430
        {
431
            
432
        }
431
            // Get the current document and database, and start a transaction
432
            Autodesk.AutoCAD.ApplicationServices.Document acDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
433
            Database acCurDb = acDoc.Database;
434
            Editor acDocEd = acDoc.Editor;
435

  
436
            // Request for objects to be selected in the drawing area
437
            PromptSelectionResult acSSPrompt = acDocEd.GetSelection();
433 438

  
434 439

  
440
            // If the prompt status is OK, objects were selected
441
            if (acSSPrompt.Status == PromptStatus.OK)
442
            {
443
                ObjectId[] selectedObjectIds = acSSPrompt.Value.GetObjectIds();
444
                // Get the last selected entity
445

  
446
                if (selectedObjectIds.Length > 0)
447
                {
448
                    ObjectId objIdBlock = selectedObjectIds[0];
449
                    AutoModeling.TESTStatic(objIdBlock.Handle.Value);
450
                }
451
            }
452
        }
435 453
        #endregion
436 454
    }
437 455
}

내보내기 Unified diff

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