How to draw a line that have an asigned angle to x asix in XYplane

would any one can help on this?
as we know we can use _line command and set _Angled in Rhino to draw a line that have an assigned angle to X asix in XYplane.
but how can we do this use RhinoScript?

could any one help me? thank you very much!

Hi @fengyee_zju,

see the script below to draw an angled line lin XYPlane using RhinoScript.

AngledLineInXYPlane.rvb (524 Bytes)

c.

thank you so much!