protected SafeObject( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { if (info == null) { throw new System.ArgumentNullException("info"); } Matrix3d ucs = new Matrix3d((double[])info.GetValue("Ucs", typeof(double[]))); Point3d position = new Point3d((double[])info.GetValue("Position", typeof(double[]))); _arrow = new Arrow(position, ucs); _arrow._destPoint = new Point3d((double[])info.GetValue("DestPoint", typeof(double[]))); _arrow._jigPoint = new Point3d((double[])info.GetValue("JigPoint", typeof(double[]))); /*_arrow._horizontPline.EditPolylineIneertPoints( * ((double[][])info.GetValue("HorizontPline", typeof(double[][]))).Select<double[],Point3d>(arr => * * new Point3d(arr) * )); * * _arrow._verticalPline.EditPolylineIneertPoints( * ((double[][])info.GetValue("VerticalPline", typeof(double[][]))).Select<double[], Point3d>(arr => * * new Point3d(arr) * ));*/ _arrow.Calculate(_arrow._destPoint); _arrow.Redirect(_arrow._jigPoint); }
public void DisplayLowerArrow(Point3d destationPointUcs) { _arrowLower = new Arrow(_axisVector); double value = _arrowLower.Calculate(destationPointUcs.TransformBy(TransformToArrowBlock)); var symbs = _createAttrute(_arrowLower.ArrowLine.GetCenterPoint(), "Н", _arrowLower.LineTarnsform).ToList(); _arrowLower.AppendArrowSymbols(symbs); symbs.Add((Entity)_arrowLower.ArrowLine.Clone()); Dictionary <string, string> attrInfo = new Dictionary <string, string>(); attrInfo.Add("отклонение_Н", Math.Abs((value * 1000)).ToString("#0")); _setEntitiesToBlock(_insertPointUcs, symbs, attrInfo, true); }