Message 1 of 3
Check if sketch is closed using Revit API

Not applicable
12-24-2014
02:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Currently in Revit, if I use the floor slab tool, I make a sketch loop and press the "finish" button. If the sketch is not a closed loop, Revit gives me an error. I am having my command do a similar thing. The user sketches some model lines in a loop. Is there a method in the Revit API that will check if I have a closed sketch? For example, I want to be able to feed a List<Curve> to this method and it tells me whether the lines are closed or not?
I know about the CurveLoop class, can that be used this way?