Hello, I would like to ask for advise, I am trying to retrieve parameter from parking space.
I collect them like
ElementCategoryFilter filter = new ElementCategoryFilter(BuiltInCategory.OST_Parking); FilteredElementCollector collector = new FilteredElementCollector(this._uiDocument.Document); collector.WherePasses(filter);
foreach (var item in collector) { FamilyInstance parkingInstance = item as FamilyInstance; if (parkingInstance != null) {
//Get parameter
} }
I can get, location, level, bounding box as usual. But my issue is when I want to get the width and the length.
According to their rotation(as you can see in the pic) , width and length will vary in case of using bounding box.
if I get length and width using trigonometry I could fix the issue.
If it would be impossible to get them. How could I delimit the parking space?