Dale gave me this a while back:
Ok, I’ve added a new ViewProjectionXform method to RhinoScript for next week’s build that returns a view-based, 2-D projection transformation that will allow you To project geometry To the world x-y plane To make a 2-D drawing.The transformation matrix returned Is similar the one used by Rhino’s Make2D command.
Care must be taken when using transformation matrix returned by this function as input to either the TransformObject or TransformObjects methods, as Not all 3-D geometry can be projected To 2 - D without creating bad geometry. It Is suggested that only point, point cloud And curve objects be used.
It is not hooked up in Python yet.
Dim arrObjects, strView, arrXform
arrObjects = Rhino.GetObjects("Select curves to draw", 4, True, True)
If IsArray(arrObjects) Then
strView = Rhino.CurrentView
If Rhino.IsViewPerspective(strView) Then
arrXform = Rhino.ViewProjectionXform(strView)
Call Rhino.TransformObjects(arrObjects, arrXform, True)