프로젝트

일반

사용자정보

개정판 30fe44e0

ID30fe44e0a451c9f1775a7622afaf74b38acd82ca
상위 4eb362f3
하위 3e7fed1d

김태성이(가) 일년 이상 전에 추가함

issue #000000
- 누락파일 추가
- main 수정

Change-Id: I3c757ab0771102df0e93d3cfc3efcf180cb94cac

차이점 보기:

ID2.Manager/ID2.Manager/Main.Designer.cs
160 160
            this.radLabelElementSpace = new Telerik.WinControls.UI.RadLabelElement();
161 161
            this.radLabelElementUser = new Telerik.WinControls.UI.RadLabelElement();
162 162
            this.DockMain = new Telerik.WinControls.UI.Docking.RadDock();
163
            this.DockWindowViewer = new Telerik.WinControls.UI.Docking.ToolWindow();
163
            this.DockWindowMain = new Telerik.WinControls.UI.Docking.ToolWindow();
164 164
            this.documentContainer1 = new Telerik.WinControls.UI.Docking.DocumentContainer();
165 165
            this.documentTabStrip1 = new Telerik.WinControls.UI.Docking.DocumentTabStrip();
166
            this.DockWindowMain = new Telerik.WinControls.UI.Docking.ToolWindow();
166
            this.DockValidation = new Telerik.WinControls.UI.Docking.DocumentWindow();
167
            this.LayoutValidation = new System.Windows.Forms.TableLayoutPanel();
167 168
            this.radSplitContainer1 = new Telerik.WinControls.UI.RadSplitContainer();
168 169
            this.toolTabStrip2 = new Telerik.WinControls.UI.Docking.ToolTabStrip();
169 170
            this.DockWindowComment = new Telerik.WinControls.UI.Docking.ToolWindow();
......
171 172
            this.radPageViewPageReview = new Telerik.WinControls.UI.RadPageViewPage();
172 173
            this.radPageViewPageValidation = new Telerik.WinControls.UI.RadPageViewPage();
173 174
            this.toolTabStrip3 = new Telerik.WinControls.UI.Docking.ToolTabStrip();
175
            this.DockWindowViewer = new Telerik.WinControls.UI.Docking.ToolWindow();
174 176
            ((System.ComponentModel.ISupportInitialize)(this.ID2ManagerRadRibbonBar)).BeginInit();
175 177
            ((System.ComponentModel.ISupportInitialize)(this.radRibbonBarBackstageViewID2Manager)).BeginInit();
176 178
            this.radRibbonBarBackstageViewID2Manager.SuspendLayout();
......
223 225
            ((System.ComponentModel.ISupportInitialize)(this.radStatusStripMain)).BeginInit();
224 226
            ((System.ComponentModel.ISupportInitialize)(this.DockMain)).BeginInit();
225 227
            this.DockMain.SuspendLayout();
226
            this.DockWindowViewer.SuspendLayout();
228
            this.DockWindowMain.SuspendLayout();
227 229
            ((System.ComponentModel.ISupportInitialize)(this.documentContainer1)).BeginInit();
228 230
            this.documentContainer1.SuspendLayout();
229 231
            ((System.ComponentModel.ISupportInitialize)(this.documentTabStrip1)).BeginInit();
230 232
            this.documentTabStrip1.SuspendLayout();
231
            this.DockWindowMain.SuspendLayout();
233
            this.DockValidation.SuspendLayout();
232 234
            ((System.ComponentModel.ISupportInitialize)(this.radSplitContainer1)).BeginInit();
233 235
            this.radSplitContainer1.SuspendLayout();
234 236
            ((System.ComponentModel.ISupportInitialize)(this.toolTabStrip2)).BeginInit();
......
238 240
            this.radPageViewComment.SuspendLayout();
239 241
            ((System.ComponentModel.ISupportInitialize)(this.toolTabStrip3)).BeginInit();
240 242
            this.toolTabStrip3.SuspendLayout();
243
            this.DockWindowViewer.SuspendLayout();
241 244
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
242 245
            this.SuspendLayout();
243 246
            // 
......
432 435
            this.LayoutMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
433 436
            this.LayoutMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
434 437
            this.LayoutMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
435
            this.LayoutMain.Size = new System.Drawing.Size(1027, 621);
438
            this.LayoutMain.Size = new System.Drawing.Size(1027, 598);
436 439
            this.LayoutMain.TabIndex = 0;
437 440
            // 
438 441
            // tableLayoutPanelCondition
......
449 452
            this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
450 453
            this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 85F));
451 454
            this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
452
            this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 225F));
455
            this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 249F));
453 456
            this.tableLayoutPanelCondition.Controls.Add(this.radDropDownListFrReviewStatus, 4, 1);
454 457
            this.tableLayoutPanelCondition.Controls.Add(this.radDropDownListToIsDiscussion, 2, 1);
455 458
            this.tableLayoutPanelCondition.Controls.Add(this.radLabelFrReviewStatus, 3, 1);
......
499 502
            this.radDropDownListFrReviewStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
500 503
            this.radDropDownListFrReviewStatus.DropDownAnimationEnabled = true;
501 504
            this.radDropDownListFrReviewStatus.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
502
            this.radDropDownListFrReviewStatus.Location = new System.Drawing.Point(326, 34);
505
            this.radDropDownListFrReviewStatus.Location = new System.Drawing.Point(320, 34);
503 506
            this.radDropDownListFrReviewStatus.Name = "radDropDownListFrReviewStatus";
504
            this.radDropDownListFrReviewStatus.Size = new System.Drawing.Size(87, 20);
507
            this.radDropDownListFrReviewStatus.Size = new System.Drawing.Size(81, 20);
505 508
            this.radDropDownListFrReviewStatus.TabIndex = 18;
506 509
            // 
507 510
            // radDropDownListToIsDiscussion
......
511 514
            this.radDropDownListToIsDiscussion.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
512 515
            this.radDropDownListToIsDiscussion.Location = new System.Drawing.Point(146, 34);
513 516
            this.radDropDownListToIsDiscussion.Name = "radDropDownListToIsDiscussion";
514
            this.radDropDownListToIsDiscussion.Size = new System.Drawing.Size(87, 20);
517
            this.radDropDownListToIsDiscussion.Size = new System.Drawing.Size(81, 20);
515 518
            this.radDropDownListToIsDiscussion.TabIndex = 17;
516 519
            // 
517 520
            // radLabelFrReviewStatus
518 521
            // 
519 522
            this.radLabelFrReviewStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
520 523
            this.radLabelFrReviewStatus.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
521
            this.radLabelFrReviewStatus.Location = new System.Drawing.Point(240, 35);
524
            this.radLabelFrReviewStatus.Location = new System.Drawing.Point(234, 35);
522 525
            this.radLabelFrReviewStatus.Name = "radLabelFrReviewStatus";
523 526
            this.radLabelFrReviewStatus.Size = new System.Drawing.Size(59, 17);
524 527
            this.radLabelFrReviewStatus.TabIndex = 7;
......
548 551
            // 
549 552
            this.radLabelAVEVAStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
550 553
            this.radLabelAVEVAStatus.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
551
            this.radLabelAVEVAStatus.Location = new System.Drawing.Point(240, 64);
554
            this.radLabelAVEVAStatus.Location = new System.Drawing.Point(234, 64);
552 555
            this.radLabelAVEVAStatus.Name = "radLabelAVEVAStatus";
553 556
            this.radLabelAVEVAStatus.Size = new System.Drawing.Size(86, 17);
554 557
            this.radLabelAVEVAStatus.TabIndex = 8;
......
558 561
            // 
559 562
            this.radLabelIsID2Work.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
560 563
            this.radLabelIsID2Work.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
561
            this.radLabelIsID2Work.Location = new System.Drawing.Point(420, 35);
564
            this.radLabelIsID2Work.Location = new System.Drawing.Point(408, 35);
562 565
            this.radLabelIsID2Work.Name = "radLabelIsID2Work";
563 566
            this.radLabelIsID2Work.Size = new System.Drawing.Size(80, 17);
564 567
            this.radLabelIsID2Work.TabIndex = 6;
......
568 571
            // 
569 572
            this.radLabelJobLevel.Anchor = System.Windows.Forms.AnchorStyles.Left;
570 573
            this.radLabelJobLevel.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
571
            this.radLabelJobLevel.Location = new System.Drawing.Point(420, 6);
574
            this.radLabelJobLevel.Location = new System.Drawing.Point(408, 6);
572 575
            this.radLabelJobLevel.Name = "radLabelJobLevel";
573 576
            this.radLabelJobLevel.Size = new System.Drawing.Size(47, 17);
574 577
            this.radLabelJobLevel.TabIndex = 7;
......
619 622
            this.radButtonSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
620 623
            this.radButtonSearch.Cursor = System.Windows.Forms.Cursors.WaitCursor;
621 624
            this.radButtonSearch.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
622
            this.radButtonSearch.Location = new System.Drawing.Point(864, 4);
625
            this.radButtonSearch.Location = new System.Drawing.Point(852, 4);
623 626
            this.radButtonSearch.Name = "radButtonSearch";
624 627
            this.tableLayoutPanelCondition.SetRowSpan(this.radButtonSearch, 5);
625 628
            this.radButtonSearch.Size = new System.Drawing.Size(54, 136);
......
633 636
            this.radDropDownListProject.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
634 637
            this.radDropDownListProject.Location = new System.Drawing.Point(146, 5);
635 638
            this.radDropDownListProject.Name = "radDropDownListProject";
636
            this.radDropDownListProject.Size = new System.Drawing.Size(87, 20);
