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: 

Revit 2012 Create Slab with Circle Perimeter

1 REPLY 1
Reply
Message 1 of 2
GeomGym
770 Views, 1 Reply

Revit 2012 Create Slab with Circle Perimeter

Apologies if this is actually quite a simple question.

 

When I try to generate a slab with a circle perimeter, I get a resulting error about line being too small.  Do I have to set a span direction or similar to resolve this?

 

Example code below:

Autodesk.Revit.DB.Plane pln = new Autodesk.Revit.DB.Plane(XYZ.BasisZ, XYZ.Zero);
CurveArray ca = new CurveArray();
Autodesk.Revit.DB.Arc a = app.Create.NewArc(pln,40, 0, Math.PI*2.0);
ca.Append(a);
doc.Create.NewFloor(ca, true);

 

Thanks in advance for any light shed on this,

 

Jon

1 REPLY 1
Message 2 of 2
adam.nagy
in reply to: GeomGym

Hi there,

 

Based on this article it seems that maybe you should split the circle into two semi circles:

http://thebuildingcoder.typepad.com/blog/2010/11/newblend-sample.html

 

Cheers,

Adam Nagy

Autodesk Developer Network



Adam Nagy
Autodesk Platform Services

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