private void method_3( Class374 modelBuilder, DxfPolyline3DSpline spline, Class285 entityBuilder) { if (entityBuilder == null) { return; } Class301 class301 = entityBuilder as Class301; if (class301 == null) { this.method_4(modelBuilder, (DxfPolyline3DBase)spline, entityBuilder); } else { DxfVertex3D handledObject = (DxfVertex3D)class301.HandledObject; if (class301.IsSplineControlPoint) { spline.ControlPoints.Add(handledObject); } else { spline.ApproximationPoints.Add(handledObject); } } }
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 new void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); if (this.CellStyle.Id != 0) { if (this.CellStyle.Id == 1) { if (string.IsNullOrEmpty(this.CellStyle.Name)) { this.CellStyle.Name = "_TITLE"; } } else if (this.CellStyle.Id == 2) { if (string.IsNullOrEmpty(this.CellStyle.Name)) { this.CellStyle.Name = "_HEADER"; } } else if (this.CellStyle.Id == 3 && string.IsNullOrEmpty(this.CellStyle.Name)) { this.CellStyle.Name = "_DATA"; } } modelBuilder.ResolveReferences((ICollection <Interface10>) this.linkedList_0); }
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); }
private void method_4( Class374 modelBuilder, DxfPolyline3DBase polyline, Class285 entityBuilder) { modelBuilder.Messages.Add(new DxfMessage(DxfStatus.InvalidPolylineVertexEntityType, Severity.Error, "EntityType", entityBuilder.Entity == null ? (object)"null" : (object)entityBuilder.Entity.GetType().Name) { Parameters = { { "ExpectedEntityType", (object)typeof(DxfVertex3D).Name }, { "target", (object)polyline }, { "VertexObject", (object)entityBuilder.Entity } } }); DxfBlock objectSoftReference = polyline.OwnerObjectSoftReference as DxfBlock; this.IsValid = false; if (objectSoftReference == null) { return; } ((Class318)modelBuilder.method_5(objectSoftReference.Handle)).method_1((DxfEntity)polyline); }
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); 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); 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; } } }
public void ResolveReferences(Class374 modelBuilder, DxfTableStyle tableStyle) { DxfCellStyleMap dxfCellStyleMap = tableStyle.method_17(); if (dxfCellStyleMap != null) { dxfCellStyleMap.CellStyles.Clear(); foreach (DxfTableCellStyle cellStyle in (Collection <DxfTableCellStyle>)tableStyle.CellStyles) { dxfCellStyleMap.CellStyles.Add(cellStyle); } } foreach (Class567 class567 in this.list_1) { int index1 = -1; for (int index2 = tableStyle.CellStyles.Count - 1; index2 >= 0; --index2) { if (string.Compare(tableStyle.CellStyles[index2].Name, class567.CellStyle.Name, StringComparison.InvariantCultureIgnoreCase) == 0) { index1 = index2; break; } } class567.ResolveReferences(modelBuilder); if (index1 >= 0) { tableStyle.CellStyles[index1] = class567.CellStyle; } else { tableStyle.CellStyles.Add(class567.CellStyle); } } }
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 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); 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); 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 override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); foreach (Class659 class659 in this.list_1) { class659.ResolveReferences(modelBuilder); } DxfHatch handledObject = (DxfHatch)this.HandledObject; if (!handledObject.Associative) { return; } bool flag = false; foreach (DxfHatch.BoundaryPath boundaryPath in handledObject.BoundaryPaths) { if (boundaryPath.BoundaryObjects.Count > 0) { flag = true; break; } } if (flag) { return; } handledObject.Associative = false; }
public void ResolveReferences(Class374 modelBuilder) { if (this.ulong_0 == 0UL) { return; } this.databaseHandle_0.Value = modelBuilder.method_3(this.ulong_0); }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); foreach (Class318 blockBuilder in modelBuilder.BlockBuilders) { modelBuilder.Model.method_38((DxfBlock)blockBuilder.HandledObject, (IList <DxfMessage>)modelBuilder.Messages, true); } }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); foreach (Interface10 nterface10 in this.linkedList_1) { nterface10.ResolveReferences(modelBuilder); } }
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.dxfValue_0.SetValue(modelBuilder.method_3(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.class758_0 == null) { return; } this.class758_0.ResolveReferences(modelBuilder); }
public Class887(DwgReader dwgReader, Interface30 bitStream, Class374 builder) { this.dwgReader_0 = dwgReader; this.interface30_0 = bitStream; this.interface30_1 = bitStream; this.interface30_2 = bitStream; this.interface30_3 = bitStream; this.class374_0 = builder; }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); if (modelBuilder.FileFormat != FileFormat.Dwg || modelBuilder.Model.DictionaryRoot != null || this.OwnerHandle != 0UL) { return; } modelBuilder.Model.DictionaryRoot = (DxfDictionary)this.Object; }
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); }
public void ResolveReferences(Class374 modelBuilder) { DxfHandledObject dxfHandledObject = modelBuilder.method_3(this.ulong_0); if (dxfHandledObject == null) { return; } this.dxfTypedObjectReference_0.ObjectReference = dxfHandledObject.Reference; }
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); Class322.Class324.smethod_0(modelBuilder, this.ulong_2); Class322.Class324.smethod_0(modelBuilder, this.ulong_3); foreach (ulong handle in this.list_1) { Class322.Class324.smethod_0(modelBuilder, handle); } }
private static DxfBlock smethod_1(Class374 modelBuilder, string blockName) { DxfBlock blockWithName = modelBuilder.Model.GetBlockWithName(blockName); if (blockWithName == null && !blockName.StartsWith("_")) { blockWithName = modelBuilder.Model.GetBlockWithName("_" + blockName); } return(blockWithName); }
public void ResolveReferences(Class374 modelBuilder) { DxfAppId appId; if (string.IsNullOrEmpty(this.string_0) || !modelBuilder.Model.AppIds.TryGetValue(this.string_0, out appId)) { return; } this.dxfExtendedDataCollection_0.method_0(this.dxfExtendedData_0, appId); }
public override void Visit(Class374 c) { }
public abstract void Visit(Class374 c);