Creating Parts in Revit Secondary Development
Some projects need to use parts to divide floor tiles, like this:

Using parts can basically calculate quantities and set data such as paving joints, so below is a method to create parts.
1 | PartUtils.CreateParts(doc,new List<ElementId>(){detailFloor.Id}); |
- First, you need to create parts visibility.
- Add divisions in parts. The line segments here do not need to check for collisions or closure, directly calculate the value and boundary lines and pass them in.
- Find the gap parameter and set the value.
Using the above three steps can complete part division and property setting.
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.





