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); }
private void method_3(Class374 modelBuilder, DxfPolyfaceMesh mesh, int vertexIndex) { DxfBlock objectSoftReference = mesh.OwnerObjectSoftReference as DxfBlock; if (objectSoftReference != null) { ((Class318)modelBuilder.method_5(objectSoftReference.Handle)).method_1((DxfEntity)mesh); } this.IsValid = false; modelBuilder.Messages.Add(new DxfMessage(DxfStatus.InvalidMeshFaceVertexIndex, Severity.Error, "target", (object)mesh) { Parameters = { { "VertexIndex", (object)vertexIndex } } }); }
public override void ResolveReferences(Class374 modelBuilder) { base.ResolveReferences(modelBuilder); DxfBlock handledObject1 = (DxfBlock)this.HandledObject; if (this.ulong_2 != 0UL) { handledObject1.BlockBegin = modelBuilder.method_4 <DxfBlockBegin>(this.ulong_2); } if (this.ulong_6 != 0UL) { Class284 class284 = modelBuilder.method_5(this.ulong_6) as Class284; if (class284 != null) { if ((long)class284.AssociatedBockRecordHandle == (long)handledObject1.Handle) { DxfLayout handledObject2 = (DxfLayout)class284.HandledObject; if (handledObject2 != null) { handledObject1.Layout = handledObject2; } } else { modelBuilder.Messages.Add(new DxfMessage(DxfStatus.BlockLayoutReferenceCorrupt, Severity.Warning, "BlockHandle", (object)handledObject1.Handle) { Parameters = { { "BlockName", (object)handledObject1.Name } } }); } } } if (this.ulong_3 != 0UL && this.ulong_4 != 0UL) { for (Class285 entityBuilder = modelBuilder.method_6(this.ulong_3); entityBuilder != null; entityBuilder = modelBuilder.method_7(entityBuilder)) { DxfEntity entity = entityBuilder.Entity; this.method_3(modelBuilder, handledObject1, entity); if ((long)entityBuilder.HandledObject.Handle == (long)this.ulong_4) { break; } } } else if (this.list_1 != null) { foreach (ulong handle in this.list_1) { Class285 class285 = modelBuilder.method_6(handle); if (class285 != null) { DxfEntity entity = class285.Entity; this.method_3(modelBuilder, handledObject1, entity); } } } if (this.ulong_5 != 0UL) { handledObject1.BlockEnd = modelBuilder.method_4 <DxfBlockEnd>(this.ulong_5); } if (handledObject1.ExtensionDictionary == null || !handledObject1.ExtensionDictionary.Entries.Contains("ACAD_UNLOAD")) { return; } handledObject1.IsExternalReferenceUnloaded = true; }