コード例 #1
0
ファイル: Class259.cs プロジェクト: 15831944/WW
 public virtual void ResolveReferences(Class374 modelBuilder)
 {
     if (this.ulong_0 != 0UL && this.dxfHandledObject_0.OwnerObjectSoftReference == null)
     {
         DxfHandledObject dxfHandledObject = modelBuilder.method_3(this.ulong_0);
         if (dxfHandledObject != null)
         {
             this.dxfHandledObject_0.vmethod_2((IDxfHandledObject)dxfHandledObject);
         }
     }
     if (this.ulong_1 != 0UL)
     {
         DxfDictionary dxfDictionary = modelBuilder.method_4 <DxfDictionary>(this.ulong_1);
         if (dxfDictionary != null)
         {
             this.dxfHandledObject_0.ExtensionDictionary = dxfDictionary;
         }
     }
     modelBuilder.ResolveReferences((ICollection <Interface10>) this.linkedList_0);
     if (this.list_0 == null)
     {
         return;
     }
     foreach (ulong handle in this.list_0)
     {
         DxfHandledObject reactor = modelBuilder.method_3(handle);
         if (reactor != null)
         {
             this.dxfHandledObject_0.AddPersistentReactor(reactor);
         }
     }
 }
コード例 #2
0
        public void ResolveReferences(Class374 modelBuilder)
        {
            DxfHandledObject dxfHandledObject = modelBuilder.method_3(this.ulong_0);

            if (dxfHandledObject != null)
            {
                this.class1026_0.BlockOrField = dxfHandledObject;
            }
            if (this.ulong_1 != 0UL)
            {
                this.class1026_0.TextStyle = modelBuilder.method_4 <DxfTextStyle>(this.ulong_1);
            }
            else if (!string.IsNullOrEmpty(this.string_0))
            {
                this.class1026_0.TextStyle = modelBuilder.Model.TextStyles[this.string_0];
            }
            if (this.list_0 == null)
            {
                return;
            }
            foreach (Class331 class331 in this.list_0)
            {
                class331.ResolveReferences(modelBuilder);
            }
        }
コード例 #3
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfField dxfField1 = this.Object as DxfField;

            if (dxfField1 == null)
            {
                return;
            }
            foreach (ulong handle in this.list_1)
            {
                DxfField dxfField2 = modelBuilder.method_4 <DxfField>(handle);
                if (dxfField2 != null)
                {
                    dxfField1.ChildFields.Add(dxfField2);
                }
            }
            foreach (ulong handle in this.list_2)
            {
                DxfHandledObject dxfHandledObject = modelBuilder.method_3(handle);
                if (dxfHandledObject != null)
                {
                    dxfField1.FieldObjects.Add(dxfHandledObject);
                }
            }
        }
コード例 #4
0
ファイル: Class268.cs プロジェクト: 15831944/WW
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfBlockAction dxfBlockAction = this.Object as DxfBlockAction;

            if (dxfBlockAction == null)
            {
                return;
            }
            if (this.ulong_2 != null && this.ulong_2.Length != 0)
            {
                dxfBlockAction.AttachedEntities = new DxfHandledObjectCollection <DxfHandledObject>(this.ulong_2.Length);
                for (int index = 0; index < this.ulong_2.Length; ++index)
                {
                    dxfBlockAction.AttachedEntities.Add(modelBuilder.method_3(this.ulong_2[index]));
                }
            }
            else
            {
                dxfBlockAction.AttachedEntities = (DxfHandledObjectCollection <DxfHandledObject>)null;
            }
            if (dxfBlockAction.AttachedEntities == null)
            {
                return;
            }
            foreach (DxfHandledObject attachedEntity in dxfBlockAction.AttachedEntities)
            {
                if (attachedEntity == null)
                {
                    Class740.smethod_14(dxfBlockAction.OwnerObjectSoftReference as DxfEvalGraph);
                    break;
                }
            }
        }
