Split Face using API

Split Face using API

ratno123s
Contributor Contributor
2,177 Views
4 Replies
Message 1 of 5

Split Face using API

ratno123s
Contributor
Contributor

How to split a face of a Wall (given the curve or points to define /bound the area) using api

 

Just like the Split Face tool in revit

 

2,178 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk

Face.HasRegions & Face.GetRegions()

 

This property and method provide information about the faces created by the Split Face command. HasRegions returns a boolean indicating if the face has any Split Face regions. GetRegions returns a list of faces. As the material of these faces can be independently modified through the UI with the Paint tool, the material of each face can be found from its MaterialElementId property.

 

http://thebuildingcoder.typepad.com/blog/2013/02/whats-new-in-the-revit-2012-api.html

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 5

ratno123s
Contributor
Contributor
Thank you for the reply jeremy but I want to split the face of a wall using api and not get the information of the split faces

I am already using Face.GetRegions() to get the faces in a face that has been split using the "split face" tool.

but I would like to split the face of a wall into two faces using api so that I can paint them separately using api
Message 4 of 5

Anonymous
Not applicable

I'n still waiting for the answer

 

0 Likes
Message 5 of 5

jeremytammik
Autodesk
Autodesk

I would recommend searching for a corresponding wish list for this in the Revit Idea Station, and adding your comments there, or creating a new entry, if there is none already present there yet for the suggested functionality:

 

https://forums.autodesk.com/t5/revit-ideas/idb-p/302

 

Tag it as an API wish:

 

https://forums.autodesk.com/t5/revit-ideas/idb-p/302/tab/most-recent/label-name/api

 

Ensure it gets as many votes as possible to underline its importance to you and the rest of the developer community.

 

The Revit Idea Station is currently one of the main driving input forces for Revit API enhancements.

 

The Revit development team look there. Your comment here in the discussion forum might be overlooked.

 

Thank you!

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes