When you use a CustomCurveObject (SR6), once added to document it works fine, but if you trim or split it, the object cannot be selected by clicking, or selecting window (right to left) it only works selecting it from left to right , or typing the command _selCrv. furthermore it’s not ready for oSnap. Anyone knows how to solve it?
I attach you a dummy project with a Custom curve, and a video showing you the behaviour.
You can add the sample custom curve with the command AddCustomCircle.
As you can see on the video after a trim operation you can’t select the resulting curve clicking on it.
Circle cr = new Circle(Plane.WorldZX, 15);
CustomCurveObject cObj = new CustomCurveObject(cr.ToNurbsCurve());
doc.Objects.AddRhinoObject(cObj, cObj.CurveGeometry);
Do this:
Circle cr = new Circle(Plane.WorldZX, 15);
CustomCurveObject cObj = new CustomCurveObject();
doc.Objects.AddRhinoObject(cObj, cr.ToNurbsCurve());