public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfVPort handledObject = (DxfVPort)this.HandledObject; if (this.ulong_2 != 0UL) { DxfUcs dxfUcs = modelBuilder.method_4 <DxfUcs>(this.ulong_2); if (dxfUcs != null) { handledObject.Ucs = dxfUcs; } } if (this.ulong_3 != 0UL) { DxfUcs dxfUcs = modelBuilder.method_4 <DxfUcs>(this.ulong_3); if (dxfUcs != null) { handledObject.Ucs = dxfUcs; } } if (string.IsNullOrEmpty(this.string_0)) { return; } string[] strArray = this.string_0.Split('$'); if (strArray == null || strArray.Length != 2) { return; } string colorBookName = strArray[0]; string name = strArray[1]; handledObject.AmbientColor = Color.smethod_1(handledObject.AmbientColor.Data, colorBookName, name); }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfDimension entity = (DxfDimension)this.Entity; if (this.ulong_6 != 0UL) { DxfDimensionStyle dxfDimensionStyle = modelBuilder.method_4 <DxfDimensionStyle>(this.ulong_6); if (dxfDimensionStyle != null) { entity.DimensionStyle = dxfDimensionStyle; } } DxfExtendedData extendedData; if (entity.DimensionStyleOverrides != null && entity.ExtendedDataCollection.TryGetValue(modelBuilder.Model.AppIdAcad, out extendedData)) { Class309.smethod_0(entity.DimensionStyleOverrides, extendedData, modelBuilder); } if (this.ulong_7 == 0UL) { return; } DxfBlock dxfBlock = modelBuilder.method_4 <DxfBlock>(this.ulong_7); entity.Block = dxfBlock; }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfView handledObject = (DxfView)this.HandledObject; if (this.ulong_2 != 0UL) { DxfUcs dxfUcs = modelBuilder.method_4 <DxfUcs>(this.ulong_2); if (dxfUcs != null) { handledObject.Ucs = dxfUcs; } } if (this.ulong_3 == 0UL) { return; } DxfUcs dxfUcs1 = modelBuilder.method_4 <DxfUcs>(this.ulong_3); if (dxfUcs1 == null) { return; } handledObject.Ucs = dxfUcs1; }
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; } } }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); bool flag = false; DxfBlockPropertiesTable blockPropertiesTable = this.Object as DxfBlockPropertiesTable; if (this.Parameters != null && this.Parameters.Length != 0) { for (int index = 0; index < blockPropertiesTable.ColumnInformation.Length; ++index) { blockPropertiesTable.ColumnInformation[index].Parameter = modelBuilder.method_4 <DxfObject>(this.Parameters[index]); blockPropertiesTable.ColumnInformation[index].UnknownObject1 = modelBuilder.method_4 <DxfObject>(this.DxfObjects2[index]); int num1 = blockPropertiesTable.ColumnInformation[index].Parameter != null ? 1 : 0; long parameter = (long)this.Parameters[index]; if (num1 == 0) { int num2 = blockPropertiesTable.ColumnInformation[index].UnknownObject1 != null ? 1 : 0; long num3 = (long)this.DxfObjects2[index]; if (num2 == 0) { continue; } } flag = true; } } else { for (int index = 0; index < blockPropertiesTable.ColumnInformation.Length; ++index) { blockPropertiesTable.ColumnInformation[index].Parameter = (DxfObject)null; blockPropertiesTable.ColumnInformation[index].UnknownObject1 = (DxfObject)null; } } if (this.list_1 != null) { foreach (Class485 xrecordHandle in this.XRecordHandles) { xrecordHandle.ResolveReferences(modelBuilder); if (xrecordHandle.DataValueHandle == 0UL) { flag = true; } } } if (!flag) { return; } Class740.smethod_14(blockPropertiesTable.OwnerObjectSoftReference as DxfEvalGraph); }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfEntity entity = this.Entity; if (this.ulong_2 != 0UL) { DxfLayer dxfLayer = modelBuilder.method_4 <DxfLayer>(this.ulong_2); if (dxfLayer != null) { entity.Layer = dxfLayer; } } if (this.nullable_0.HasValue) { byte? nullable0 = this.nullable_0; ref byte?local = ref nullable0; byte valueOrDefault = local.GetValueOrDefault(); if (local.HasValue) { switch (valueOrDefault) { case 0: entity.LineType = modelBuilder.Model.ByLayerLineType; break; case 1: entity.LineType = modelBuilder.Model.ByBlockLineType; break; case 2: entity.LineType = modelBuilder.Model.ContinuousLineType; break; case 3: if (this.ulong_3 != 0UL) { DxfLineType dxfLineType = modelBuilder.method_4 <DxfLineType>(this.ulong_3); if (dxfLineType != null) { entity.LineType = dxfLineType; break; } break; } break; } } }
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); } } }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfBlockStretchAction blockStretchAction = this.Object as DxfBlockStretchAction; if (this.ulong_3 != null && this.ulong_3.Length != 0) { for (int index = 0; index < this.ulong_3.Length; ++index) { blockStretchAction.StretchEntities[index].Entity = modelBuilder.method_4 <DxfHandledObject>(this.ulong_3[index]); } } else { blockStretchAction.StretchEntities = (DxfBlockPolarStretchAction.StretchEntity[])null; } if (blockStretchAction.StretchEntities == null) { return; } foreach (DxfBlockPolarStretchAction.StretchEntity stretchEntity in blockStretchAction.StretchEntities) { if (stretchEntity.Entity == null) { Class740.smethod_14(blockStretchAction.OwnerObjectSoftReference as DxfEvalGraph); break; } } }
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); } }
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); } } }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfEvalGraph evalGraph = this.Object as DxfEvalGraph; if (evalGraph.Nodes == null) { return; } int num = Class740.smethod_12(evalGraph.Nodes); for (int index = 0; index < num; ++index) { evalGraph.Nodes[index].Expression = modelBuilder.method_4 <DxfObject>(this.ExpressionHandles[index]); DxfObject expression = evalGraph.Nodes[index].Expression; } foreach (DxfEvalGraph.GraphNode node in evalGraph.Nodes) { if (node.Expression == null) { Class740.smethod_14(evalGraph); break; } } }
public void ResolveReferences(Class374 modelBuilder) { if (this.ulong_0 == 0UL) { return; } this.dxfTableBorder_0.method_0(modelBuilder.method_4 <DxfLineType>(this.ulong_0)); }
public void ResolveReferences(Class374 modelBuilder) { if (this.ulong_0 == 0UL) { return; } this.ownerIdBase_0.Value = modelBuilder.method_4 <DxfObject>(this.ulong_0); }
public void ResolveReferences(Class374 modelBuilder) { if (this.ulong_0 == 0UL) { return; } this.layerReference_0.Value = modelBuilder.method_4 <DxfLayer>(this.ulong_0); }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); if (this.ulong_2 == 0UL) { return; } ((DxfDictionaryWithDefault)this.HandledObject).DefaultEntry = modelBuilder.method_4 <DxfObject>(this.ulong_2); }
private static void smethod_0(Class374 modelBuilder, ulong handle) { DxfBlock block = modelBuilder.method_4 <DxfBlock>(handle); if (block == null) { return; } modelBuilder.Model.method_38(block, (IList <DxfMessage>)modelBuilder.Messages, true); }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfLeader entity = (DxfLeader)this.Entity; if (this.ulong_7 != 0UL) { DxfDimensionStyle dxfDimensionStyle = modelBuilder.method_4 <DxfDimensionStyle>(this.ulong_7); if (dxfDimensionStyle != null) { entity.DimensionStyle = dxfDimensionStyle; } } DxfExtendedData extendedData; if (entity.DimensionStyleOverrides != null && entity.ExtendedDataCollection.TryGetValue(modelBuilder.Model.AppIdAcad, out extendedData)) { Class309.smethod_0(entity.DimensionStyleOverrides, extendedData, modelBuilder); } if (this.nullable_3.HasValue) { entity.DimensionStyleOverrides.ArrowSize = this.nullable_3.Value / entity.DimensionStyleOverrides.ScaleFactor; } if (this.ulong_6 != 0UL) { entity.AssociatedAnnotation = modelBuilder.method_4 <DxfEntity>(this.ulong_6); } if (!this.CalculateHookLinePoint) { return; } int count = entity.Vertices.Count; entity.Vertices.Add(entity.Vertices[count - 1]); double num = entity.DimensionStyleOverrides == null ? 0.0 : entity.DimensionStyleOverrides.ArrowSize; if (entity.HookLineDirection != HookLineDirection.Same) { num = -num; } entity.Vertices[count - 1] += entity.HorizontalDirection * num; }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfViewport dxfViewport = modelBuilder.method_4 <DxfViewport>(this.ViewportHandle); if (dxfViewport == null) { return; } ((DxfHatchViewContextData)this.HandledObject).dxfObjectReference_4 = DxfObjectReference.GetReference((IDxfHandledObject)dxfViewport); }
public void ResolveReferences(Class374 modelBuilder) { if (this.ulong_0 != 0UL) { this.class984_0.TextStyle = modelBuilder.method_4 <DxfTextStyle>(this.ulong_0); } if (!this.nullable_0.HasValue) { return; } this.class984_0.CellFormat = DxfValueFormat.Create(this.nullable_0, this.nullable_1, this.string_0); }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfPolyfaceMesh entity = (DxfPolyfaceMesh)this.Entity; if (entity != null) { if (this.ulong_6 != 0UL) { for (Class285 entityBuilder = modelBuilder.method_6(this.ulong_6); entityBuilder != null; entityBuilder = modelBuilder.method_7(entityBuilder)) { Class304.smethod_0(entity, entityBuilder); if ((long)entityBuilder.HandledObject.Handle == (long)this.ulong_7) { break; } } for (Class285 entityBuilder = modelBuilder.method_6(this.ulong_6); entityBuilder != null; entityBuilder = modelBuilder.method_7(entityBuilder)) { this.method_2(modelBuilder, entity, entityBuilder); if ((long)entityBuilder.HandledObject.Handle == (long)this.ulong_7) { break; } } } else if (this.list_1 != null) { for (int index = 0; index < this.list_1.Count; ++index) { ulong handle = this.list_1[index]; Class304.smethod_0(entity, modelBuilder.method_6(handle)); } for (int index = 0; index < this.list_1.Count; ++index) { ulong handle = this.list_1[index]; this.method_2(modelBuilder, entity, modelBuilder.method_6(handle)); } } } if (this.ulong_8 == 0UL) { return; } DxfSequenceEnd dxfSequenceEnd = modelBuilder.method_4 <DxfSequenceEnd>(this.ulong_8); if (dxfSequenceEnd == null) { return; } entity.SeqEnd = dxfSequenceEnd; }
public void ResolveReferences(Class374 modelBuilder) { this.dxfContentFormat_0.method_4(DxfValueFormat.Create(this.valueDataType_0, this.valueUnitType_0)); if (!string.IsNullOrEmpty(this.string_0)) { this.dxfContentFormat_0.ValueFormat._FormatString = this.string_0; } if (this.ulong_0 == 0UL) { return; } this.dxfContentFormat_0.method_0(modelBuilder.method_4 <DxfTextStyle>(this.ulong_0)); }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfViewport entity = (DxfViewport)this.Entity; if (modelBuilder.Version >= DxfVersion.Dxf12 && modelBuilder.Version <= DxfVersion.Dxf14) { entity.method_18(modelBuilder.Model); } if (this.list_1 != null) { foreach (ulong handle in this.list_1) { DxfLayer dxfLayer = modelBuilder.method_4 <DxfLayer>(handle); if (dxfLayer != null) { entity.FrozenLayers.Add(dxfLayer); } } } if (this.ulong_6 != 0UL) { entity.ClippingBoundaryEntity = modelBuilder.method_4 <DxfEntity>(this.ulong_6); } if (this.ulong_7 != 0UL) { entity.Ucs = modelBuilder.method_4 <DxfUcs>(this.ulong_7); } if (this.ulong_8 != 0UL) { entity.Ucs = modelBuilder.method_4 <DxfUcs>(this.ulong_8); } if (this.ulong_9 == 0UL) { return; } entity.ViewportEntityHeader = modelBuilder.method_4 <DxfViewportEntityHeader>(this.ulong_9); }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfFieldList handledObject = (DxfFieldList)this.HandledObject; foreach (ulong handle in this.list_1) { DxfField dxfField = modelBuilder.method_4 <DxfField>(handle); if (dxfField != null) { handledObject.Fields.Add(dxfField); } } }
public void ResolveReferences(Class374 modelBuilder) { foreach (Interface10 nterface10 in this.list_1) { nterface10.ResolveReferences(modelBuilder); } if (this.ulong_0 != 0UL) { this.class551_0.TableStyle = modelBuilder.method_4 <DxfTableStyle>(this.ulong_0); } modelBuilder.ResolveReferences((ICollection <Interface10>) this.list_0); this.class1000_0.ResolveReferences(modelBuilder); this.class1000_1.ResolveReferences(modelBuilder); this.class1000_2.ResolveReferences(modelBuilder); }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); if (this.ulong_6 == 0UL) { return; } DxfTextStyle dxfTextStyle = modelBuilder.method_4 <DxfTextStyle>(this.ulong_6); if (dxfTextStyle == null) { return; } ((DxfText)this.Entity).Style = dxfTextStyle; }
public void ResolveReferences(Class374 modelBuilder) { if (this.list_0 == null) { return; } foreach (ulong handle in this.list_0) { DxfEntity dxfEntity = modelBuilder.method_4 <DxfEntity>(handle); if (modelBuilder.LoadUnknownObjects || !(dxfEntity is DxfUnknownEntity)) { this.boundaryPath_0.BoundaryObjects.Add(dxfEntity); } } }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); if (this.DynamicBlockHandle == 0UL) { return; } DxfBlock dxfBlock = modelBuilder.method_4 <DxfBlock>(this.DynamicBlockHandle); if (dxfBlock == null) { throw new Exception("Cannot resolve handle."); } this.BlockRepresentationData.DynamicBlock = dxfBlock; }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); if (this.BlockName != null) { ((DxfDimensionObjectContextData)this.HandledObject).Block = modelBuilder.Model.GetBlockWithName(this.BlockName); } else { if (this.BlockHandle == 0UL) { return; } ((DxfDimensionObjectContextData)this.HandledObject).Block = modelBuilder.method_4 <DxfBlock>(this.BlockHandle); } }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfMLine entity = (DxfMLine)this.Entity; if (this.ulong_6 == 0UL) { return; } DxfMLineStyle dxfMlineStyle = modelBuilder.method_4 <DxfMLineStyle>(this.ulong_6); if (dxfMlineStyle == null) { return; } entity.Style = dxfMlineStyle; }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfRasterImage handledObject = (DxfRasterImage)this.HandledObject; if (this.ulong_6 == 0UL) { return; } DxfImageDef imageDef = modelBuilder.method_4 <DxfImageDef>(this.ulong_6); if (imageDef == null) { return; } handledObject.SetImageDef(imageDef, false); }