Hello all,
I'm hoping my explanation of this will make sense. I'm still having a hard time wrapping my head around Python. I'd like to create menu commands or even just a script palette where I can run a script and be able to immediately start drawing in a polyline that already has set class attributes. I've figured out how to set the polyline tool thanks to a code I found on the Vectorworks Developer website, but what I can't figure out is how to set those class attributes. Is this something that is even possible? Thanks in advance!
Here is the code I have been using:
def SetPolyline():
vs.DSelectAll()
def resultCallback1():
h1 = vs.FSActLayer()
vs.DSelectAll()
def resultCallback2():
h2 = vs.FSActLayer()
h3 = vs.AddSurface(h1, h2)
if h3 != None:
vs.SetFPat(h3, 5)
vs.SetTool(-204, resultCallback2)
vs.SetTool(-204, resultCallback1)
SetPolyline()