David Bengali 1 Posted April 24, 2020 Vectorscript includes a way to specify points in distance-angle mode, by using a pound sign. Is there a way to do this as well in Python Scripting in Vectorworks? Quote Share this post Link to post
MullinRJ 211 Posted April 24, 2020 Hi David, You might use the vs.Ang2Vec() function to convert Polar coordinates to Cartesian coordinates. import vs P = vs.Ang2Vec(45, 1) # return XY coordinates of 1 distance unit at 45° vs.Message(P[0], ' ', P[1]) vs.SysBeep() Depending on what you are trying to do, this may or may not make you happy. Raymond Quote Share this post Link to post
David Bengali 1 Posted April 24, 2020 Thanks Raymond, yes, that is what I had been doing essentially; I was just curious if there was a shorthand the way there is in VectorScript Quote Share this post Link to post
MullinRJ 211 Posted April 24, 2020 Hi David, I don't think there is. That shorthand way was integrated into the VS Compiler way back in the Dark Ages before "Vectorworks", or "VectorWorks", yes, in the early MiniCAD years. It is definitely not a typical Pascal convention for number entry. It's not something I would expect to have been migrated to the Python engine. Raymond Quote Share this post Link to post