I'm trying to draw a series of circles in 2D using the Revit 2015 API. Is there a method that will take the radius and the center point to create a circle? I've found the static method Arc.Create, but the options for the method don't entirely match what I have to work with. Can anyone steer me in the right direction?
Thanks in advance,
Runnin
Dear Runnin,
Arc.Create it is. Sorry if the input does not exactly match your data.
Best regards,
Jeremy
Which criteria are you missing?
For a circle in 2d centred at the origin with radius 100 you can do Arc.Create(XYZ.Zero, 100.0, 0.0, 2.0 * Math.PI, XYZ.BasisX, XYZ.BasisY)
feed the results of that along with a SketchPlane into Creation.Document.NewModelCurve() to draw it in 3d space visible in any view, or pass it along with a view element into NewDetailCurve() to draw it in 2d visible only in that view.
You will of course need to adjust the centre point and X / Y vectors according to the orientation you desire.
Can't find what you're looking for? Ask the community or share your knowledge.