Most scripting works with world coordinates. If you have CPlane coordinates, you need to transform them into world coordinates before inputting them into various drawing methods.
With points, you can use rs.XformCPlaneToWorld(point, plane)
to transform a point in ‘plane’ coordinates to world coordinates. In this case ‘plane’ would be gotten by rs.ViewCPlane()
import rhinoscriptsyntax as rs
#make your points in CPlane coordinates
pt1=rs.coerce3dpoint([0,0,0])
pt2=rs.coerce3dpoint([10,0,0])
#get your "from" plane
plane=rs.ViewCPlane()
#transform each point
pt1_cp=rs.XformCPlaneToWorld(pt1,plane)
pt2_cp=rs.XformCPlaneToWorld(pt2,plane)
#add your line
rs.AddLine(pt1_cp,pt2_cp)
Otherwise, for objects, this is a two step process, first define the transformation then apply the transformation to the object(s):
import rhinoscriptsyntax as rs
#10x10x10 cube's corner points
pt1=rs.coerce3dpoint([0,0,0])
pt2=rs.coerce3dpoint([10,0,0])
pt3=rs.coerce3dpoint([10,10,0])
pt4=rs.coerce3dpoint([0,10,0])
pt5=rs.coerce3dpoint([0,0,10])
pt6=rs.coerce3dpoint([10,0,10])
pt7=rs.coerce3dpoint([10,10,10])
pt8=rs.coerce3dpoint([0,10,10])
#add box in world coordinates
box=rs.AddBox([pt1,pt2,pt3,pt4,pt5,pt6,pt7,pt8])
plane=rs.ViewCPlane()
#create your transform - "Rotation1" is plane-to-plane
#rs.XformRotation1(from_plane, to_plane)
xform=rs.XformRotation1(rs.WorldXYPlane(),plane)
#transform the world aligned cube to the active view's CPlane (without copying)
rs.TransformObject(box,xform,False)