Message 1 of 5
Solid element is missing
Not applicable
08-06-2019
06:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I am trying to get boundary of elements, in order to do that I have used this code
public static List<List<XYZ>> GetColumnsBoundaryPolygons(
List<Element> columns,
Options opt)
{
var polygons = new List<List<XYZ>>();
foreach (var column in columns)
{
var geo = column.get_Geometry(opt);
foreach (var obj in geo) // 2013
{
var solid = obj as Solid;
if (solid != null) GetBoundary(polygons, solid);
}
}
return polygons;
}which I got from Jeremytammik's example.
"columns" is a list of column_structural.
Doing a debug I can see just some elements from "columns" can be used as solid. All elements are column_structural, just the type of columns is different one each other. Does someone know what the problem is?
I need the edges of the element, is there another way to get it?
Regards