Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Drawing a 2D circle with center point and radius

2 REPLIES 2
Reply
Message 1 of 3
RunninThruLife
6010 Views, 2 Replies

Drawing a 2D circle with center point and radius

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

2 REPLIES 2
Message 2 of 3

Dear Runnin,

 

Arc.Create it is. Sorry if the input does not exactly match your data.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 3

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.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community