Hello guys,
I am trying to script in ghpython that is able to preview the leader (arrow, curve and text), instead of directly bake the leader object in Rhino.
The following script is my attempt. I did create the leader object, but it is not previewing in Rhino.
import rhinoscriptsyntax as rs
import Rhino.Geometry as rg
import Rhino
ptts = Rhino.Collections.Point3dList(x)
dim = Rhino.RhinoDoc.ActiveDoc.DimStyles[0]
apts = Rhino.Collections.Point3dList.ToArray(ptts)
leader = rg.Leader.Create("test", y, dim, apts)
a = leader
Any help will be great! Thanks in advance.
leader_preview.gh (7.2 KB)