I tried create new ConstructionPlane and than I tried draw ON_Line on the new Plane, but this line was created relatiw World plane. How can I create new geometry on new plane.
CRhinoView* view = RhinoApp().ActiveView();
if (!view) return CRhinoCommand::failure;
ON_3dmConstructionPlane cplane = view->Viewport().ConstructionPlane();
ON_3dPoint or (40,40,40);
ON_3dPoint aX(100, 40, 40);
ON_3dPoint aY(40, 100, 40);
ON_Plane pln = cplane.m_plane;
pln.SetOrigin(or );