Beispiel #1
0
        private void InternListSection(ref int rlngIdx)
        {
            AcadBlock dobjAcadBlock4 = (AcadBlock)mobjAcadBlocks.Item("*Model_Space");

            InternListBlockBegin(dobjAcadBlock4.BlockBegin, ref rlngIdx);
            InternListBlockData(dobjAcadBlock4, ref rlngIdx);
            InternListBlockEnd(dobjAcadBlock4.BlockEnd, ref rlngIdx);
            IEnumerator enumerator = default(IEnumerator);

            try
            {
                enumerator = mobjAcadBlocks.GetValues().GetEnumerator();
                while (enumerator.MoveNext())
                {
                    dobjAcadBlock4 = (AcadBlock)enumerator.Current;
                    if (LikeOperator.LikeString(dobjAcadBlock4.Name, "[*]Paper_Space*", CompareMethod.Binary))
                    {
                        InternListBlockBegin(dobjAcadBlock4.BlockBegin, ref rlngIdx);
                        InternListBlockData(dobjAcadBlock4, ref rlngIdx);
                        hwpDxf_List.BkDXFList_AcadBlockEntities(mstrAcadVer, dobjAcadBlock4, ref rlngIdx, ref mobjDictReadCodes, ref mobjDictReadValues);
                        InternListBlockEnd(dobjAcadBlock4.BlockEnd, ref rlngIdx);
                    }
                }
            }
            finally
            {
                if (enumerator is IDisposable)
                {
                    (enumerator as IDisposable).Dispose();
                }
            }
            IEnumerator enumerator2 = default(IEnumerator);

            try
            {
                enumerator2 = mobjAcadBlocks.GetValues().GetEnumerator();
                while (enumerator2.MoveNext())
                {
                    dobjAcadBlock4 = (AcadBlock)enumerator2.Current;
                    if (!LikeOperator.LikeString(dobjAcadBlock4.Name, "[*]Model_Space", CompareMethod.Binary) & !LikeOperator.LikeString(dobjAcadBlock4.Name, "[*]Paper_Space*", CompareMethod.Binary))
                    {
                        InternListBlockBegin(dobjAcadBlock4.BlockBegin, ref rlngIdx);
                        InternListBlockData(dobjAcadBlock4, ref rlngIdx);
                        hwpDxf_List.BkDXFList_AcadBlockEntities(mstrAcadVer, dobjAcadBlock4, ref rlngIdx, ref mobjDictReadCodes, ref mobjDictReadValues);
                        InternListBlockEnd(dobjAcadBlock4.BlockEnd, ref rlngIdx);
                    }
                }
            }
            finally
            {
                if (enumerator2 is IDisposable)
                {
                    (enumerator2 as IDisposable).Dispose();
                }
            }
            dobjAcadBlock4 = null;
        }
Beispiel #2
0
        private void InternListTable(ref int rlngIdx)
        {
            AcadBlock dobjAcadBlock4 = (AcadBlock)mobjAcadBlocks.FriendGetItem("*Model_Space");

            if (dobjAcadBlock4 != null)
            {
                InternListBlock(ref rlngIdx, dobjAcadBlock4);
            }
            dobjAcadBlock4 = (AcadBlock)mobjAcadBlocks.FriendGetItem("*Paper_Space");
            int dlngCount = 0;

            while (dobjAcadBlock4 != null)
            {
                InternListBlock(ref rlngIdx, dobjAcadBlock4);
                dobjAcadBlock4 = (AcadBlock)mobjAcadBlocks.FriendGetItem("*Paper_Space" + Conversions.ToString(dlngCount));
                dlngCount      = checked (dlngCount + 1);
            }
            IEnumerator enumerator = default(IEnumerator);

            try
            {
                enumerator = mobjAcadBlocks.GetValues().GetEnumerator();
                while (enumerator.MoveNext())
                {
                    dobjAcadBlock4 = (AcadBlock)enumerator.Current;
                    string dstrName = dobjAcadBlock4.Name;
                    if (!LikeOperator.LikeString(dstrName, "[*]Model_Space", CompareMethod.Binary) & !LikeOperator.LikeString(dstrName, "[*]Paper_Space*", CompareMethod.Binary))
                    {
                        InternListBlock(ref rlngIdx, dobjAcadBlock4);
                    }
                }
            }
            finally
            {
                if (enumerator is IDisposable)
                {
                    (enumerator as IDisposable).Dispose();
                }
            }
            dobjAcadBlock4 = null;
        }