I’m simply trying to add a dimension to my GHdoc by using either the commands rs.AddLinearDimension() or rs.AddAlignedDimension(). However, both are giving the error message as below:
Runtime error (NotSupportedException): This type of object is not supported in Grasshopper, so this Python script cannot create it. You might want to use ‘scriptcontext.doc = Rhino.RhinoDoc.ActiveDoc’ to use the Rhino doc, instead? If you do, remember to restore it: ‘scriptcontext.doc = ghdoc’.
line 45, in AddAlignedDimension, “C:\Users\matt.harwood\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\dimension.py”
line 349, in script
I’ve tried the suggestion, but this creates a baked dimension in the Rhino space which I don’t want.
Any ideas how to simply add a GH dimension using Python?