Select lines and faces

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I want to create the following two functions, but I can't find a good way to do it. I have read old blog posts about selecting nearest face using BREP and selecting solid sub-entities without getting the functionality I want. The functions i would like to create are as follows:
1. Select lines. The user should be able to select a selection set of any type of line or edge. It could be a 3d polyline, 3d polyline inside a block, solid edge, solid edge inside a block, surface edge etc. I want to use this to calculate the total length of of all the selected lines/edges.
2. Select faces. The user should be able to select a selection set of any face. It could be a region, surface, face of solid, face of solid inside a block etc. This will be an improved version of the selection when holding ctrl down and selecting faces. I want to use this to calculate the sum of all the face areas.
How can I create these functions?