Draw on ON_Plane

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 );

Hi @a.ugryn,

When you create geometry, you always specify world coordinates.

If you want to move a view’s construction plane, then you can do something like this:

https://github.com/mcneel/rhino-developer-samples/blob/5/cpp/SampleCommands/cmdSampleMoveCPlane.cpp

– Dale