To draw in MyCustomLayout
Layout Paper space I do:
import scriptcontext as sc
sc.doc.Views.ActiveView = sc.doc.Views.Find("MyCustomLayout", False)
To go back and draw in model space I do:
sc.doc.Views.ActiveView = sc.doc.Views.Find("Top", False)
However this sometimes fails when Top
does not exist. (or Rhino is set to another language).
Is there another save way to ensure geometry objects get added to Worlds XY Layout space?