Exemplo n.º 1
0
        public override void ReadProperty()
        {
            switch (Converter.FCode)
            {
            //Layer
            case 8:
                layer = Converter.LayerByName(Converter.FValue);
                //if(layer != null) layer.used = true;
                break;

            //Coordinates
            case 10:
                Point1.X = Convert.ToSingle(Converter.FValue, Converter.N);
                break;

            case 20:
                Point1.Y = Convert.ToSingle(Converter.FValue, Converter.N);
                break;

            //Color
            case 62:
                FColor = CADImage.IntToColor(Convert.ToInt32(Converter.FValue, Converter.N));
                break;
            }
        }
Exemplo n.º 2
0
        public override void ReadProperty()
        {
            switch (Converter.FCode)
            {
            case 2:
                FBlock = Converter.FindBlock(Converter.FValue);
                break;

            case 41:
                Scale.X = Converter.FloatValue();
                break;

            case 42:
                Scale.Y = Converter.FloatValue();
                break;

            case 62:
                color = CADImage.IntToColor(Convert.ToInt32(Converter.FValue, Converter.N));
                break;

            default:
                base.ReadProperty();
                break;
            }
        }
Exemplo n.º 3
0
        public override void ReadProperty()
        {
            switch (Converter.FCode)
            {
            case 70:
                flags = (byte)Converter.FloatValue();
                break;

            case 2:
                name = "" + Converter.FValue;
                break;

            case 62:
                color = CADImage.IntToColor(Convert.ToInt32(Converter.FValue, Converter.N));
                break;
            }
        }