Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66835

Re: How to fire circle command in revit.

$
0
0

Hi  ,

As i told before there is no direct method to fire circle command directly.

My suggestion is

1)Get the center point for circle using

 XYZ CP = uidoc.Selection.PickPoint(ObjectSnapTypes.None,"Center point");

2)Get the next point using the same method which will help you to find the radius

XYZ Radius = uidoc.Selection.PickPoint(ObjectSnapTypes.None, "Radius point");

3)From the points,determine the radius and Assign the radius value to double.

4)then create arc using the 

Arc.Create(p, radius, -endAngle, startAngle);
Arc.Create(p, radius, startAngle, endAngle);

Viewing all articles
Browse latest Browse all 66835

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>