TextDot with GhPython?

Hello, how to show textDot with GhPython?

textDot.gh (2.8 KB)

Solved it called DrawDot

from ghpythonlib.componentbase import executingcomponent as component
import Grasshopper, GhPython
import System
import Rhino
import rhinoscriptsyntax as rs
import Rhino.Geometry as rg


class PreviewEx(component):

    def RunScript(self,P):
        
        self.p = P

    def DrawViewportWires(self,args):
         if not  self.p: return
         for i in range(len(self.p)):
              args.Display.DrawDot(self.p[i],str(i))
3 Likes