639
            this.radDropDownListProject.Size = new System.Drawing.Size(81, 20);
637 640
            this.radDropDownListProject.TabIndex = 7;
638 641
            // 
639 642
            // radLabelDocumentNo
640 643
            // 
641 644
            this.radLabelDocumentNo.Anchor = System.Windows.Forms.AnchorStyles.Left;
642 645
            this.radLabelDocumentNo.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
643
            this.radLabelDocumentNo.Location = new System.Drawing.Point(600, 6);
646
            this.radLabelDocumentNo.Location = new System.Drawing.Point(582, 6);
644 647
            this.radLabelDocumentNo.Name = "radLabelDocumentNo";
645 648
            this.radLabelDocumentNo.Size = new System.Drawing.Size(49, 17);
646 649
            this.radLabelDocumentNo.TabIndex = 6;
......
649 652
            // radTextBoxDocumentNo
650 653
            // 
651 654
            this.radTextBoxDocumentNo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
652
            this.radTextBoxDocumentNo.Location = new System.Drawing.Point(686, 5);
655
            this.radTextBoxDocumentNo.Location = new System.Drawing.Point(668, 5);
653 656
            this.radTextBoxDocumentNo.Name = "radTextBoxDocumentNo";
654
            this.radTextBoxDocumentNo.Size = new System.Drawing.Size(87, 20);
657
            this.radTextBoxDocumentNo.Size = new System.Drawing.Size(81, 20);
655 658
            this.radTextBoxDocumentNo.TabIndex = 8;
656 659
            // 
657 660
            // radLabelPersonInCharge
658 661
            // 
659 662
            this.radLabelPersonInCharge.Anchor = System.Windows.Forms.AnchorStyles.Left;
660 663
            this.radLabelPersonInCharge.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
661
            this.radLabelPersonInCharge.Location = new System.Drawing.Point(240, 6);
664
            this.radLabelPersonInCharge.Location = new System.Drawing.Point(234, 6);
662 665
            this.radLabelPersonInCharge.Name = "radLabelPersonInCharge";
663 666
            this.radLabelPersonInCharge.Size = new System.Drawing.Size(47, 17);
664 667
            this.radLabelPersonInCharge.TabIndex = 6;
......
669 672
            this.radDropDownListPersonInCharge.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
670 673
            this.radDropDownListPersonInCharge.DropDownAnimationEnabled = true;
671 674
            this.radDropDownListPersonInCharge.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
672
            this.radDropDownListPersonInCharge.Location = new System.Drawing.Point(326, 5);
675
            this.radDropDownListPersonInCharge.Location = new System.Drawing.Point(320, 5);
673 676
            this.radDropDownListPersonInCharge.Name = "radDropDownListPersonInCharge";
674
            this.radDropDownListPersonInCharge.Size = new System.Drawing.Size(87, 20);
677
            this.radDropDownListPersonInCharge.Size = new System.Drawing.Size(81, 20);
675 678
            this.radDropDownListPersonInCharge.TabIndex = 9;
676 679
            // 
677 680
            // radLabel1
......
689 692
            this.radDropDownListJobLevel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
690 693
            this.radDropDownListJobLevel.DropDownAnimationEnabled = true;
691 694
            this.radDropDownListJobLevel.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
692
            this.radDropDownListJobLevel.Location = new System.Drawing.Point(506, 5);
695
            this.radDropDownListJobLevel.Location = new System.Drawing.Point(494, 5);
693 696
            this.radDropDownListJobLevel.Name = "radDropDownListJobLevel";
694
            this.radDropDownListJobLevel.Size = new System.Drawing.Size(87, 20);
697
            this.radDropDownListJobLevel.Size = new System.Drawing.Size(81, 20);
695 698
            this.radDropDownListJobLevel.TabIndex = 11;
696 699
            // 
697 700
            // radLabelID2Status
......
708 711
            // 
709 712
            this.radLabel10.Anchor = System.Windows.Forms.AnchorStyles.Left;
710 713
            this.radLabel10.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
711
            this.radLabel10.Location = new System.Drawing.Point(240, 93);
714
            this.radLabel10.Location = new System.Drawing.Point(234, 93);
712 715
            this.radLabel10.Name = "radLabel10";
713 716
            this.radLabel10.Size = new System.Drawing.Size(61, 17);
714 717
            this.radLabel10.TabIndex = 9;
......
719 722
            this.radDropDownListIsID2Work.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
720 723
            this.radDropDownListIsID2Work.DropDownAnimationEnabled = true;
721 724
            this.radDropDownListIsID2Work.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
722
            this.radDropDownListIsID2Work.Location = new System.Drawing.Point(506, 34);
725
            this.radDropDownListIsID2Work.Location = new System.Drawing.Point(494, 34);
723 726
            this.radDropDownListIsID2Work.Name = "radDropDownListIsID2Work";
724
            this.radDropDownListIsID2Work.Size = new System.Drawing.Size(87, 20);
727
            this.radDropDownListIsID2Work.Size = new System.Drawing.Size(81, 20);
725 728
            this.radDropDownListIsID2Work.TabIndex = 12;
726 729
            // 
727 730
            // radDropDownListID2Status
......
731 734
            this.radDropDownListID2Status.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
732 735
            this.radDropDownListID2Status.Location = new System.Drawing.Point(146, 63);
733 736
            this.radDropDownListID2Status.Name = "radDropDownListID2Status";
734
            this.radDropDownListID2Status.Size = new System.Drawing.Size(87, 20);
737
            this.radDropDownListID2Status.Size = new System.Drawing.Size(81, 20);
735 738
            this.radDropDownListID2Status.TabIndex = 13;
736 739
            // 
737 740
            // radDropDownListAVEVAStatus
......
739 742
            this.radDropDownListAVEVAStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
740 743
            this.radDropDownListAVEVAStatus.DropDownAnimationEnabled = true;
741 744
            this.radDropDownListAVEVAStatus.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
742
            this.radDropDownListAVEVAStatus.Location = new System.Drawing.Point(326, 63);
745
            this.radDropDownListAVEVAStatus.Location = new System.Drawing.Point(320, 63);
743 746
            this.radDropDownListAVEVAStatus.Name = "radDropDownListAVEVAStatus";
744
            this.radDropDownListAVEVAStatus.Size = new System.Drawing.Size(87, 20);
747
            this.radDropDownListAVEVAStatus.Size = new System.Drawing.Size(81, 20);
745 748
            this.radDropDownListAVEVAStatus.TabIndex = 14;
746 749
            // 
747 750
            // radDropDownListProdIsResult
......
751 754
            this.radDropDownListProdIsResult.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
752 755
            this.radDropDownListProdIsResult.Location = new System.Drawing.Point(146, 92);
753 756
            this.radDropDownListProdIsResult.Name = "radDropDownListProdIsResult";
754
            this.radDropDownListProdIsResult.Size = new System.Drawing.Size(87, 20);
757
            this.radDropDownListProdIsResult.Size = new System.Drawing.Size(81, 20);
755 758
            this.radDropDownListProdIsResult.TabIndex = 15;
756 759
            // 
757 760
            // radDropDownListClientIsResult
......
759 762
            this.radDropDownListClientIsResult.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
760 763
            this.radDropDownListClientIsResult.DropDownAnimationEnabled = true;
761 764
            this.radDropDownListClientIsResult.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
762
            this.radDropDownListClientIsResult.Location = new System.Drawing.Point(326, 92);
765
            this.radDropDownListClientIsResult.Location = new System.Drawing.Point(320, 92);
763 766
            this.radDropDownListClientIsResult.Name = "radDropDownListClientIsResult";
764
            this.radDropDownListClientIsResult.Size = new System.Drawing.Size(87, 20);
767
            this.radDropDownListClientIsResult.Size = new System.Drawing.Size(81, 20);
765 768
            this.radDropDownListClientIsResult.TabIndex = 16;
766 769
            // 
767 770
            // radLabel6
......
778 781
            // 
779 782
            this.radLabel7.Anchor = System.Windows.Forms.AnchorStyles.Left;
780 783
            this.radLabel7.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
781
            this.radLabel7.Location = new System.Drawing.Point(240, 121);
784
            this.radLabel7.Location = new System.Drawing.Point(234, 121);
782 785
            this.radLabel7.Name = "radLabel7";
783 786
            this.radLabel7.Size = new System.Drawing.Size(72, 17);
784 787
            this.radLabel7.TabIndex = 12;
......
801 804
            this.radDropDownListGateway.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
802 805
            this.radDropDownListGateway.Location = new System.Drawing.Point(146, 120);
803 806
            this.radDropDownListGateway.Name = "radDropDownListGateway";
804
            this.radDropDownListGateway.Size = new System.Drawing.Size(87, 20);
807
            this.radDropDownListGateway.Size = new System.Drawing.Size(81, 20);
805 808
            this.radDropDownListGateway.TabIndex = 19;
806 809
            // 
807 810
            // radDropDownListRegistration
......
809 812
            this.radDropDownListRegistration.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
810 813
            this.radDropDownListRegistration.DropDownAnimationEnabled = true;
811 814
            this.radDropDownListRegistration.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
812
            this.radDropDownListRegistration.Location = new System.Drawing.Point(326, 120);
815
            this.radDropDownListRegistration.Location = new System.Drawing.Point(320, 120);
813 816
            this.radDropDownListRegistration.Name = "radDropDownListRegistration";
814
            this.radDropDownListRegistration.Size = new System.Drawing.Size(87, 20);
817
            this.radDropDownListRegistration.Size = new System.Drawing.Size(81, 20);
815 818
            this.radDropDownListRegistration.TabIndex = 20;
