Using either Document.Create.NewModelCurve or Document.Create.NewModelCurveArray you will need to specify line by line of your polygon.
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..
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.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.