コード例 #5
0
 public void ResolveReferences(Class374 modelBuilder)
 {
     if (this.ulong_0 == 0UL)
     {
         return;
     }
     this.dxfValue_0.SetValue(modelBuilder.method_3(this.ulong_0));
 }
コード例 #6
0
ファイル: DxfDataCellValue.cs プロジェクト: 15831944/WW
 public void ResolveReferences(Class374 modelBuilder)
 {
     if (this.ulong_0 == 0UL)
     {
         return;
     }
     this.objectIdBase_0.Value = modelBuilder.method_3(this.ulong_0);
 }
コード例 #7
0
            public void ResolveReferences(Class374 modelBuilder)
            {
                DxfHandledObject dxfHandledObject = modelBuilder.method_3(this.ulong_0);

                if (dxfHandledObject == null)
                {
                    return;
                }
                this.dxfTypedObjectReference_0.ObjectReference = dxfHandledObject.Reference;
            }
コード例 #8
0
 public void ResolveReferences(Class374 modelBuilder)
 {
     if (this.ulong_0 != 0UL)
     {
         this.dxfXRecordValue_0.Value = (object)modelBuilder.method_3(this.ulong_0);
     }
     else
     {
         this.dxfXRecordValue_0.Value = (object)0;
     }
 }
コード例 #9
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfIDBlockReference handledObject = this.HandledObject as DxfIDBlockReference;

            if (handledObject == null)
            {
                return;
            }
            handledObject.Viewport = modelBuilder.method_3(this.ulong_10);
        }
コード例 #10
0
 public void ResolveReferences(Class374 modelBuilder)
 {
     if (this.ulong_0 == 0UL)
     {
         this.action_0(DxfObjectReference.Null);
     }
     else
     {
         this.action_0(DxfObjectReference.GetReference((IDxfHandledObject)modelBuilder.method_3(this.ulong_0)));
     }
 }
コード例 #11
0
ファイル: Class266.cs プロジェクト: 15831944/WW
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfBlockConstraintParameter constraintParameter = this.Object as DxfBlockConstraintParameter;

            if (constraintParameter == null)
            {
                return;
            }
            constraintParameter.Dependency = modelBuilder.method_3(this.Dependency);
        }
コード例 #12
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfLayout handledObject = (DxfLayout)this.HandledObject;

            if (this.ulong_2 != 0UL && handledObject.OwnerBlock == null)
            {
                DxfBlock dxfBlock = modelBuilder.method_4 <DxfBlock>(this.ulong_2);
                if (dxfBlock != null)
                {
                    handledObject.OwnerBlock = dxfBlock;
                }
            }
            if (this.ulong_3 != 0UL)
            {
                DxfHandledObject dxfHandledObject = modelBuilder.method_3(this.ulong_3);
                if (dxfHandledObject != null)
                {
                    handledObject.LastActiveViewport = dxfHandledObject;
                }
            }
            if (this.ulong_4 != 0UL)
            {
                DxfUcs dxfUcs = modelBuilder.method_4 <DxfUcs>(this.ulong_4);
                if (dxfUcs != null)
                {
                    handledObject.Ucs = dxfUcs;
                }
            }
            if (this.ulong_5 != 0UL)
            {
                DxfUcs dxfUcs = modelBuilder.method_4 <DxfUcs>(this.ulong_5);
                if (dxfUcs != null)
                {
                    handledObject.Ucs = dxfUcs;
                }
            }
            if (this.list_1 == null)
            {
                return;
            }
            short num = 1;

            foreach (ulong handle in this.list_1)
            {
                DxfViewport dxfViewport = modelBuilder.method_4 <DxfViewport>(handle);
                if (dxfViewport != null)
                {
                    handledObject.Viewports.Add(dxfViewport);
                    ++num;
                }
            }
        }
