Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Limits to Dimscale

Status
Not open for further replies.

Volk359

Technical User
Jun 30, 2004
395
US
Greetings all,

I'm trying to write a script that will reset the drawing limits according to the dimscale using the following code:

LIMITS
0,0
'cal
getvar(dimscale)*[36,24]

zoom all

It appears to work fine, i.e. no errors, but the upper limits aren't being set. Anything wrong here?

Thanks,

Keith
 
I tried getvar(dimscale)*[36,24]
and it returned 3 numbers separated by commas (such as 36,24,0)
which was probably rejected by the limits command
 
FYI - here's a solution that works very well:

LIMITS
0,0
(list (* (getvar 'dimscale) 36) (* (getvar 'dimscale) 24))
zoom all

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top