public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfLayout dxfLayout = (DxfLayout)from; this.bool_0 = dxfLayout.bool_0; this.string_8 = dxfLayout.string_8; this.layoutOptions_0 = dxfLayout.layoutOptions_0; this.int_0 = dxfLayout.int_0; this.rectangle2D_1 = dxfLayout.rectangle2D_1; this.point3D_0 = dxfLayout.point3D_0; this.point3D_1 = dxfLayout.point3D_1; this.point3D_2 = dxfLayout.point3D_2; this.double_7 = dxfLayout.double_7; this.Ucs = Class906.smethod_2(cloneContext, dxfLayout.Ucs); this.orthographicType_0 = dxfLayout.orthographicType_0; DxfBlock ownerBlock = dxfLayout.OwnerBlock; if (ownerBlock != null && ownerBlock.BlockBegin != null) { this.OwnerBlock = Class906.smethod_0(cloneContext, ownerBlock, true); } foreach (DxfHandledObject dxfHandledObject in (DxfHandledObjectCollection <DxfViewport>)dxfLayout.dxfViewportCollection_0) { this.dxfViewportCollection_0.Add((DxfViewport)dxfHandledObject.Clone(cloneContext)); } this.LastActiveViewport = (DxfHandledObject)cloneContext.GetExistingClone((IGraphCloneable)dxfLayout.LastActiveViewport); switch (dxfLayout.Handle) { case 30: case 34: this.SetHandle(dxfLayout.Handle); break; } }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfBlockRepresentationData representationData = (DxfBlockRepresentationData)from; this.Version = representationData.Version; this.DynamicBlock = Class906.smethod_0(cloneContext, representationData.DynamicBlock, false); }
public void ResolveReferences(CloneContext context) { this.dxfDimensionStyle_1.ArrowBlock = Class906.smethod_0(context, this.dxfDimensionStyle_0.ArrowBlock, false); this.dxfDimensionStyle_1.FirstArrowBlock = Class906.smethod_0(context, this.dxfDimensionStyle_0.FirstArrowBlock, false); this.dxfDimensionStyle_1.SecondArrowBlock = Class906.smethod_0(context, this.dxfDimensionStyle_0.SecondArrowBlock, false); this.dxfDimensionStyle_1.LeaderArrowBlock = Class906.smethod_0(context, this.dxfDimensionStyle_0.LeaderArrowBlock, false); this.dxfDimensionStyle_1.TextStyle = Class906.GetTextStyle(context, this.dxfDimensionStyle_0.TextStyleInternal); this.dxfDimensionStyle_1.DimensionLineLineType = Class906.GetLineType(context, this.dxfDimensionStyle_0.DimensionLineLineType); this.dxfDimensionStyle_1.FirstExtensionLineLineType = Class906.GetLineType(context, this.dxfDimensionStyle_0.FirstExtensionLineLineType); this.dxfDimensionStyle_1.SecondExtensionLineLineType = Class906.GetLineType(context, this.dxfDimensionStyle_0.SecondExtensionLineLineType); }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfSortEntsTable dxfSortEntsTable = (DxfSortEntsTable)from; this.OwnerBlock = cloneContext.SourceModel != cloneContext.TargetModel ? Class906.smethod_0(cloneContext, dxfSortEntsTable.OwnerBlock, false) : (DxfBlock)cloneContext.GetExistingClone((IGraphCloneable)dxfSortEntsTable.OwnerBlock); foreach (DxfEntitySortWrapper from1 in dxfSortEntsTable.list_0) { DxfEntitySortWrapper entitySortWrapper = new DxfEntitySortWrapper(); entitySortWrapper.CopyFrom(cloneContext, from1); this.list_0.Add(entitySortWrapper); this.dictionary_0[entitySortWrapper.Entity.Reference] = entitySortWrapper; } }
private void CopyFrom(DxfInsertBase from, CloneContext cloneContext) { base.CopyFrom((DxfHandledObject)from, cloneContext); this.Block = Class906.smethod_0(cloneContext, from.Block, false); this.activeDxfHandledObjectCollection_0.Clear(); foreach (DxfHandledObject dxfHandledObject in (DxfHandledObjectCollection <DxfAttribute>)from.activeDxfHandledObjectCollection_0) { this.activeDxfHandledObjectCollection_0.Add((DxfAttribute)dxfHandledObject.Clone(cloneContext)); } this.insertionPoint = from.insertionPoint; this.scaleFactor = from.scaleFactor; this.rotation = from.rotation; this.vector3D_0 = from.vector3D_0; this.AttributesSeqEnd.CopyFrom((DxfHandledObject)from.AttributesSeqEnd, cloneContext); }
private void method_8(CloneContext context, DxfMLeaderStyle from) { this.contentType_0 = from.contentType_0; this.drawMLeaderOrder_0 = from.drawMLeaderOrder_0; this.drawLeaderOrder_0 = from.drawLeaderOrder_0; this.int_0 = from.int_0; this.double_0 = from.double_0; this.double_1 = from.double_1; this.leaderType_0 = from.leaderType_0; this.color_0 = from.color_0; this.LineType = Class906.GetLineType(context, from.LineType); this.int_1 = from.int_1; this.bool_0 = from.bool_0; this.double_2 = from.double_2; this.bool_1 = from.bool_1; this.double_3 = from.double_3; this.string_0 = from.string_0; this.ArrowHeadBlock = Class906.smethod_0(context, from.ArrowHeadBlock, false); this.double_4 = from.double_4; this.string_1 = from.string_1; this.TextStyle = Class906.GetTextStyle(context, from.TextStyle); this.textAttachment_0 = from.textAttachment_0; this.textAngleType_0 = from.textAngleType_0; this.textAlignment_0 = from.textAlignment_0; this.textAttachment_1 = from.textAttachment_1; this.color_1 = from.color_1; this.double_5 = from.double_5; this.bool_2 = from.bool_2; this.bool_3 = from.bool_3; this.double_6 = from.double_6; this.Block = Class906.smethod_0(context, from.Block, false); this.color_2 = from.color_2; this.vector3D_0 = from.vector3D_0; this.bool_4 = from.bool_4; this.double_7 = from.double_7; this.bool_5 = from.bool_5; this.blockConnectionType_0 = from.blockConnectionType_0; this.double_8 = from.double_8; this.bool_6 = from.bool_6; this.bool_7 = from.bool_7; this.double_9 = from.double_9; this.textAttachmentDirection_0 = from.textAttachmentDirection_0; this.textAttachment_2 = from.textAttachment_2; this.textAttachment_3 = from.textAttachment_3; this.bool_8 = from.bool_8; }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfGeoData dxfGeoData = (DxfGeoData)from; this.int_0 = dxfGeoData.int_0; this.designCoordinatesType_0 = dxfGeoData.designCoordinatesType_0; this.HostBlock = Class906.smethod_0(cloneContext, dxfGeoData.HostBlock, false); this.point3D_0 = dxfGeoData.point3D_0; this.point3D_1 = dxfGeoData.point3D_1; this.vector2D_0 = dxfGeoData.vector2D_0; this.vector2D_1 = dxfGeoData.vector2D_1; this.unitsValue_0 = dxfGeoData.unitsValue_0; this.unitsValue_1 = dxfGeoData.unitsValue_1; this.vector3D_0 = dxfGeoData.vector3D_0; this.scaleEstimationMethod_0 = dxfGeoData.scaleEstimationMethod_0; this.bool_0 = dxfGeoData.bool_0; this.double_0 = dxfGeoData.double_0; this.double_1 = dxfGeoData.double_1; this.double_2 = dxfGeoData.double_2; this.string_0 = dxfGeoData.string_0; this.string_1 = dxfGeoData.string_1; this.string_2 = dxfGeoData.string_2; this.string_3 = dxfGeoData.string_3; this.string_4 = dxfGeoData.string_4; this.list_0.Clear(); foreach (GeoMeshPoint geoMeshPoint in dxfGeoData.list_0) { this.list_0.Add(new GeoMeshPoint(geoMeshPoint.Source, geoMeshPoint.Destination)); } this.list_1.Clear(); foreach (GeoMeshFace geoMeshFace in dxfGeoData.list_1) { this.list_1.Add(new GeoMeshFace(geoMeshFace.FaceIndex1, geoMeshFace.FaceIndex2, geoMeshFace.FaceIndex3)); } }
public void Visit(DxfBlock value) { this.dxfHandledObject_0 = (DxfHandledObject)Class906.smethod_0(this.cloneContext_0, value, false); }