コード例 #13
0
ファイル: Class296.cs プロジェクト: 15831944/WW
 public override void ResolveReferences(Class374 modelBuilder)
 {
     base.ResolveReferences(modelBuilder);
     foreach (Interface10 nterface10 in this.list_2)
     {
         nterface10.ResolveReferences(modelBuilder);
     }
     if (this.ulong_10 == 0UL)
     {
         return;
     }
     this.dxfTable_0.Unknown1 = modelBuilder.method_3(this.ulong_10);
 }
コード例 #14
0
ファイル: Class660.cs プロジェクト: 15831944/WW
        public void ResolveReferences(Class374 modelBuilder)
        {
            if (this.dxfExtendedData_0 == null || this.ulong_0 == 0UL)
            {
                return;
            }
            DxfHandledObject dxfHandledObject = modelBuilder.method_3(this.ulong_0);

            if (dxfHandledObject == null)
            {
                DxfMessage dxfMessage = new DxfMessage(DxfStatus.UnresolvedReference, Severity.Warning, "AppIdHandle", (object)this.ulong_0);
                modelBuilder.Messages.Add(dxfMessage);
            }
            else
            {
                DxfAppId dxfAppId = dxfHandledObject as DxfAppId;
                if (dxfAppId == null)
                {
                    modelBuilder.Messages.Add(new DxfMessage(DxfStatus.WrongType, Severity.Warning, "ExpectedType", (object)typeof(DxfAppId))
                    {
                        Parameters =
                        {
                            {
                                "ObjectType",
                                (object)dxfHandledObject.GetType()
                            },
                            {
                                "Object",
                                (object)dxfHandledObject
                            }
                        }
                    });
                }
                else
                {
                    this.dxfExtendedData_0.AppId = dxfAppId;
                }
                if (this.list_0 != null)
                {
                    foreach (Interface10 nterface10 in this.list_0)
                    {
                        nterface10.ResolveReferences(modelBuilder);
                    }
                }
            }
            if (this.class259_0 == null || this.class259_0.HandledObject == null)
            {
                return;
            }
            this.class259_0.HandledObject.ExtendedDataCollection.Add(this.dxfExtendedData_0);
        }
コード例 #15
0
ファイル: Class278.cs プロジェクト: 15831944/WW
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfXRecord handledObject = (DxfXRecord)this.HandledObject;

            foreach (Pair <int, ulong> pair in this.list_1)
            {
                DxfHandledObject dxfHandledObject = modelBuilder.method_3(pair.Second);
                if (dxfHandledObject != null)
                {
                    handledObject.Values[pair.First].Value = (object)dxfHandledObject;
                }
            }
        }
コード例 #16
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfGroup handledObject = (DxfGroup)this.HandledObject;

            foreach (ulong handle in this.list_1)
            {
                DxfHandledObject dxfHandledObject = modelBuilder.method_3(handle);
                if (dxfHandledObject != null && (modelBuilder.LoadUnknownObjects || !(dxfHandledObject is DxfUnknownEntity)))
                {
                    handledObject.Members.Add(dxfHandledObject);
                }
            }
        }
コード例 #17
0
 public void ResolveReferences(Class374 modelBuilder)
 {
     if (this.ulong_0 != 0UL)
     {
         this.dxfTableCellContent_0.ValueObject = modelBuilder.method_3(this.ulong_0);
     }
     if (this.list_0 == null)
     {
         return;
     }
     foreach (Class331 class331 in this.list_0)
     {
         class331.ResolveReferences(modelBuilder);
     }
 }
コード例 #18
0
ファイル: Class506.cs プロジェクト: 15831944/WW
 public void ResolveReferences(Class374 modelBuilder, DxfTableContent table)
 {
     if (this.ulong_0 != 0UL)
     {
         this.dxfTableCell_0.UnknownObject = modelBuilder.method_3(this.ulong_0);
     }
     if (this.int_0 != 0 && table.TableStyle != null)
     {
         this.dxfTableCell_0.CellStyle = table.TableStyle.CellStyles.GetById(this.int_0);
     }
     foreach (Interface10 nterface10 in this.list_0)
     {
         nterface10.ResolveReferences(modelBuilder);
     }
 }
