tom kyler_dup1 Posted September 16, 2004 Share Posted September 16, 2004 I have dimensions onscreen..and I frequently toggle between decimal and fractional formats. I have a script that will toggle the preference back and forth between the two through the document context menu...however, the dimensions already on screen don't update unless they're moved (at which point they update). Any new dimensions created after invoking the script will have the proper format. I would appreciate any input. Quote Link to comment
matto Posted September 16, 2004 Share Posted September 16, 2004 Do you have a ReDraw; call at the end of your script, with some toogle scripts it's needed to update items. Quote Link to comment
tom kyler_dup1 Posted September 17, 2004 Author Share Posted September 17, 2004 I did try that and unfortunately had no luck. Specifically, I used the "redrawall" command. In addition, I used the "resetobject" command with a handle to one selected dimension. This did not work either. I think maybe "primaryUnits" might fit the bill and will try that today as time permits. [ 09-17-2004, 09:20 AM: Message edited by: tom kyler ] Quote Link to comment
tom kyler_dup1 Posted September 17, 2004 Author Share Posted September 17, 2004 Looks like "PrimaryUnits" is the routine to use! Final script is as follows: PROCEDURE FracDec; VAR FracDecStatus :BOOLEAN; BEGIN FracDecStatus:=GetPref(168); IF FracDecStatus=TRUE THEN PrimaryUnits(3,3,5,4,2,TRUE,FALSE) ELSE PrimaryUnits(3,4,5,4,2,TRUE,TRUE); END; Run(FracDec); Slap this under your document context menu and you're good to go [ 09-17-2004, 09:50 AM: Message edited by: tom kyler ] 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.