Exemple #1
0
 /// <summary>
 /// Convert a Nucleus arc to a Revit one
 /// </summary>
 /// <param name="arc"></param>
 /// <returns></returns>
 public static AD.Arc Convert(FB.Arc arc)
 {
     if (arc.Closed) //Circle
     {
         AD.Plane plane = Convert(arc.Circle.Plane());
         return(AD.Arc.Create(plane, arc.Circle.Radius, 0, 2 * Math.PI));
     }
     else
     {
         return(AD.Arc.Create(Convert(arc.StartPoint),
                              Convert(arc.EndPoint),
                              Convert(arc.PointOnArc)));
     }
 }
Exemple #2
0
 /// <summary>
 /// Creates an arc which is a copy of an existing one
 /// </summary>
 /// <param name="other"></param>
 public Arc(Arc other)
     : this(other.StartPoint, other.PointOnArc, other.EndPoint, other.Attributes)
 {
 }