コード例 #19
0
ファイル: Class265.cs プロジェクト: 15831944/WW
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfEvalGraphExpression handledObject = (DxfEvalGraphExpression)this.HandledObject;

            if (this.class485_0 == null || this.class485_0.DataValueHandle == 0UL)
            {
                return;
            }
            handledObject.DataValue.Value = (object)modelBuilder.method_3(this.class485_0.DataValueHandle);
            if (handledObject.DataValue.Value != null)
            {
                return;
            }
            handledObject.DataValue = (DxfXRecordValue)null;
        }
コード例 #20
0
ファイル: Class261.cs プロジェクト: 15831944/WW
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfIdBuffer handledObject = (DxfIdBuffer)this.HandledObject;

            foreach (ulong handle in this.list_1)
            {
                if (handle != 0UL)
                {
                    DxfHandledObject dxfHandledObject = modelBuilder.method_3(handle);
                    if (dxfHandledObject != null)
                    {
                        handledObject.HandledObjects.Add(dxfHandledObject);
                    }
                }
            }
        }
コード例 #21
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            if (this.ulong_6 == 0UL)
            {
                return;
            }
            DxfHandledObject dxfHandledObject = modelBuilder.method_3(this.ulong_6);

            if (dxfHandledObject == null)
            {
                return;
            }
            DxfTextStyle dxfTextStyle = dxfHandledObject as DxfTextStyle;

            if (dxfTextStyle != null)
            {
                ((DxfMText)this.Entity).Style = dxfTextStyle;
            }
            else
            {
                modelBuilder.Messages.Add(new DxfMessage(DxfStatus.WrongType, Severity.Error)
                {
                    Parameters =
                    {
                        {
                            "Handle",
                            (object)this.ulong_6
                        },
                        {
                            "Type",
                            (object)dxfHandledObject.GetType()
                        },
                        {
                            "ExpectedType",
                            (object)typeof(DxfTextStyle)
                        },
                        {
                            "ReferencingObjectHandle",
                            (object)this.Entity.Handle
                        }
                    }
                });
            }
        }
コード例 #22
0
 public void ResolveReferences(Class374 modelBuilder)
 {
     if (this.ulong_0 != 0UL)
     {
         DxfHandledObject dxfHandledObject = modelBuilder.method_3(this.ulong_0);
         if (dxfHandledObject != null)
         {
             DxfTextStyle dxfTextStyle = dxfHandledObject as DxfTextStyle;
             if (dxfTextStyle != null)
             {
                 this.element_0.TextStyle = dxfTextStyle;
             }
             else
             {
                 modelBuilder.Messages.Add(new DxfMessage(DxfStatus.WrongType, Severity.Error)
                 {
                     Parameters =
                     {
                         {
                             "Handle",
                             (object)this.ulong_0
                         },
                         {
                             "Type",
                             (object)dxfHandledObject.GetType()
                         },
                         {
                             "ExpectedType",
                             (object)typeof(DxfTextStyle)
                         },
                         {
                             "ReferencingObjectHandle",
                             (object)this.dxfLineType_0.Handle
                         }
                     }
                 });
             }
         }
     }
     this.element_0.method_0(modelBuilder.Model);
 }
コード例 #23
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfBlockUserParameter blockUserParameter = this.Object as DxfBlockUserParameter;

            if (blockUserParameter == null)
            {
                return;
            }
            blockUserParameter.Variable = (DxfHandledObject)null;
            if (this.ulong_2 == 0UL)
            {
                return;
            }
            blockUserParameter.Variable = modelBuilder.method_3(this.ulong_2);
            if (blockUserParameter.Variable != null)
            {
                return;
            }
            Class740.smethod_14(blockUserParameter.OwnerObjectSoftReference as DxfEvalGraph);
        }
