Example #1
0
        public static Vector3d GetVector(AlignedDimension dim)
        {
            var p1  = dim.XLine1Point;
            var p2  = dim.XLine2Point;
            var ls  = new LineSegment3d(p1, p2);
            var tp  = dim.TextPosition;
            var Vec = Utils.Vector.Get(p1, p2);

            var rotatedVec = Vec.RotateBy(Math.PI / 2, Vector3d.ZAxis);

            var ip = CADUtil.GetIntersectedPoint(tp, rotatedVec, ls);

            return(Utils.Vector.Get(ip, tp));
        }