816 819
            // 
817 820
            // tableLayoutPanelGroup
......
911 914
            this.tableLayoutMain.RowCount = 2;
912 915
            this.tableLayoutMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
913 916
            this.tableLayoutMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
914
            this.tableLayoutMain.Size = new System.Drawing.Size(1010, 409);
917
            this.tableLayoutMain.Size = new System.Drawing.Size(1010, 386);
915 918
            this.tableLayoutMain.TabIndex = 8;
916 919
            // 
917 920
            // radGridViewDocuments
......
1260 1263
            gridViewRelation1});
1261 1264
            this.radGridViewDocuments.RightToLeft = System.Windows.Forms.RightToLeft.No;
1262 1265
            this.radGridViewDocuments.ShowHeaderCellButtons = true;
1263
            this.radGridViewDocuments.Size = new System.Drawing.Size(1004, 367);
1266
            this.radGridViewDocuments.Size = new System.Drawing.Size(1004, 344);
1264 1267
            this.radGridViewDocuments.TabIndex = 0;
1265 1268
            // 
1266 1269
            // radCommandBar1
......
1274 1277
            this.radCommandBar1.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren;
1275 1278
            this.radCommandBar1.Rows.AddRange(new Telerik.WinControls.UI.CommandBarRowElement[] {
1276 1279
            this.commandBarRowSearch});
1277
            this.radCommandBar1.Size = new System.Drawing.Size(784, 30);
1280
            this.radCommandBar1.Size = new System.Drawing.Size(784, 55);
1278 1281
            this.radCommandBar1.TabIndex = 1;
1279 1282
            // 
1280 1283
            // commandBarRowSearch
......
1315 1318
            // 
1316 1319
            // 
1317 1320
            this.commandBarSearch.OverflowButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
1321
            this.commandBarSearch.StretchVertically = true;
1318 1322
            this.commandBarSearch.Text = "";
