Jump to content
Developer Wiki and Function Reference Links ×

update dimensions on screen


Recommended Posts

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.

Link to comment

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 ]

Link to comment

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 ]

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...