コード例 #24
0
        private void method_1(Class374 modelBuilder, ulong handle, int i)
        {
            DxfModel                model                = modelBuilder.Model;
            DxfHandledObject        dxfHandledObject     = modelBuilder.method_3(handle);
            DxfViewportEntityHeader viewportEntityHeader = dxfHandledObject as DxfViewportEntityHeader;

            if (viewportEntityHeader != null)
            {
                model.ViewportEntityHeaders.Add(viewportEntityHeader);
            }
            else
            {
                if (dxfHandledObject == null)
                {
                    return;
                }
                modelBuilder.Messages.Add(new DxfMessage(DxfStatus.WrongType, Severity.Error)
                {
                    Parameters =
                    {
                        {
                            "Handle",
                            (object)handle
                        },
                        {
                            "Type",
                            (object)dxfHandledObject.GetType()
                        },
                        {
                            "ExpectedType",
                            (object)typeof(DxfAppId)
                        },
                        {
                            "Index",
                            (object)i
                        }
                    }
                });
            }
        }
コード例 #25
0
ファイル: Class309.cs プロジェクト: 15831944/WW
        private static DxfHandledObject smethod_2(
            Class374 modelBuilder,
            IExtendedDataValue value)
        {
            DxfExtendedData.DatabaseHandle databaseHandle = value as DxfExtendedData.DatabaseHandle;
            DxfHandledObject dxfHandledObject             = (DxfHandledObject)null;

            if (databaseHandle != null)
            {
                dxfHandledObject = databaseHandle.Value;
            }
            else
            {
                DxfExtendedData.String @string = value as DxfExtendedData.String;
                ulong handle = @string == null ? 0UL : DxfHandledObject.Parse(@string.Value);
                if (handle != 0UL)
                {
                    dxfHandledObject = modelBuilder.method_3(handle);
                }
            }
            return(dxfHandledObject);
        }
コード例 #26
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfInsertBase handledObject = (DxfInsertBase)this.HandledObject;

            if (this.ulong_6 != 0UL)
            {
                DxfBlock dxfBlock = modelBuilder.method_3(this.ulong_6) as DxfBlock;
                if (dxfBlock != null)
                {
                    handledObject.Block = dxfBlock;
                }
                else
                {
                    modelBuilder.Messages.Add(new DxfMessage(DxfStatus.UnresolvedReference, Severity.Warning)
                    {
                        Parameters =
                        {
                            {
                                "Type",
                                (object)"BLOCK_RECORD"
                            },
                            {
                                "Handle",
                                (object)this.ulong_6
                            },
                            {
                                "Insert",
                                (object)handledObject
                            },
                            {
                                "InsertHandle",
                                (object)handledObject.Handle
                            }
                        }
                    });
                }
            }
            else if (!string.IsNullOrEmpty(this.string_2))
            {
                handledObject.Block = modelBuilder.Model.GetBlockWithName(this.string_2);
                if (handledObject.Block == null)
                {
                    modelBuilder.Messages.Add(new DxfMessage(DxfStatus.UnresolvedReference, Severity.Warning)
                    {
                        Parameters =
                        {
                            {
                                "Type",
                                (object)"BLOCK_RECORD"
                            },
                            {
                                "Name",
                                (object)this.string_2
                            },
                            {
                                "Insert",
                                (object)handledObject
                            },
                            {
                                "InsertHandle",
                                (object)handledObject.Handle
                            }
                        }
                    });
                }
            }
            if (this.ulong_7 != 0UL)
            {
                for (Class285 entityBuilder = modelBuilder.method_6(this.ulong_7); entityBuilder != null; entityBuilder = modelBuilder.method_7(entityBuilder))
                {
                    handledObject.Attributes.Add((DxfAttribute)entityBuilder.Entity);
                    if ((long)entityBuilder.HandledObject.Handle == (long)this.ulong_8)
                    {
                        break;
                    }
                }
            }
            else if (this.list_1 != null)
            {
                foreach (ulong handle in this.list_1)
                {
                    DxfAttribute dxfAttribute = modelBuilder.method_4 <DxfAttribute>(handle);
                    if (dxfAttribute != null)
                    {
                        handledObject.Attributes.Add(dxfAttribute);
                    }
                }
            }
            if (this.ulong_9 == 0UL)
            {
                return;
            }
            DxfSequenceEnd dxfSequenceEnd = modelBuilder.method_4 <DxfSequenceEnd>(this.ulong_9);

            if (dxfSequenceEnd == null)
            {
                return;
            }
            handledObject.AttributesSeqEnd = dxfSequenceEnd;
        }