1319 1323
            ((Telerik.WinControls.UI.RadCommandBarGrip)(this.commandBarSearch.GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
1320 1324
            ((Telerik.WinControls.UI.RadCommandBarOverflowButton)(this.commandBarSearch.GetChildAt(2))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
......
1441 1445
            this.radPageViewViewer.Location = new System.Drawing.Point(0, 0);
1442 1446
            this.radPageViewViewer.Name = "radPageViewViewer";
1443 1447
            this.radPageViewViewer.SelectedPage = this.radPageViewPageAutoCAD;
1444
            this.radPageViewViewer.Size = new System.Drawing.Size(279, 289);
1448
            this.radPageViewViewer.Size = new System.Drawing.Size(279, 194);
1445 1449
            this.radPageViewViewer.TabIndex = 0;
1446 1450
            // 
1447 1451
            // radPageViewPageAutoCAD
......
1449 1453
            this.radPageViewPageAutoCAD.ItemSize = new System.Drawing.SizeF(63F, 28F);
1450 1454
            this.radPageViewPageAutoCAD.Location = new System.Drawing.Point(10, 37);
1451 1455
            this.radPageViewPageAutoCAD.Name = "radPageViewPageAutoCAD";
1452
            this.radPageViewPageAutoCAD.Size = new System.Drawing.Size(258, 241);
1456
            this.radPageViewPageAutoCAD.Size = new System.Drawing.Size(258, 146);
1453 1457
            this.radPageViewPageAutoCAD.Text = "AutoCAD";
1454 1458
            // 
1455 1459
            // radStatusStripMain
......
1483 1487
            // DockMain
1484 1488
            // 
1485 1489
            this.DockMain.ActiveWindow = this.DockWindowViewer;
1490
            this.DockMain.AutoHideAnimation = Telerik.WinControls.UI.Docking.AutoHideAnimateMode.None;
1486 1491
            this.DockMain.CausesValidation = false;
1487 1492
            this.DockMain.Controls.Add(this.documentContainer1);
1488 1493
            this.DockMain.Controls.Add(this.radSplitContainer1);
1489 1494
            this.DockMain.Dock = System.Windows.Forms.DockStyle.Fill;
1490
            this.DockMain.DocumentTabsVisible = false;
1491 1495
            this.DockMain.IsCleanUpTarget = true;
1492 1496
            this.DockMain.Location = new System.Drawing.Point(0, 165);
1493 1497
            this.DockMain.MainDocumentContainer = this.documentContainer1;
......
1500 1504
            this.DockMain.TabIndex = 1;
1501 1505
            this.DockMain.TabStop = false;
1502 1506
            // 
1503
            // DockWindowViewer
1507
            // DockWindowMain
1504 1508
            // 
1505
            this.DockWindowViewer.Caption = null;
1506
            this.DockWindowViewer.Controls.Add(this.radPageViewViewer);
1507
            this.DockWindowViewer.Font = new System.Drawing.Font("굴림", 9F);
1508
            this.DockWindowViewer.Location = new System.Drawing.Point(1, 24);
1509
            this.DockWindowViewer.Name = "DockWindowViewer";
1510
            this.DockWindowViewer.PreviousDockState = Telerik.WinControls.UI.Docking.DockState.Docked;
1511
            this.DockWindowViewer.Size = new System.Drawing.Size(279, 289);
1512
            this.DockWindowViewer.Text = "Viewer";
1509
            this.DockWindowMain.Caption = null;
1510
            this.DockWindowMain.Controls.Add(this.LayoutMain);
1511
            this.DockWindowMain.Font = new System.Drawing.Font("굴림", 9F);
1512
            this.DockWindowMain.Location = new System.Drawing.Point(6, 29);
1513
            this.DockWindowMain.Name = "DockWindowMain";
1514
            this.DockWindowMain.PreviousDockState = Telerik.WinControls.UI.Docking.DockState.Floating;
1515
            this.DockWindowMain.Size = new System.Drawing.Size(1027, 598);
1516
            this.DockWindowMain.Text = "Main";
1513 1517
            // 
1514 1518
            // documentContainer1
1515 1519
            // 
......
1528 1532
            // 
1529 1533
            this.documentTabStrip1.CausesValidation = false;
1530 1534
            this.documentTabStrip1.Controls.Add(this.DockWindowMain);
1535
            this.documentTabStrip1.Controls.Add(this.DockValidation);
1531 1536
            this.documentTabStrip1.Location = new System.Drawing.Point(0, 0);
1532 1537
            this.documentTabStrip1.Name = "documentTabStrip1";
1533 1538
            // 
......
1538 1543
            this.documentTabStrip1.Size = new System.Drawing.Size(1039, 633);
1539 1544
            this.documentTabStrip1.TabIndex = 0;
1540 1545
            this.documentTabStrip1.TabStop = false;
1541
            this.documentTabStrip1.TabStripVisible = false;
1542 1546
            // 
1543
            // DockWindowMain
1544
            // 
1545
            this.DockWindowMain.Caption = null;
1546
            this.DockWindowMain.Controls.Add(this.LayoutMain);
1547
            this.DockWindowMain.DocumentButtons = Telerik.WinControls.UI.Docking.DocumentStripButtons.None;
1548
            this.DockWindowMain.Font = new System.Drawing.Font("굴림", 9F);
1549
            this.DockWindowMain.Location = new System.Drawing.Point(6, 6);
1550
            this.DockWindowMain.Name = "DockWindowMain";
1551
            this.DockWindowMain.PreviousDockState = Telerik.WinControls.UI.Docking.DockState.Floating;
1552
            this.DockWindowMain.Size = new System.Drawing.Size(1027, 621);
1553
            this.DockWindowMain.Text = "Main";
1547
            // DockValidation
1548
            // 
1549
            this.DockValidation.Controls.Add(this.LayoutValidation);
1550
            this.DockValidation.Font = new System.Drawing.Font("굴림", 9F);
1551
            this.DockValidation.Location = new System.Drawing.Point(6, 29);
1552
            this.DockValidation.Name = "DockValidation";
1553
            this.DockValidation.PreviousDockState = Telerik.WinControls.UI.Docking.DockState.Floating;
1554
            this.DockValidation.Size = new System.Drawing.Size(1027, 598);
1555
            this.DockValidation.Text = "Validation";
1556
            // 
1557
            // LayoutValidation
1558
            // 
1559
            this.LayoutValidation.ColumnCount = 2;
1560
            this.LayoutValidation.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
1561
            this.LayoutValidation.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
1562
            this.LayoutValidation.Dock = System.Windows.Forms.DockStyle.Fill;
1563
            this.LayoutValidation.Location = new System.Drawing.Point(0, 0);
1564
            this.LayoutValidation.Name = "LayoutValidation";
1565
            this.LayoutValidation.RowCount = 2;
1566
            this.LayoutValidation.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
1567
            this.LayoutValidation.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
1568
            this.LayoutValidation.Size = new System.Drawing.Size(1027, 598);
1569
            this.LayoutValidation.TabIndex = 0;
1554 1570
            // 
1555 1571
            // radSplitContainer1
1556 1572
            // 
......
1581 1597
            // 
1582 1598
            this.toolTabStrip2.RootElement.MinSize = new System.Drawing.Size(25, 25);
1583 1599
            this.toolTabStrip2.SelectedIndex = 0;
1584
            this.toolTabStrip2.Size = new System.Drawing.Size(281, 314);
1600
            this.toolTabStrip2.Size = new System.Drawing.Size(281, 409);
1601
            this.toolTabStrip2.SizeInfo.AutoSizeScale = new System.Drawing.SizeF(0F, 0.1508135F);
1602
            this.toolTabStrip2.SizeInfo.SplitterCorrection = new System.Drawing.Size(0, 94);
1585 1603
            this.toolTabStrip2.TabIndex = 4;
1586 1604
            this.toolTabStrip2.TabStop = false;
1587 1605
            // 
......
1589 1607
            // 
1590 1608
            this.DockWindowComment.Caption = null;
1591 1609
            this.DockWindowComment.Controls.Add(this.radPageViewComment);
1592
            this.DockWindowComment.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
1610
            this.DockWindowComment.Font = new System.Drawing.Font("굴림", 9F);
1593 1611
            this.DockWindowComment.Location = new System.Drawing.Point(1, 24);
1594 1612
            this.DockWindowComment.Name = "DockWindowComment";
1595 1613
            this.DockWindowComment.PreviousDockState = Telerik.WinControls.UI.Docking.DockState.Docked;
1596
            this.DockWindowComment.Size = new System.Drawing.Size(279, 288);
1614
            this.DockWindowComment.Size = new System.Drawing.Size(279, 383);
1597 1615
            this.DockWindowComment.Text = "Comment";
1598 1616
            // 
1599 1617
            // radPageViewComment
......
1604 1622
            this.radPageViewComment.Location = new System.Drawing.Point(0, 0);
1605 1623
            this.radPageViewComment.Name = "radPageViewComment";
1606 1624
            this.radPageViewComment.SelectedPage = this.radPageViewPageReview;
1607
            this.radPageViewComment.Size = new System.Drawing.Size(279, 288);
1625
            this.radPageViewComment.Size = new System.Drawing.Size(279, 383);
1608 1626
            this.radPageViewComment.TabIndex = 1;
1609 1627
            // 
1610 1628
            // radPageViewPageReview
......
1612 1630
            this.radPageViewPageReview.ItemSize = new System.Drawing.SizeF(39F, 28F);
1613 1631
            this.radPageViewPageReview.Location = new System.Drawing.Point(10, 37);
1614 1632
            this.radPageViewPageReview.Name = "radPageViewPageReview";
1615
            this.radPageViewPageReview.Size = new System.Drawing.Size(258, 240);
1633
            this.radPageViewPageReview.Size = new System.Drawing.Size(258, 335);
1616 1634
            this.radPageViewPageReview.Text = "검토";
1617 1635
            // 
1618 1636
            // radPageViewPageValidation
......
1627 1645
            // 
1628 1646
            this.toolTabStrip3.CausesValidation = false;
1629 1647
            this.toolTabStrip3.Controls.Add(this.DockWindowViewer);
1630
            this.toolTabStrip3.Location = new System.Drawing.Point(0, 318);
1648
            this.toolTabStrip3.Location = new System.Drawing.Point(0, 413);
1631 1649
            this.toolTabStrip3.Name = "toolTabStrip3";
1632 1650
            // 
1633 1651
            // 
1634 1652
            // 
1635 1653
            this.toolTabStrip3.RootElement.MinSize = new System.Drawing.Size(25, 25);
1636 1654
            this.toolTabStrip3.SelectedIndex = 0;
1637
            this.toolTabStrip3.Size = new System.Drawing.Size(281, 315);
1655
            this.toolTabStrip3.Size = new System.Drawing.Size(281, 220);
1638 1656
            this.toolTabStrip3.SizeInfo.AbsoluteSize = new System.Drawing.Size(281, 200);
1639
            this.toolTabStrip3.SizeInfo.SplitterCorrection = new System.Drawing.Size(81, 0);
1657
            this.toolTabStrip3.SizeInfo.AutoSizeScale = new System.Drawing.SizeF(0F, -0.1508135F);
1658
            this.toolTabStrip3.SizeInfo.SplitterCorrection = new System.Drawing.Size(81, -94);
1640 1659
            this.toolTabStrip3.TabIndex = 3;
1641 1660
            this.toolTabStrip3.TabStop = false;
1642 1661
            // 
1662
            // DockWindowViewer
1663
            // 
1664
            this.DockWindowViewer.Caption = null;
1665
            this.DockWindowViewer.Controls.Add(this.radPageViewViewer);
1666
            this.DockWindowViewer.Font = new System.Drawing.Font("굴림", 9F);
1667
            this.DockWindowViewer.Location = new System.Drawing.Point(1, 24);
1668
            this.DockWindowViewer.Name = "DockWindowViewer";
1669
            this.DockWindowViewer.PreviousDockState = Telerik.WinControls.UI.Docking.DockState.Docked;
1670
            this.DockWindowViewer.Size = new System.Drawing.Size(279, 194);
1671
            this.DockWindowViewer.Text = "Viewer";
1672
            // 
1643 1673
            // Main
1644 1674
            // 
1645 1675
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
......
1710 1740
            ((System.ComponentModel.ISupportInitialize)(this.radStatusStripMain)).EndInit();
1711 1741
            ((System.ComponentModel.ISupportInitialize)(this.DockMain)).EndInit();
1712 1742
            this.DockMain.ResumeLayout(false);
1713
            this.DockWindowViewer.ResumeLayout(false);
1743
            this.DockWindowMain.ResumeLayout(false);
1714 1744
            ((System.ComponentModel.ISupportInitialize)(this.documentContainer1)).EndInit();
1715 1745
            this.documentContainer1.ResumeLayout(false);
1716 1746
            ((System.ComponentModel.ISupportInitialize)(this.documentTabStrip1)).EndInit();
1717 1747
            this.documentTabStrip1.ResumeLayout(false);
1718
            this.DockWindowMain.ResumeLayout(false);
1748
            this.DockValidation.ResumeLayout(false);
1719 1749
            ((System.ComponentModel.ISupportInitialize)(this.radSplitContainer1)).EndInit();
1720 1750
            this.radSplitContainer1.ResumeLayout(false);
1721 1751
            ((System.ComponentModel.ISupportInitialize)(this.toolTabStrip2)).EndInit();
......
1725 1755
            this.radPageViewComment.ResumeLayout(false);
1726 1756
            ((System.ComponentModel.ISupportInitialize)(this.toolTabStrip3)).EndInit();
1727 1757
            this.toolTabStrip3.ResumeLayout(false);
1758
            this.DockWindowViewer.ResumeLayout(false);
1728 1759
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
1729 1760
            this.ResumeLayout(false);
1730 1761
            this.PerformLayout();
......
1827 1858
        private Telerik.WinControls.UI.RadPageViewPage radPageViewPageValidation;
1828 1859
        private Telerik.WinControls.UI.CommandBarSeparator commandBarSeparator3;
1829 1860
        private Telerik.WinControls.UI.BackstageButtonItem backstageButtonItemSelectDB;
1861
        private Telerik.WinControls.UI.Docking.DocumentWindow DockValidation;
1862
        private System.Windows.Forms.TableLayoutPanel LayoutValidation;
1830 1863
    }
1831 1864
}
ID2.Manager/ID2.Manager/Main.cs
173 173
                if (File.Exists(dockLayoutPath))
174 174
                {
175 175
                    this.DockMain.LoadFromXml(dockLayoutPath);
176

  
176 177
                }
177 178
                else
178 179
                {
179 180
                    File.Create(dockLayoutPath);
180 181
                }
181 182

  
183
                this.DockMain.DocumentTabsVisible = true;
184

  
185
                this.DockMain.DockWindows.ForAll(x =>
186
                {
187
                    x.DockManager.ShowDocumentPinButton = false;
188
                    x.DockManager.ShowDocumentCloseButton = false;
189
                });
190

  
191
                this.DockMain.AutoHideWindowDisplaying += DockMain_AutoHideWindowDisplaying;
192

  
182 193
                this.DockMain.DockWindowClosed += (snd, evt) =>
183 194
                {
184 195
                    evt.DockWindow.DockState = Telerik.WinControls.UI.Docking.DockState.AutoHide;
185 196

  
186
                    this.DockMain.AutoHideWindows(new Telerik.WinControls.UI.Docking.DockWindow[] { evt.DockWindow }, Telerik.WinControls.UI.Docking.AutoHidePosition.Right);
197

  
198
                    Telerik.WinControls.UI.Docking.AutoHidePosition tabPosition = Telerik.WinControls.UI.Docking.AutoHidePosition.Right;
199

  
200
                    if (evt.DockWindow == DockWindowMain)
201
                    {
202
                        tabPosition = Telerik.WinControls.UI.Docking.AutoHidePosition.Bottom;
203
                    }
204

  
205
                    this.DockMain.AutoHideWindows(new Telerik.WinControls.UI.Docking.DockWindow[] { evt.DockWindow }, tabPosition);
187 206
                };
188 207
            }
189 208
            catch (Exception ex)
......
192 211
            }
193 212
        }
194 213

  
214
        private void DockMain_AutoHideWindowDisplaying(object sender, Telerik.WinControls.UI.Docking.AutoHideWindowDisplayingEventArgs e)
215
        {
216

  
217
        }
218

  
195 219
        private void Main_FormClosing(object sender, FormClosingEventArgs e)
