aalto
05-08-2010, 05:21 PM
Dear all,
I am a beginner and as of now I am trying to use snippets of the provided samples and Steves code to get a better grasp on how to solve things with Python.
In the included script, a command is registered which divides a curve into points. The goal would be to generate a mcr file to drive a CNC mill , going from one point to another.
Point = rhinoscript.curve.EvaluateCurve(CurveId, param)
gives me a Point3D object that I cant find any documentation on. What I need is a list of coordinates, which will then be collected inside another list, "output", that can be used to generate the mcr file.
Bonus question (i.e. the next problem I know I am going to run into...):
What approach inside Rhino would be best if my goal is to generate a text string, with linebreaks, and to output this into a file as ASCII?
All the best,
Aalto
I am a beginner and as of now I am trying to use snippets of the provided samples and Steves code to get a better grasp on how to solve things with Python.
In the included script, a command is registered which divides a curve into points. The goal would be to generate a mcr file to drive a CNC mill , going from one point to another.
Point = rhinoscript.curve.EvaluateCurve(CurveId, param)
gives me a Point3D object that I cant find any documentation on. What I need is a list of coordinates, which will then be collected inside another list, "output", that can be used to generate the mcr file.
Bonus question (i.e. the next problem I know I am going to run into...):
What approach inside Rhino would be best if my goal is to generate a text string, with linebreaks, and to output this into a file as ASCII?
All the best,
Aalto