Beispiel #1
0
        internal static DxfBlock smethod_3(DxfModel model)
        {
            string str = "*Paper_Space";
            int    num = 0;

            while (model.AnonymousBlocks.Contains(str))
            {
                str = "*Paper_Space" + num.ToString();
                ++num;
            }
            return(DxfBlock.smethod_4(model, false, str, 0UL, 0UL, 0UL, true, true));
        }
Beispiel #2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlock dxfBlock = (DxfBlock)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfBlock == null)
            {
                dxfBlock = new DxfBlock(false);
                this.RegisterClone(cloneContext, (IGraphCloneable)dxfBlock);
                dxfBlock.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfBlock);
        }
Beispiel #3
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlock dxfBlock = (DxfBlock)from;

            this.blockFlags_0       = dxfBlock.blockFlags_0;
            this.blockStatusFlags_0 = dxfBlock.blockStatusFlags_0;
            this.vector3D_0         = dxfBlock.vector3D_0;
            this.string_0           = dxfBlock.string_0;
            this.string_1           = dxfBlock.string_1;
            this.string_2           = dxfBlock.string_2;
            this.BlockBegin         = (DxfBlockBegin)dxfBlock.BlockBegin.Clone(cloneContext);
            this.BlockEnd           = (DxfBlockEnd)dxfBlock.BlockEnd.Clone(cloneContext);
            if (object.ReferenceEquals((object)dxfBlock.dxfEntityCollection_0, (object)cloneContext.SourceModel.Entities))
            {
                this.method_10(cloneContext.TargetModel.Entities);
            }
            this.drawingUnits_0 = dxfBlock.drawingUnits_0;
            this.bool_0         = dxfBlock.bool_0;
            this.bool_1         = dxfBlock.bool_1;
        }
Beispiel #4
0
            public DxfModel method_0(DxfBlock block)
            {
                DxfModel dxfModel1 = (DxfModel)null;

                if (File.Exists(block.ExternalReference))
                {
                    dxfModel1 = CadReader.Read(block.ExternalReference);
                }
                else
                {
                    string str;
                    if (Path.IsPathRooted(block.ExternalReference))
                    {
                        str = Path.Combine(this.string_0, Path.GetFileName(block.ExternalReference));
                    }
                    else
                    {
                        str = Path.Combine(this.string_0, block.ExternalReference);
                        if (!File.Exists(str))
                        {
                            str = Path.Combine(this.string_0, Path.GetFileName(block.ExternalReference));
                        }
                    }
                    foreach (DxfModel dxfModel2 in this.dictionary_0.Values)
                    {
                        if (dxfModel2.Filename == str)
                        {
                            dxfModel1 = dxfModel2;
                            break;
                        }
                    }
                    if (dxfModel1 == null && File.Exists(str))
                    {
                        dxfModel1 = CadReader.Read(str);
                    }
                }
                return(dxfModel1);
            }
Beispiel #5
0
 public Class751(DxfBlock from, DxfBlock to)
 {
     this.dxfBlock_0 = from;
     this.dxfBlock_1 = to;
 }