コード例 #27
0
ファイル: Class267.cs プロジェクト: 15831944/WW
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfBlockVisibilityParameter visibilityParameter = this.Object as DxfBlockVisibilityParameter;

            if (visibilityParameter == null)
            {
                return;
            }
            if (this.ulong_2 != null && this.ulong_2.Length != 0)
            {
                visibilityParameter.HandleSet = new DxfHandledObjectCollection <DxfHandledObject>(this.ulong_2.Length);
                for (int index = 0; index < this.ulong_2.Length; ++index)
                {
                    if (this.ulong_2[index] != 0UL)
                    {
                        DxfHandledObject dxfHandledObject = modelBuilder.method_3(this.ulong_2[index]);
                        if (dxfHandledObject == null)
                        {
                            throw new Exception("Cannot resolve handle.");
                        }
                        visibilityParameter.HandleSet.Add(dxfHandledObject);
                    }
                }
            }
            else
            {
                visibilityParameter.HandleSet = (DxfHandledObjectCollection <DxfHandledObject>)null;
            }
            for (int index1 = 0; index1 < visibilityParameter.VisibilityStates.Length; ++index1)
            {
                if (this.ulong_3[index1] != null && this.ulong_3[index1].Length != 0)
                {
                    int length = this.ulong_3[index1].Length;
                    visibilityParameter.VisibilityStates[index1].SelectionSet1 = new DxfHandledObjectCollection <DxfHandledObject>(length);
                    for (int index2 = 0; index2 < length; ++index2)
                    {
                        if (this.ulong_3[index1][index2] != 0UL)
                        {
                            DxfHandledObject dxfHandledObject = modelBuilder.method_3(this.ulong_3[index1][index2]);
                            if (dxfHandledObject == null)
                            {
                                throw new Exception("Cannot resolve handle.");
                            }
                            visibilityParameter.VisibilityStates[index1].SelectionSet1.Add(dxfHandledObject);
                        }
                    }
                }
                else
                {
                    visibilityParameter.VisibilityStates[index1].SelectionSet1 = (DxfHandledObjectCollection <DxfHandledObject>)null;
                }
            }
            for (int index1 = 0; index1 < visibilityParameter.VisibilityStates.Length; ++index1)
            {
                if (this.ulong_4[index1] != null && this.ulong_4[index1].Length != 0)
                {
                    int length = this.ulong_4[index1].Length;
                    visibilityParameter.VisibilityStates[index1].SelectionSet2 = new DxfHandledObjectCollection <DxfHandledObject>(length);
                    for (int index2 = 0; index2 < length; ++index2)
                    {
                        if (this.ulong_4[index1][index2] != 0UL)
                        {
                            DxfHandledObject dxfHandledObject = modelBuilder.method_3(this.ulong_4[index1][index2]);
                            if (dxfHandledObject == null)
                            {
                                throw new Exception("Cannot resolve handle.");
                            }
                            visibilityParameter.VisibilityStates[index1].SelectionSet2.Add(dxfHandledObject);
                        }
                    }
                }
                else
                {
                    visibilityParameter.VisibilityStates[index1].SelectionSet2 = (DxfHandledObjectCollection <DxfHandledObject>)null;
                }
            }
            if (visibilityParameter.HandleSet != null)
            {
                foreach (DxfHandledObject handle in visibilityParameter.HandleSet)
                {
                    if (handle == null)
                    {
                        Class740.smethod_14(visibilityParameter.OwnerObjectSoftReference as DxfEvalGraph);
                        return;
                    }
                }
            }
            if (visibilityParameter.VisibilityStates == null || visibilityParameter.VisibilityStates == null)
            {
                return;
            }
            for (int index = 0; index < visibilityParameter.VisibilityStates.Length; ++index)
            {
                if (visibilityParameter.VisibilityStates[index].SelectionSet1 != null)
                {
                    foreach (DxfHandledObject dxfHandledObject in visibilityParameter.VisibilityStates[index].SelectionSet1)
                    {
                        if (dxfHandledObject == null)
                        {
                            Class740.smethod_14(visibilityParameter.OwnerObjectSoftReference as DxfEvalGraph);
                            return;
                        }
                    }
                }
                if (visibilityParameter.VisibilityStates[index].SelectionSet2 != null)
                {
                    foreach (DxfHandledObject dxfHandledObject in visibilityParameter.VisibilityStates[index].SelectionSet2)
                    {
                        if (dxfHandledObject == null)
                        {
                            Class740.smethod_14(visibilityParameter.OwnerObjectSoftReference as DxfEvalGraph);
                            return;
                        }
                    }
                }
            }
        }
