Set CPlane in rhino python

hi there,

I’ve change the Cplane coordinates from the default in my rhino file and I have a small script in rhino python where which create some points and lines. I want the coordinates to align with the CPlane set in rhino and not the world plane.

for instance when I run the script below

x = rg.Point3d(0,10,0)
rs.AddPoint(x) 

the point is positioned with respect to the world XY plane and not the CPlane I set in rhino.

I would like to know how to change this in the script so that the points are drawn on the CPlane coordinate.

Machine specs
windows 10
rhino 8.6

thanks in advance