Autodesk Revit API
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
how to create polygon
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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?
Re: how to create polygon
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
Augusto Goncalves
Autodesk Developer Network
Re: how to create polygon
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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..
Re: how to create polygon
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