コード例 #28
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfSortEntsTable handledObject = (DxfSortEntsTable)this.HandledObject;

            if (this.ulong_2 != 0UL)
            {
                DxfHandledObject dxfHandledObject = modelBuilder.method_3(this.ulong_2);
                DxfBlock         dxfBlock         = dxfHandledObject as DxfBlock;
                if (dxfBlock != null)
                {
                    handledObject.OwnerBlock = dxfBlock;
                }
                else if (dxfHandledObject != null)
                {
                    this.dxfMessageCollection_0.Add(new DxfMessage(DxfStatus.WrongType, Severity.Warning, "ExpectedType", (object)typeof(DxfBlock))
                    {
                        Parameters =
                        {
                            {
                                "ObjectType",
                                (object)dxfHandledObject.GetType()
                            },
                            {
                                "Object",
                                (object)dxfHandledObject
                            }
                        }
                    });
                }
                else
                {
                    this.dxfMessageCollection_0.Add(new DxfMessage(DxfStatus.UnresolvedReference, Severity.Warning, "Handle", (object)this.ulong_2));
                }
            }
            foreach (Pair <ulong> pair in this.list_1)
            {
                DxfHandledObject dxfHandledObject = modelBuilder.method_3(pair.First);
                DxfEntity        entity           = dxfHandledObject as DxfEntity;
                if (entity != null)
                {
                    handledObject.method_9(entity, pair.Second);
                }
                else if (dxfHandledObject != null)
                {
                    this.dxfMessageCollection_0.Add(new DxfMessage(DxfStatus.WrongType, Severity.Warning, "ExpectedType", (object)typeof(DxfEntity))
                    {
                        Parameters =
                        {
                            {
                                "ObjectType",
                                (object)dxfHandledObject.GetType()
                            },
                            {
                                "Object",
                                (object)dxfHandledObject
                            }
                        }
                    });
                }
                else
                {
                    this.dxfMessageCollection_0.Add(new DxfMessage(DxfStatus.UnresolvedReference, Severity.Warning, "Handle", (object)this.ulong_2));
                }
            }
        }
