Exemplo n.º 1
0
        public static SerializableColor FromAcadColor(Autodesk.AutoCAD.Colors.Color color)
        {
            var result = new SerializableColor()
            {
                ColorMethod = color.ColorMethod,
                ColorIndex  = color.ColorIndex,
                Red         = color.ColorValue.R,
                Green       = color.ColorValue.G,
                Blue        = color.ColorValue.B
            };

            return(result);
        }
Exemplo n.º 2
0
        public SpreadPointSettings()
        {
            // Compatible with South CASS.
            LayerName  = "ZDH";
            LayerColor = SerializableColor.FromAcadColor(Autodesk.AutoCAD.Colors.Color.FromColorIndex(ColorMethod.ByAci, 1));
            // BYLAYER
            Color = SerializableColor.FromAcadColor(Autodesk.AutoCAD.Colors.Color.FromColorIndex(ColorMethod.ByLayer, 256));

            // Annotation x-offset and y-offset.
            AnnotationXOffset = 0.2500;
            AnnotationYOffset = -0.3750;
            Scale             = 1.0;

            // Font height
            FontHeight = 1.000;

            // Text style name
            TextStyleName = "HZ";

            // Text style font file name
            TextStyleFontFileName    = "rs.shx";
            TextStyleBigFontFileName = "hztxt.shx";
        }