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?
To check if sketch is closed or not the following logic can be applied:
1. Take the first curve's starting point.
2. Take the last curve's end point.
3. See if they both are same[compare their Location(XYZ)].
4. If they are same its a closed loop else open.
Thanks & Regards
Sanjay Pandey