196 220
        {
197 221
            SaveDockingLayout();
ID2.Manager/MarkusImageCreate/HostAppServ.cs
1
/////////////////////////////////////////////////////////////////////////////// 
2
// Copyright (C) 2002-2019, Open Design Alliance (the "Alliance"). 
3
// All rights reserved. 
4
// 
5
// This software and its documentation and related materials are owned by 
6
// the Alliance. The software may only be incorporated into application 
7
// programs owned by members of the Alliance, subject to a signed 
8
// Membership Agreement and Supplemental Software License Agreement with the
9
// Alliance. The structure and organization of this software are the valuable  
10
// trade secrets of the Alliance and its suppliers. The software is also 
11
// protected by copyright law and international treaty provisions. Application  
12
// programs incorporating this software must include the following statement 
13
// with their copyright notices:
14
//   
15
//   This application incorporates Open Design Alliance software pursuant to a license 
16
//   agreement with Open Design Alliance.
17
//   Open Design Alliance Copyright (C) 2002-2019 by Open Design Alliance. 
18
//   All rights reserved.
19
//
20
// By use of this software, its documentation or related materials, you 
21
// acknowledge and accept the above terms.
22
///////////////////////////////////////////////////////////////////////////////
23
using System;
24
using System.Collections.Generic;
25
using System.Text;
26
using Teigha;
27
using Teigha.DatabaseServices;
28
using Microsoft.Win32;
29

  
30
namespace OdaMgdMViewApp
31
{
32
  class HostAppServ : HostApplicationServices
33
  {
34
    public HostAppServ()
35
    {
36
    }
37
       
38
    public String FindConfigPath(String configType)
39
    {
40
      String subkey = GetRegistryAcadProfilesKey();
41
      if (subkey.Length > 0)
42
      {
43
        subkey += String.Format("\\General");
44
        String searchPath;
45
        if( GetRegistryString( Registry.CurrentUser, subkey, configType, out searchPath))
46
          return searchPath;
47
      }
48
      return String.Format("");
49
    }
50

  
51
    private String FindConfigFile(String configType, String file)
52
    {
53
      String searchPath = FindConfigPath( configType );
54
      if (searchPath.Length > 0)
55
      {
56
        searchPath = String.Format("{0}\\{1}", searchPath, file);
57
        if (System.IO.File.Exists(searchPath))
58
          return searchPath;
59
      }
60
      return String.Format("");
61
    }
62

  
63
    public override String FindFile(String file, Database db, FindFileHint hint)
64
    {
65
      String sFile = this.FindFileEx(file, db, hint);
66
      if (sFile.Length > 0)
67
        return sFile;
68

  
69
      String strFileName = file;
70
      String ext;
71
      if (strFileName.Length>3)
72
        ext = strFileName.Substring(strFileName.Length - 4, 4).ToUpper();
73
      else
74
        ext = file.ToUpper();
75
      if ( ext == String.Format(".PC3") )
76
        return FindConfigFile( String.Format("PrinterConfigDir"), file);
77
      if ( ext == String.Format(".STB") || ext == String.Format(".CTB"))
78
        return FindConfigFile( String.Format("PrinterStyleSheetDir"), file);
79
      if ( ext == String.Format(".PMP"))
80
        return FindConfigFile( String.Format("PrinterDescDir"), file);
81

  
82
      switch (hint)
83
      {
84
        case FindFileHint.FontFile:
85
        case FindFileHint.CompiledShapeFile:
86
        case FindFileHint.TrueTypeFontFile:
87
        case FindFileHint.PatternFile:
88
        case FindFileHint.FontMapFile:
89
        case FindFileHint.TextureMapFile:
90
          break;
91
        default:
92
          return sFile;
93
      }
94

  
95
      if ( hint != FindFileHint.TextureMapFile && ext != String.Format(".SHX") && ext != String.Format(".PAT") && ext != String.Format(".TTF") && ext != String.Format(".TTC"))
96
      {
97
        strFileName += String.Format(".shx");
98
      }
99
      else if (hint == FindFileHint.TextureMapFile)
100
      {
101
        strFileName.Replace(String.Format("/"), String.Format("\\"));
102
        int last = strFileName.LastIndexOf("\\");
103
        if (last == -1)
104
          strFileName = "";
105
        else
106
          strFileName = strFileName.Substring(0, last);
107
      }
108

  
109

  
110
      sFile = (hint != FindFileHint.TextureMapFile) ? GetRegistryACADFromProfile() : GetRegistryAVEMAPSFromProfile();
111
      while (sFile.Length>0)
112
      {
113
        int nFindStr = sFile.IndexOf(";");
114
        String sPath;
115
        if (-1 == nFindStr)
116
        {
117
          sPath = sFile;
118
          sFile = String.Format("");
119
        }
120
        else
121
        {
122
          sPath = String.Format("{0}\\{1}", sFile.Substring(0, nFindStr), strFileName);
123
          if (System.IO.File.Exists(sPath))
124
          {
125
            return sPath;
126
          }
127
          sFile = sFile.Substring(nFindStr + 1, sFile.Length - nFindStr - 1);
128
        }
129
      }
130

  
131
      if (hint == FindFileHint.TextureMapFile)
132
      {
133
        return sFile;
134
      }
135

  
136
      if (sFile.Length <= 0)
137
      {
138
        String sAcadLocation = GetRegistryAcadLocation();
139
        if (sAcadLocation.Length > 0)
140
        {
141
          sFile = String.Format("{0}\\Fonts\\{1}", sAcadLocation, strFileName);
142
          if (System.IO.File.Exists(sFile))
143
          {
144
            sFile = String.Format("{0}\\Support\\{1}", sAcadLocation, strFileName);
145
            if (System.IO.File.Exists(sFile))
146
            {
147
              sFile = String.Format("");
148
            }
149
          }
150
        }
151
      }
152
      return sFile;
153
    }
154

  
155
    public override bool GetPassword(String fileName, PasswordOptions options, out String pass)
156
    {
157
      //PasswordDlg pwdDlg = new PasswordDlg();
158
      /*pwdDlg.TextFileName.Text = fileName;
159
      if (pwdDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
160
      {
161
        pass = pwdDlg.password.Text;
162
        return true;
163
      }*/
164
      pass = String.Format("");
165
      return false;
166
    }
167

  
168
    public override String FontMapFileName
169
    {
170
      get
171
      {
172
        String subkey = GetRegistryAcadProfilesKey();
173
        if (subkey.Length > 0)
174
        {
175
          subkey += String.Format("\\Editor Configuration");
176
          String fontMapFile;
177
          if (GetRegistryString(Registry.CurrentUser, subkey, String.Format("FontMappingFile"), out fontMapFile))
178
            return fontMapFile;
179
        }
180
        return String.Format("");
181
      }
182
    }
183

  
184
    bool GetRegistryString( RegistryKey rKey, String subkey, String name, out String value)
185
    {
186
      bool rv = false;
187
      object objData = null;
188

  
189
      RegistryKey regKey;
190
      regKey = rKey.OpenSubKey(subkey);
191
      if (regKey != null)
192
      {
193
        objData = regKey.GetValue(name);
194
        if (objData != null)
195
        {
196
          rv = true;
197
        }
198
        regKey.Close();
199
      }
200
      if (rv)
201
        value = objData.ToString();
202
      else
203
        value = String.Format("");
204

  
205
      rKey.Close();
206
      return rv;
207
    }
208

  
209
    String GetRegistryAVEMAPSFromProfile()
210
    {
211
      String subkey = GetRegistryAcadProfilesKey();
212
      if ( subkey.Length > 0 )
213
      {
214
        subkey += String.Format("\\General");
215
        // get the value for the ACAD entry in the registry
216
        String tmp;
217
        if (GetRegistryString(Registry.CurrentUser, subkey, String.Format("AVEMAPS"), out tmp))
218
          return tmp;
219
      }
220
      return String.Format("");
221
    }
222
    
223
    String GetRegistryAcadProfilesKey()
224
    {
225
      String subkey     = String.Format("SOFTWARE\\Autodesk\\AutoCAD");
226
      String tmp;
227

  
228
      if (!GetRegistryString(Registry.CurrentUser, subkey, String.Format("CurVer"), out tmp))
229
        return String.Format("");
230
      subkey += String.Format("\\{0}", tmp);
231

  
232
      if (!GetRegistryString(Registry.CurrentUser, subkey, String.Format("CurVer"), out tmp))
233
        return String.Format("");
234
      subkey += String.Format("\\{0}\\Profiles", tmp);
235

  
236
      if (!GetRegistryString(Registry.CurrentUser, subkey, String.Format(""), out tmp))
237
        return String.Format("");        
238
      subkey += String.Format("\\{0}", tmp);
239
      return subkey;
240
    }
241

  
242
    String GetRegistryAcadLocation()
243
    {
244
      String subkey     = String.Format("SOFTWARE\\Autodesk\\AutoCAD");
245
      String tmp;
246

  
247
      if (!GetRegistryString(Registry.CurrentUser, subkey, String.Format("CurVer"), out tmp))
248
        return String.Format("");
249
      subkey += String.Format("\\{0}", tmp);
250

  
251
      if (!GetRegistryString(Registry.CurrentUser, subkey, String.Format("CurVer"), out tmp))
252
        return String.Format("");
253
      subkey += String.Format("\\{0}", tmp);
254

  
255
      if (!GetRegistryString(Registry.CurrentUser, subkey, String.Format(""), out tmp))
256
        return String.Format("");        
257
      return tmp;
258
    }
259

  
260
    String GetRegistryACADFromProfile()
261
    {
262
      String subkey = GetRegistryAcadProfilesKey();
263
      if ( subkey.Length > 0 )
264
      {
265
        subkey += String.Format("\\General");
266
        // get the value for the ACAD entry in the registry
267
        String tmp;
268
        if (GetRegistryString(Registry.CurrentUser, subkey, String.Format("ACAD"), out tmp))
269
          return tmp;
270
      }
271
      return String.Format("");
272
    }
273
  };
274
}
ID2.Manager/MarkusImageCreate/OdActivationInfo.cs
1
///////////////////////////////////////////////////////////////////////////////
2
// Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3
// All rights reserved.
4
//
5
// This software and its documentation and related materials are owned by
6
// the Alliance. The software may only be incorporated into application
7
// programs owned by members of the Alliance, subject to a signed
8
// Membership Agreement and Supplemental Software License Agreement with the
9
// Alliance. The structure and organization of this software are the valuable
10
// trade secrets of the Alliance and its suppliers. The software is also
11
// protected by copyright law and international treaty provisions. Application
12
// programs incorporating this software must include the following statement
13
// with their copyright notices:
14
//
15
//   This application incorporates Teigha(R) software pursuant to a license
16
//   agreement with Open Design Alliance.
17
//   Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18
//   All rights reserved.
19
//
20
// By use of this software, its documentation or related materials, you
21
// acknowledge and accept the above terms.
22
///////////////////////////////////////////////////////////////////////////////
23
using System;
24
#pragma warning disable 618
25

  
26
public sealed class ActivationData
27
{
28
public const string userInfo = "RE9GVEVDSA==";
29
public const string userSignature = "lV8ff/+FJbkJprOb5Srfiy3dwX3Zo4lOE5RCz4w2gNG5CVYL37VvwvkPFFZ3k9wRx6BXjZC5mqn1be60BQG1GX1VZHta9qgikhuc/MvXEtq09kShsQLpTp+5k/hDO5SVzxP/tY95R519b64/vTDq/cnkb2EHbzI54k7aqUGI/XzWFAfNBXbk/cyyabGo608/5F/KAmbe4srwg99GuNUZl16OyJNQ6FF1SaaTzQu5LYUZmu5c2YFt2yaJzEuThua0b6Y8UqLZMl+MJ6j3LPNYQexffTMIxuFMujcNVRkU6uND3OQQ9eqU7oRJemE/r4Eui+6yNWaUG63w9VWJ+hCs0wpT87CPEIXCiquJoZW6+S38l/2NJ9hC/w3Q+PPAO9vgQHi8Ino3zSYwNWhU6FywoyvNFu9uTLUVmbMimGDFryo+QnRbvmMVtlkUiVBF1IDxjRvEg3Ce42WRIOKeVzFDcNMiSPD0AEHyUd28S79nKSiu6whp9looMWSC/nTzsTK/fU7eOiT1gG7Y1IJ7aCiILwqIMbtCO///hgD/m3Nh1Mnyj3FOufzeClODxPCr30sq2ESDEtXDmyiJOBg0sNRyZbxyhdN8vaPsOt5aU+G32cnjYkEly5j4u57/j0X/FLlogeTBf70TMi2m3wEaHwBQBp9AgkbutjUJjmzDe/2koVg=";
30
};
ID2.Manager/MarkusImageCreate/OdReadExMgd.cs
1
/////////////////////////////////////////////////////////////////////////////// 
2
// Copyright (C) 2002-2019, Open Design Alliance (the "Alliance"). 
3
// All rights reserved. 
4
// 
5
// This software and its documentation and related materials are owned by 
6
// the Alliance. The software may only be incorporated into application 
7
// programs owned by members of the Alliance, subject to a signed 
8
// Membership Agreement and Supplemental Software License Agreement with the
9
// Alliance. The structure and organization of this software are the valuable  
10
// trade secrets of the Alliance and its suppliers. The software is also 
11
// protected by copyright law and international treaty provisions. Application  
12
// programs incorporating this software must include the following statement 
13
// with their copyright notices:
14
//   
15
//   This application incorporates Open Design Alliance software pursuant to a license 
16
//   agreement with Open Design Alliance.
17
//   Open Design Alliance Copyright (C) 2002-2019 by Open Design Alliance. 
18
//   All rights reserved.
19
//
20
// By use of this software, its documentation or related materials, you 
21
// acknowledge and accept the above terms.
22
///////////////////////////////////////////////////////////////////////////////
23
using System;
24
using System.Collections.Generic;
25
using System.Text;
26
using System.IO;
27
using System.Xml;
28
using System.Linq;
29
using Teigha.DatabaseServices;
30
using Teigha.Geometry;
31
using Teigha.GraphicsInterface;
32
using Teigha.Colors;
33
using Teigha;
34
using Teigha.GraphicsSystem;
35
using Teigha.Runtime;
36
using Teigha.Export_Import;
37
using System.Collections.Specialized;
38
// note that GetObject doesn't work in Acad 2009, so we use "obsolete" Open instead
39
#pragma warning disable 618
40

  
41
namespace OdReadExMgd
42
{
43
    class DbDumper
44
    {
45
        private const string BLOCK_GRAPHIC = "GRAPHIC+";
46
        private const string BLOCK_PIPING = "PIPING+";
47

  
48
        public DbDumper() { }
49

  
50
        static string toDegreeString(double val)
51
        {
52
            return (val * 180.0 / Math.PI) + "d";
53
        }
54
        static string toHexString(int val)
55
        {
56
            return string.Format("0{0:X}", val);
57
        }
58
        static string toArcSymbolTypeString(int val)
59
        {
60
            switch (val)
61
            {
62
                case 0: return "Precedes text";
63
                case 1: return "Above text";
64
                case 2: return "None";
65
            }
66
            return "???";
67
        }
68
        /************************************************************************/
69
        /* Shorten a path with ellipses.                                        */
70
        /************************************************************************/
71
        static string shortenPath(string Inpath, int maxPath)
72
        {
73
            string path = Inpath;
74
            /**********************************************************************/
75
            /* If the path fits, just return it                                   */
76
            /**********************************************************************/
77
            if (path.Length <= maxPath)
78
            {
79
                return path;
80
            }
81
            /**********************************************************************/
82
            /* If there's no backslash, just truncate the path                    */
83
            /**********************************************************************/
84
            int lastBackslash = path.LastIndexOf('\\');
85
            if (lastBackslash < 0)
86
            {
87
                return path.Substring(0, maxPath - 3) + "...";
88
            }
89

  
90
            /**********************************************************************/
91
            /* Shorten the front of the path                                      */
92
            /**********************************************************************/
93
            int fromLeft = (lastBackslash - 3) - (path.Length - maxPath);
94
            // (12 - 3) - (19 - 10) = 9 - 9 = 0 
95
            if ((lastBackslash <= 3) || (fromLeft < 1))
96
            {
97
                path = "..." + path.Substring(lastBackslash);
98
            }
99
            else
100
            {
101
                path = path.Substring(0, fromLeft) + "..." + path.Substring(lastBackslash);
102
            }
103

  
104
            /**********************************************************************/
105
            /* Truncate the path                                                  */
106
            /**********************************************************************/
107
            if (path.Length > maxPath)
108
            {
109
                path = path.Substring(0, maxPath - 3) + "...";
110
            }
111

  
112
            return path;
113
        }
114
        static string shortenPath(string Inpath)
115
        {
116
            return shortenPath(Inpath, 40);
117
        }
118

  
119
        /************************************************************************/
120
        /* Output a string in the form                                          */
121
        /*   leftString:. . . . . . . . . . . .rightString                      */
122
        /************************************************************************/
123
        static void writeLine(int indent, object leftString, object rightString, int colWidth)
124
        {
125
            string spaces = "                                                            ";
126
            string leader = ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ";
127

  
128
            const int tabSize = 2;
129

  
130
            /**********************************************************************/
131
            /* Indent leftString with spaces characters                           */
132
            /**********************************************************************/
133
            string newleftString = spaces.Substring(0, tabSize * indent) + leftString.ToString();
134

  
135
            /**********************************************************************/
136
            /* If rightString is not specified, just output the indented          */
137
            /* leftString. Otherwise, fill the space between leftString and       */
138
            /* rightString with leader characters.                                */
139
            /**********************************************************************/
140
            if (rightString == null || ((rightString is string) && ((string)rightString) == ""))
141
            {
142
                Console.WriteLine(newleftString);
143
            }
144
            else
145
            {
146
                int leaders = colWidth - newleftString.Length;
147
                if (leaders > 0)
148
                {
149
                    Console.WriteLine(newleftString + leader.Substring(newleftString.Length, leaders) + rightString.ToString());
150
                }
151
                else
152
                {
153
                    Console.WriteLine(newleftString + ' ' + rightString.ToString());
154
                }
155
            }
156
        }
157
        static void writeLine(int indent, object leftString, object rightString)
158
        {
159
            writeLine(indent, leftString, rightString, 38);
160
        }
161
        static void writeLine(int indent, object leftString)
162
        {
163
            writeLine(indent, leftString, null, 38);
164
        }
165
        static void writeLine()
166
        {
167
            Console.WriteLine();
168
        }
169

  
170
        static void dumpEntityData(Entity pEnt, int indent, XmlNode node)
171
        {
172
            if (node != null)
173
            {
174
                try
175
                {
176
                    if (pEnt.Bounds != null)
177
                    {
178
                        Extents3d ext = pEnt.GeometricExtents;
179

  
180
                        XmlAttribute MinExtentsAttr = ODA.xml.CreateAttribute("MinExtents");
181
                        MinExtentsAttr.Value = ext.MinPoint.ToString();
182
                        node.Attributes.SetNamedItem(MinExtentsAttr);
183

  
184
                        XmlAttribute MaxExtentsAttr = ODA.xml.CreateAttribute("MaxExtents");
185
                        MaxExtentsAttr.Value = ext.MaxPoint.ToString();
186
                        node.Attributes.SetNamedItem(MaxExtentsAttr);
187
                    }
188
                }
189
                catch (System.Exception ex)
190
                {
191
                }
192

  
193
                XmlAttribute LayerAttr = ODA.xml.CreateAttribute("Layer");
194
                LayerAttr.Value = pEnt.Layer;
195
                node.Attributes.SetNamedItem(LayerAttr);
196

  
197
                writeLine(indent, "Color Index", pEnt.ColorIndex);
198
                writeLine(indent, "Color", pEnt.Color);
199

  
200
                XmlAttribute LinetypeAttr = ODA.xml.CreateAttribute("Linetype");
201
                LinetypeAttr.Value = pEnt.Linetype;
202
                node.Attributes.SetNamedItem(LinetypeAttr);
203

  
204
                writeLine(indent, "LTscale", pEnt.LinetypeScale);
205
                writeLine(indent, "Lineweight", pEnt.LineWeight);
206
                writeLine(indent, "Plot Style", pEnt.PlotStyleName);
207
                writeLine(indent, "Transparency Method", pEnt.Transparency);
208
                writeLine(indent, "Visibility", pEnt.Visible);
209
                writeLine(indent, "Planar", pEnt.IsPlanar);
210

  
211
                if (pEnt.IsPlanar)
212
                {
213
                    try
214
                    {
215
                        CoordinateSystem3d cs = (CoordinateSystem3d)pEnt.GetPlane().GetCoordinateSystem();
216
                        writeLine(indent + 1, "Origin", cs.Origin);
217
                        writeLine(indent + 1, "u-Axis", cs.Xaxis);
218
                        writeLine(indent + 1, "v-Axis", cs.Yaxis);
219
                    }
220
                    catch (System.Exception ex)
221
                    {
222
                        writeLine(indent + 1, "pEnt.GetPlane().GetCoordinateSystem() failed", ex.Message);
223
                    }
224
                }
225
            }
226
        }
227

  
228
        /************************************************************************/
229
        /* Dump Text data                                                       */
230
        /************************************************************************/
231
        static XmlNode dumpTextData(DBText pText, int indent, XmlNode node)
232
        {
233
            XmlNode TextNode = null;
234
            /// write text information to xml file
235
            if (node != null)
236
            {
237
                TextNode = ODA.xml.CreateElement(pText.GetRXClass().Name);
238

  
239
                XmlAttribute XAttr = ODA.xml.CreateAttribute("X");
240
                XAttr.Value = pText.Position.X.ToString();
241
                TextNode.Attributes.SetNamedItem(XAttr);
242

  
243
                XmlAttribute YAttr = ODA.xml.CreateAttribute("Y");
244
                YAttr.Value = pText.Position.Y.ToString();
245
                TextNode.Attributes.SetNamedItem(YAttr);
246

  
247
                TextNode.InnerText = pText.TextString.Replace("%%U", "");
248

  
249
                XmlAttribute AngleAttr = ODA.xml.CreateAttribute("Angle");
250
                AngleAttr.Value = pText.Rotation.ToString();
251
                TextNode.Attributes.SetNamedItem(AngleAttr);
252

  
253
                XmlAttribute WidthAttr = ODA.xml.CreateAttribute("Width");
254
                WidthAttr.Value = String.Format("{0}", pText.WidthFactor * pText.Height * pText.TextString.Length);
255
                TextNode.Attributes.SetNamedItem(WidthAttr);
256

  
257
                XmlAttribute HeightAttr = ODA.xml.CreateAttribute("Height");
258
                HeightAttr.Value = pText.Height.ToString();
259
                TextNode.Attributes.SetNamedItem(HeightAttr);
260

  
261
                XmlAttribute WidthFactorAttr = ODA.xml.CreateAttribute("WidthFactor");
262
                WidthFactorAttr.Value = pText.WidthFactor.ToString();
263
                TextNode.Attributes.SetNamedItem(WidthFactorAttr);
264

  
265
                XmlAttribute IsDefaultAlignmentAttr = ODA.xml.CreateAttribute("IsDefaultAlignment");
266
                IsDefaultAlignmentAttr.Value = pText.IsDefaultAlignment.ToString();
267
                TextNode.Attributes.SetNamedItem(IsDefaultAlignmentAttr);
268

  
269
                XmlAttribute AlignmentPointAttr = ODA.xml.CreateAttribute("AlignmentPoint");
270
                AlignmentPointAttr.Value = pText.AlignmentPoint.ToString();
271
                TextNode.Attributes.SetNamedItem(AlignmentPointAttr);
272

  
273
                XmlAttribute HorizontalModeAttr = ODA.xml.CreateAttribute("HorizontalMode");
274
                HorizontalModeAttr.Value = pText.HorizontalMode.ToString();
275
                TextNode.Attributes.SetNamedItem(HorizontalModeAttr);
276

  
277
                XmlAttribute VerticalModeAttr = ODA.xml.CreateAttribute("VerticalMode");
278
                VerticalModeAttr.Value = pText.VerticalMode.ToString();
279
                TextNode.Attributes.SetNamedItem(VerticalModeAttr);
280

  
281
                XmlAttribute IsMirroredInXAttr = ODA.xml.CreateAttribute("IsMirroredInX");
282
                IsMirroredInXAttr.Value = pText.IsMirroredInX.ToString();
283
                TextNode.Attributes.SetNamedItem(IsMirroredInXAttr);
284

  
285
                XmlAttribute IsMirroredInYAttr = ODA.xml.CreateAttribute("IsMirroredInY");
286
                IsMirroredInYAttr.Value = pText.IsMirroredInY.ToString();
287
                TextNode.Attributes.SetNamedItem(IsMirroredInYAttr);
288

  
289
                XmlAttribute ObliqueAttr = ODA.xml.CreateAttribute("Oblique");
290
                ObliqueAttr.Value = pText.Oblique.ToString();
291
                TextNode.Attributes.SetNamedItem(ObliqueAttr);
292

  
293
                XmlAttribute TextStyleAttr = ODA.xml.CreateAttribute("TextStyle");
294
                TextStyleAttr.Value = pText.TextStyleName;
295
                TextNode.Attributes.SetNamedItem(TextStyleAttr);
296

  
297
                XmlAttribute NormalAttr = ODA.xml.CreateAttribute("Normal");
298
                NormalAttr.Value = pText.Normal.ToString();
299
                TextNode.Attributes.SetNamedItem(NormalAttr);
300

  
301
                XmlAttribute ThicknessAttr = ODA.xml.CreateAttribute("Thickness");
302
                ThicknessAttr.Value = pText.Thickness.ToString();
303
                TextNode.Attributes.SetNamedItem(ThicknessAttr);
304

  
305
                dumpEntityData(pText, indent, TextNode);
306

  
307
                node.AppendChild(TextNode);
308
            }
309

  
310
            return TextNode;
311
        }
312

  
313
        /************************************************************************/
314
        /* Dump Attribute data                                                  */
315
        /************************************************************************/
316
        static void dumpAttributeData(int indent, AttributeReference pAttr, int i, XmlNode node)
317
        {
318
            writeLine(indent, "Field Length", pAttr.FieldLength);
319
            writeLine(indent, "Invisible", pAttr.Invisible);
320
            writeLine(indent, "Preset", pAttr.IsPreset);
321
            writeLine(indent, "Verifiable", pAttr.IsVerifiable);
322
            writeLine(indent, "Locked in Position", pAttr.LockPositionInBlock);
323
            writeLine(indent, "Constant", pAttr.IsConstant);
324

  
325
            XmlNode TextNode = dumpTextData(pAttr, indent, node);
326
            if (TextNode != null)
327
            {
328
                XmlAttribute HandleAttr = ODA.xml.CreateAttribute("Handle");
329
                HandleAttr.Value = pAttr.Handle.ToString();
330
                TextNode.Attributes.SetNamedItem(HandleAttr);
331

  
332
                XmlAttribute TagAttr = ODA.xml.CreateAttribute("Tag");
333
                TagAttr.Value = pAttr.Tag;
334
                TextNode.Attributes.SetNamedItem(TagAttr);
335
            }
336
        }
337

  
338
        /************************************************************************/
339
        /* Dump AttributeDefinition Data                                         */
340
        /************************************************************************/
341
        static void dump(AttributeDefinition pAttDef, int indent, XmlNode node)
342
        {
343
            if (node == null) return;
344

  
345
            XmlNode AttributeDefinitionNode = ODA.xml.CreateElement(pAttDef.GetRXClass().Name);
346

  
347
            XmlAttribute HandleAttr = ODA.xml.CreateAttribute("Handle");
348
            HandleAttr.Value = pAttDef.Handle.ToString();
349
            AttributeDefinitionNode.Attributes.SetNamedItem(HandleAttr);
350

  
351
            XmlAttribute XAttr = ODA.xml.CreateAttribute("X");
352
            XAttr.Value = pAttDef.Position.X.ToString();
353
            AttributeDefinitionNode.Attributes.SetNamedItem(XAttr);
354

  
355
            XmlAttribute YAttr = ODA.xml.CreateAttribute("Y");
356
            YAttr.Value = pAttDef.Position.Y.ToString();
357
            AttributeDefinitionNode.Attributes.SetNamedItem(YAttr);
358

  
359
            XmlAttribute ZAttr = ODA.xml.CreateAttribute("Z");
360
            ZAttr.Value = pAttDef.Position.Z.ToString();
361
            AttributeDefinitionNode.Attributes.SetNamedItem(ZAttr);
362

  
363
            XmlAttribute AngleAttr = ODA.xml.CreateAttribute("Angle");
364
            AngleAttr.Value = pAttDef.Rotation.ToString();
365
            AttributeDefinitionNode.Attributes.SetNamedItem(AngleAttr);
366

  
367
            XmlAttribute NormalAttr = ODA.xml.CreateAttribute("Normal");
368
            NormalAttr.Value = pAttDef.Normal.ToString();
369
            AttributeDefinitionNode.Attributes.SetNamedItem(NormalAttr);
370

  
371
            XmlAttribute NameAttr = ODA.xml.CreateAttribute("Name");
372
            NameAttr.Value = pAttDef.Tag;
373
            AttributeDefinitionNode.Attributes.SetNamedItem(NameAttr);
374

  
375
            try
376
            {
377
                Extents3d ext = pAttDef.GeometricExtents;
378

  
379
                XmlAttribute MinExtentsAttr = ODA.xml.CreateAttribute("MinExtents");
380
                MinExtentsAttr.Value = ext.MinPoint.ToString();
381
                AttributeDefinitionNode.Attributes.SetNamedItem(MinExtentsAttr);
382

  
383
                XmlAttribute MaxExtentsAttr = ODA.xml.CreateAttribute("MaxExtents");
384
                MaxExtentsAttr.Value = ext.MaxPoint.ToString();
385
                AttributeDefinitionNode.Attributes.SetNamedItem(MaxExtentsAttr);
386
            }
387
            catch (System.Exception)
388
            {
389
            }
390

  
391
            dumpEntityData(pAttDef, indent, AttributeDefinitionNode);
392

  
393
            using (var text = new DBText())
394
            {
395
            
396
                text.SetPropertiesFrom(pAttDef);
397
                text.TextStyleId = pAttDef.TextStyleId;
398
                text.Position = pAttDef.Position;
399
                text.Rotation = pAttDef.Rotation;
400
                text.WidthFactor = pAttDef.WidthFactor;
401
                text.Height = pAttDef.Height;
402
                text.Thickness = pAttDef.Thickness;
403
                text.Justify = pAttDef.Justify;
404
                text.TextString = !string.IsNullOrWhiteSpace(pAttDef.TextString.Replace("*", "")) ? pAttDef.TextString : pAttDef.Tag;
405
                if (pAttDef.Justify != AttachmentPoint.BaseLeft)
406
                    text.AlignmentPoint = pAttDef.AlignmentPoint;
407
                dumpTextData(text, indent, AttributeDefinitionNode);
408
            }
409
            node.AppendChild(AttributeDefinitionNode);
410
        }
411
        /************************************************************************/
412
        /* Dump Block Reference Data                                             */
413
        /************************************************************************/
414
        static XmlNode dumpBlockRefData(BlockReference pBlkRef, int indent, XmlNode node)
415
        {
416
            if (node != null)
417
            {
418
                XmlNode BlockReferenceNode = ODA.xml.CreateElement(pBlkRef.GetRXClass().Name);
419

  
420
                XmlAttribute HandleAttr = ODA.xml.CreateAttribute("Handle");
421
                HandleAttr.Value = pBlkRef.Handle.ToString();
422
                BlockReferenceNode.Attributes.SetNamedItem(HandleAttr);
423

  
424
                XmlAttribute XAttr = ODA.xml.CreateAttribute("X");
425
                XAttr.Value = pBlkRef.Position.X.ToString();
426
                BlockReferenceNode.Attributes.SetNamedItem(XAttr);
427

  
428
                XmlAttribute YAttr = ODA.xml.CreateAttribute("Y");
429
                YAttr.Value = pBlkRef.Position.Y.ToString();
430
                BlockReferenceNode.Attributes.SetNamedItem(YAttr);
431

  
432
                XmlAttribute ZAttr = ODA.xml.CreateAttribute("Z");
433
                ZAttr.Value = pBlkRef.Position.Z.ToString();
434
                BlockReferenceNode.Attributes.SetNamedItem(ZAttr);
435

  
436
                XmlAttribute AngleAttr = ODA.xml.CreateAttribute("Angle");
437
                AngleAttr.Value = pBlkRef.Rotation.ToString();
438
                BlockReferenceNode.Attributes.SetNamedItem(AngleAttr);
439

  
440
                XmlAttribute ScaleFactorsAttr = ODA.xml.CreateAttribute("ScaleFactors");
441
                ScaleFactorsAttr.Value = pBlkRef.ScaleFactors.ToString();
442
                BlockReferenceNode.Attributes.SetNamedItem(ScaleFactorsAttr);
443

  
444
                XmlAttribute NormalAttr = ODA.xml.CreateAttribute("Normal");
445
                NormalAttr.Value = pBlkRef.Normal.ToString();
446
                BlockReferenceNode.Attributes.SetNamedItem(NormalAttr);
447

  
448
                XmlAttribute NameAttr = ODA.xml.CreateAttribute("Name");
449
                NameAttr.Value = pBlkRef.Name;
450
                BlockReferenceNode.Attributes.SetNamedItem(NameAttr);
451

  
452
                // BlockReference DBPoint
453
                string nodePointValue = string.Empty;
454
                Dictionary<long, Point3d> nodePointDic = new Dictionary<long, Point3d>();
455
                using (BlockTableRecord pBtr = (BlockTableRecord)pBlkRef.BlockTableRecord.Open(OpenMode.ForRead, false, true))
456
                {
457
                    foreach (ObjectId blkid in pBtr)
458
                    {
459
                        using (Entity pBlkEnt = (Entity)blkid.Open(OpenMode.ForRead, false, true))
460
                        {
461
                            if (pBlkEnt.GetRXClass().Name == "AcDbPoint")
462
                            {
463
                                DBPoint pt = (DBPoint)pBlkEnt;
464
                                Point3d nodePt = pt.Position.TransformBy(pBlkRef.BlockTransform);
465
                                nodePointDic.Add(Convert.ToInt64(pt.Handle.ToString(), 16), nodePt);
466
                            }
467
                        }
468
                    }
469
                }
470
                if (nodePointDic.Count > 0)
471
                {
472
                    foreach (KeyValuePair<long, Point3d> item in nodePointDic.OrderBy(o => o.Key))
473
                    {
474
                        nodePointValue += item.Value.ToString() + "/";
475
                    }
476
                    nodePointValue = nodePointValue.Substring(0, nodePointValue.Length - 1);
477
                }
478

  
479
                XmlAttribute NodePointAttr = ODA.xml.CreateAttribute("Nodes");
480
                NodePointAttr.Value = nodePointValue;
481
                BlockReferenceNode.Attributes.SetNamedItem(NodePointAttr);
482

  
483
                Matrix3d blockTransform = pBlkRef.BlockTransform;
484
                CoordinateSystem3d cs = blockTransform.CoordinateSystem3d;
485
                writeLine(indent + 1, "Origin", cs.Origin);
486
                writeLine(indent + 1, "u-Axis", cs.Xaxis);
487
                writeLine(indent + 1, "v-Axis", cs.Yaxis);
488
                writeLine(indent + 1, "z-Axis", cs.Zaxis);
489

  
490
                dumpEntityData(pBlkRef, indent, BlockReferenceNode);
491

  
492
                DBObjectCollection objColl = new DBObjectCollection();
493

  
494
                if (!pBlkRef.Name.ToUpper().StartsWith(BLOCK_GRAPHIC) && pBlkRef.Bounds != null)
495
                {
496
                    pBlkRef.Explode(objColl);
497
                    
498
                    foreach (var obj in objColl)
499
                    {
500
                        if (obj is DBText)
501
                        {
502
                            dumpTextData(obj as DBText, indent, BlockReferenceNode);
503
                        }
504
                        else if (obj is MText)
505
                        {
506
                            MText mtext = obj as MText;
507

  
508
                            DBObjectCollection objs = new DBObjectCollection();
509
                            mtext.Explode(objs);
510
                            foreach (var item in objs)
511
                            {
512
                                dumpTextData(item as DBText, indent, BlockReferenceNode);
513
                            }
514
                        }
515
                    }
516
                }
517

  
518
                /**********************************************************************/
519
                /* Dump the attributes                                                */
520
                /**********************************************************************/
521
                int i = 0;
522
                AttributeCollection attCol = pBlkRef.AttributeCollection;
523
                foreach (ObjectId id in attCol)
524
                {
525
                    try
526
                    {
527
                        using (AttributeReference pAttr = (AttributeReference)id.Open(OpenMode.ForRead))
528
                            dumpAttributeData(indent, pAttr, i++, BlockReferenceNode);
529
                    }
530
                    catch (System.Exception)
531
                    {
532
                    }
533
                }
534

  
535
                node.AppendChild(BlockReferenceNode);
536

  
537
                return BlockReferenceNode;
538
            }
539

  
540
            return null;
541
        }
542
        /************************************************************************/
543
        /* Dump data common to all OdDbCurves                                   */
544
        /************************************************************************/
545
        static void dumpCurveData(Entity pEnt, int indent, XmlNode node)
546
        {
547
            if (node != null)
548
            {
549
                Curve pEntity = (Curve)pEnt;
550
                try
551
                {
552
                    writeLine(indent, "Start Point", pEntity.StartPoint);
553
                    writeLine(indent, "End Point", pEntity.EndPoint);
554
                }
555
                catch (System.Exception)
556
                {
557
                }
558
                writeLine(indent, "Closed", pEntity.Closed);
559
                writeLine(indent, "Periodic", pEntity.IsPeriodic);
560

  
561
                try
562
                {
563
                    writeLine(indent, "Area", pEntity.Area);
564
                }
565
                catch (System.Exception)
566
                {
567
                }
568
                dumpEntityData(pEntity, indent, node);
569
            }
570
        }
571

  
572
        /************************************************************************/
573
        /* Dump Dimension data                                                  */
574
        /************************************************************************/
575
        static XmlNode dumpDimData(Dimension pDim, int indent, XmlNode node)
576
        {
... 이 차이점은 표시할 수 있는 최대 줄수를 초과해서 이 차이점은 잘렸습니다.

내보내기 Unified diff

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