WhoCanDo Posted January 27, 2016 Share Posted January 27, 2016 Hi, Can anyone tell me how to get ° into my code/text please? It seems to have been overlooked in VW2016 procedure AngleText; var pt1, pt2, pt3, pt4 : vector; begin GetPt (pt1.x, pt1.y); GetPtL (pt1.x, pt1.y, pt2.x, pt2.y); GetPtL (pt2.x, pt2.y, pt3.x, pt3.y); pt4 := (pt1 + pt3) / 2; TextOrigin (pt4.x, pt4.y); CreateText (Concat (Num2Str (2, AngBVec (pt1 - pt2, pt3 - pt2)), Chr (176))); end; run (AngleText); Quote Link to comment
Vectorworks, Inc Employee klinzey Posted January 27, 2016 Vectorworks, Inc Employee Share Posted January 27, 2016 Try Chr(161). By default VS/VW uses the Mac character set. 161 is the ° on the Mac. Quote Link to comment
WhoCanDo Posted January 28, 2016 Author Share Posted January 28, 2016 Thanks Kevin, That worked. However, the only reason why I used Chr instead of '°' in 2016 is that '°' stoppe working in 2016. Worked fine in previous versions. So, no Alt0176 in macros, no Chr(176) {replaced by 161} in macros, but Alt0176 is still working when typing text within the drawing. A bit of a mishmash hey. I thought VW used the ASCII western character set. Quote Link to comment
Vectorworks, Inc Employee klinzey Posted January 28, 2016 Vectorworks, Inc Employee Share Posted January 28, 2016 VW does use the ASCII character set but that only goes to 127 over that you are using the ASCII Extended Character Set which is not standardized. 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.