Ejemplo n.º 1
0
        private void InternListTable(ref int rlngIdx)
        {
            IEnumerator enumerator = default(IEnumerator);
            AcadUCS     dobjAcadUCS2;

            try
            {
                enumerator = mobjAcadUCSs.GetValues().GetEnumerator();
                object dvarXDataType  = default(object);
                object dvarXDataValue = default(object);
                while (enumerator.MoveNext())
                {
                    dobjAcadUCS2 = (AcadUCS)enumerator.Current;
                    AcadUCS acadUCS = dobjAcadUCS2;
                    InternAddToDictLine(ref rlngIdx, 0, acadUCS.DXFName);
                    InternAddToDictLine(ref rlngIdx, 5, acadUCS.Handle);
                    hwpDxf_List.BkDXFList_Reactors((Dictionary <object, object>)acadUCS.DictReactors, ref rlngIdx, ref mobjDictReadCodes, ref mobjDictReadValues);
                    hwpDxf_List.BkDXFList_XDictionary((Dictionary <object, object>)acadUCS.DictXDictionaries, ref rlngIdx, ref mobjDictReadCodes, ref mobjDictReadValues);
                    InternAddToDictLine(ref rlngIdx, 330, acadUCS.OwnerID);
                    InternAddToDictLine(ref rlngIdx, 100, acadUCS.SuperiorObjectName);
                    InternAddToDictLine(ref rlngIdx, 100, acadUCS.ObjectName);
                    InternAddToDictLine(ref rlngIdx, 2, acadUCS.Name);
                    InternAddToDictLine(ref rlngIdx, 70, acadUCS.Flags70);
                    object dvarPoint3 = RuntimeHelpers.GetObjectValue(acadUCS.Origin);
                    InternAddToDictLine(ref rlngIdx, 10, RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarPoint3, new object[1]
                    {
                        0
                    }, null)));
                    InternAddToDictLine(ref rlngIdx, 20, RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarPoint3, new object[1]
                    {
                        1
                    }, null)));
                    InternAddToDictLine(ref rlngIdx, 30, RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarPoint3, new object[1]
                    {
                        2
                    }, null)));
                    dvarPoint3 = RuntimeHelpers.GetObjectValue(acadUCS.XVector);
                    InternAddToDictLine(ref rlngIdx, 11, RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarPoint3, new object[1]
                    {
                        0
                    }, null)));
                    InternAddToDictLine(ref rlngIdx, 21, RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarPoint3, new object[1]
                    {
                        1
                    }, null)));
                    InternAddToDictLine(ref rlngIdx, 31, RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarPoint3, new object[1]
                    {
                        2
                    }, null)));
                    dvarPoint3 = RuntimeHelpers.GetObjectValue(acadUCS.YVector);
                    InternAddToDictLine(ref rlngIdx, 12, RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarPoint3, new object[1]
                    {
                        0
                    }, null)));
                    InternAddToDictLine(ref rlngIdx, 22, RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarPoint3, new object[1]
                    {
                        1
                    }, null)));
                    InternAddToDictLine(ref rlngIdx, 32, RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarPoint3, new object[1]
                    {
                        2
                    }, null)));
                    InternAddToDictLine(ref rlngIdx, 79, acadUCS.UCSOrthographic);
                    InternAddToDictLine(ref rlngIdx, 146, RuntimeHelpers.GetObjectValue(acadUCS.Depth));
                    acadUCS.GetXData(null, ref dvarXDataType, ref dvarXDataValue);
                    hwpDxf_List.BkDXFList_XData(RuntimeHelpers.GetObjectValue(dvarXDataType), RuntimeHelpers.GetObjectValue(dvarXDataValue), ref rlngIdx, ref mobjDictReadCodes, ref mobjDictReadValues);
                    acadUCS = null;
                }
            }
            finally
            {
                if (enumerator is IDisposable)
                {
                    (enumerator as IDisposable).Dispose();
                }
            }
            dobjAcadUCS2 = null;
        }