• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Revit API

    Reply
    Member
    Posts: 3
    Registered: ‎03-01-2012

    how to create polygon

    314 Views, 3 Replies
    03-21-2012 05:48 AM

    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?

    Please use plain text.
    ADN Support Specialist
    Posts: 164
    Registered: ‎04-30-2009

    Re: how to create polygon

    04-05-2012 10:30 AM 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
    Autodesk Developer Network
    Please use plain text.
    New Member
    Posts: 1
    Registered: ‎04-10-2012

    Re: how to create polygon

    04-10-2012 06:57 PM 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..

    Please use plain text.
    ADN Support Specialist
    Posts: 180
    Registered: ‎03-05-2010

    Re: how to create polygon

    04-26-2012 01:34 AM 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
    Developer Technical Services
    Autodesk Developer Network
    Please use plain text.