David Bengali Posted April 24, 2020 Share 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 Link to comment
MullinRJ Posted April 24, 2020 Share 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 Link to comment
David Bengali Posted April 24, 2020 Author Share 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 Link to comment
MullinRJ Posted April 24, 2020 Share 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 Link to comment
David Bengali Posted April 26, 2020 Author Share Posted April 26, 2020 Got it, thanks Raymond Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.