Call RunScript from a headless file

I want to scale my objects (geometry and annotations) in a headless document. Normally I use Rhino.RhinoApp.RunScript to do this, but it doesn’t work with this case.

  • Can we call Rhino.RhinoApp.RunScript from headless file?
  • is there any alternative method to do this?

Trying using the override that accepts a document serial number.

You can also just iterate the object table and apply a scale transformation to each object.

– Dale

You can also just iterate the object table and apply a scale transformation to each object.

Thanks Dave, this solution works for me.