Rhinoceros 7 automation

I am using the script available here:

[Run Rhino 6 and python script from Windows command line]

and trying lo run my plugin in batch within automation. My plugin implements a very simple command and contains just a single line of code to do its job:

RhinoApp().ActiveDoc()->AddCurveObject(ON_Line(ON_3dPoint(0, 0, 0), ON_3dPoint(100, 0, 0)));

The script creates the final 3dm but the file which is saved does not contain any line. What am I doing wrong?

Thanks a lot!

Hi @sergio3d,

Can you provide your script, or step-by-step instructions on how to repeat the issue?

– Dale