WhoCanDo Posted March 31, 2023 Share Posted March 31, 2023 Hi, After drawing a radius dimension, I want the dimension size to be text and the arrows inside. The script below does this, except that it doesn't display correctly on the screen. Even though the "Arrows Inside" is ticked in the OI, there is not a line projecting to the center point. Is there any screen refresh I should be adding? procedure Fetch; procedure Dimension_Text (h3 : handle); begin SetDimText (h3, Concat ('R ', GetDimText (h3))); SetObjectVariableBoolean (h3, 3, True); end; begin ForEachObject (Dimension_Text, (T = Dimension) & (Sel = True)); end; run (Fetch); Quote Link to comment
PatW Posted March 31, 2023 Share Posted March 31, 2023 You could try it with one of these: https://developer.vectorworks.net/index.php/VS:ReDraw https://developer.vectorworks.net/index.php/VS:RedrawSelection https://developer.vectorworks.net/index.php/VS:ReDrawAll Quote Link to comment
Pat Stanford Posted March 31, 2023 Share Posted March 31, 2023 Add ResetObject(h3); After the SetObjectVariable Line Quote Link to comment
WhoCanDo Posted April 3, 2023 Author Share Posted April 3, 2023 Thanks Pat S, It worked a treat. 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.