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: 

how to create polygon

3 REPLIES 3
Reply
Message 1 of 4
patins
1152 Views, 3 Replies

how to create polygon

I think it should be possible to create a polygon given by a set of vertices. However i cannot find an example for it in the web.. can someone give me a hint?

3 REPLIES 3
Message 2 of 4
augusto.goncalves
in reply to: patins

Using either Document.Create.NewModelCurve or Document.Create.NewModelCurveArray you will need to specify line by line of your polygon.

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
Message 3 of 4
joerg
in reply to: patins

The problem is that NewModelCurve does not fill out the polygon with a solid color, its more a polyline. Is the only other way to use extrusions with a minimal depth? This seems to be not very elegant modeling..

Message 4 of 4
Joe.Ye
in reply to: joerg

 

Revit 2013 exposed the API to create the filled region via the FilledRegion.Create method,  and pass in the fill region ( its Fill pattern should be solid) type Id.



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network

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