Message 1 of 3
Get the Radius of a Circle (model line)
Not applicable
02-09-2012
07:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I want to get the Radius of a circle. I drew this circle by using the model line.
With the following Code I can collect all model line not only the circles but what I want is only the circles and their Radiuses:
Document document = commandData.Application.ActiveUIDocument.Document;
UIDocument uiDocument = new UIDocument(document);
FilteredElementCollector collector = new FilteredElementCollector(uiDocument.Document);
ICollection<Element> collection = collector.OfClass(typeof(CurveElement)).ToElements();