Exemple #1
0
        internal bool FriendCheckValue(object vvarValue, ref string nrstrErrMsg = "")
        {
            nrstrErrMsg = null;
            AcadTable dobjAcadTable2   = InternGetTable();
            bool      FriendCheckValue = mobjSysVar.FriendCheckValue(RuntimeHelpers.GetObjectValue(vvarValue), dobjAcadTable2, ref nrstrErrMsg);

            dobjAcadTable2 = null;
            return(FriendCheckValue);
        }
Exemple #2
0
        private AcadTable InternGetTable()
        {
            AcadTable dobjAcadTable2 = default(AcadTable);

            if (FriendGetDocumentIndex > -1)
            {
                switch (SymTable)
                {
                case 2:
                    dobjAcadTable2 = Document.Blocks;
                    break;

                case 7:
                    dobjAcadTable2 = Document.UserCoordinateSystems;
                    break;

                case 6:
                    dobjAcadTable2 = Document.TextStyles;
                    break;

                case 5:
                    dobjAcadTable2 = Document.Linetypes;
                    break;

                case 4:
                    dobjAcadTable2 = Document.Layers;
                    break;

                case 3:
                    dobjAcadTable2 = Document.DimStyles;
                    break;

                case 9:
                    dobjAcadTable2 = Document.Viewports;
                    break;

                case 1:
                    dobjAcadTable2 = Document.RegisteredApplications;
                    break;

                case 8:
                    dobjAcadTable2 = Document.Views;
                    break;
                }
            }
            AcadTable InternGetTable = dobjAcadTable2;

            dobjAcadTable2 = null;
            return(InternGetTable);
        }