コード例 #29
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfBlockPolarStretchAction polarStretchAction = this.Object as DxfBlockPolarStretchAction;

            if (polarStretchAction == null)
            {
                return;
            }
            if (this.ulong_3 != null && this.ulong_3.Length != 0)
            {
                polarStretchAction.RotateSelection = new DxfHandledObjectCollection <DxfHandledObject>(this.ulong_3.Length);
                for (int index = 0; index < this.ulong_3.Length; ++index)
                {
                    polarStretchAction.RotateSelection.Add(modelBuilder.method_3(this.ulong_3[index]));
                    if (polarStretchAction.RotateSelection[index] == null)
                    {
                        throw new Exception("Cannot resolve handle.");
                    }
                }
            }
            else
            {
                polarStretchAction.RotateSelection = (DxfHandledObjectCollection <DxfHandledObject>)null;
            }
            if (this.ulong_4 != null && this.ulong_4.Length != 0)
            {
                for (int index = 0; index < this.ulong_4.Length; ++index)
                {
                    polarStretchAction.StretchEntities[index].Entity = modelBuilder.method_3(this.ulong_4[index]);
                    if (polarStretchAction.StretchEntities[index].Entity == null)
                    {
                        throw new Exception("Cannot resolve handle.");
                    }
                }
            }
            else
            {
                polarStretchAction.StretchEntities = (DxfBlockPolarStretchAction.StretchEntity[])null;
            }
            if (polarStretchAction.RotateSelection != null)
            {
                foreach (DxfHandledObject dxfHandledObject in polarStretchAction.RotateSelection)
                {
                    if (dxfHandledObject == null)
                    {
                        Class740.smethod_14(polarStretchAction.OwnerObjectSoftReference as DxfEvalGraph);
                        return;
                    }
                }
            }
            if (polarStretchAction.StretchEntities == null)
            {
                return;
            }
            foreach (DxfBlockPolarStretchAction.StretchEntity stretchEntity in polarStretchAction.StretchEntities)
            {
                if (stretchEntity.Entity == null)
                {
                    Class740.smethod_14(polarStretchAction.OwnerObjectSoftReference as DxfEvalGraph);
                    break;
                }
            }
        }
コード例 #30
0
ファイル: Class319`1.cs プロジェクト: 15831944/WW
        private void method_1(Class374 modelBuilder, ulong handle, int i)
        {
            DxfHandledObject dxfHandledObject = modelBuilder.method_3(handle);
            T obj = dxfHandledObject as T;

            if ((object)obj != null)
            {
                if (this.keyedDxfHandledObjectCollection_0.Contains(obj.Name))
                {
                    string name = obj.Name;
                    do
                    {
                        obj.Name = string.Format("AUDIT_{0}", (object)modelBuilder.method_21());
                    }while (this.keyedDxfHandledObjectCollection_0.Contains(obj.Name));
                    this.keyedDxfHandledObjectCollection_0.Add(obj);
                    modelBuilder.Messages.Add(new DxfMessage(DxfStatus.AuditRepairedDuplicateName, Severity.Warning)
                    {
                        Parameters =
                        {
                            {
                                "Class",
                                (object)obj.GetType().FullName
                            },
                            {
                                "OriginalName",
                                (object)name
                            },
                            {
                                "RepairedName",
                                (object)obj.Name
                            }
                        }
                    });
                }
                else
                {
                    this.keyedDxfHandledObjectCollection_0.Add(obj);
                }
            }
            else
            {
                if (dxfHandledObject == null)
                {
                    return;
                }
                modelBuilder.Messages.Add(new DxfMessage(DxfStatus.WrongType, Severity.Error)
                {
                    Parameters =
                    {
                        {
                            "Handle",
                            (object)handle
                        },
                        {
                            "Type",
                            (object)dxfHandledObject.GetType()
                        },
                        {
                            "ExpectedType",
                            (object)typeof(DxfAppId)
                        },
                        {
                            "Index",
                            (object)i
                        }
                    }
                });
            }
        }