Notifications
Clear all

Horizontal Scale command

6 Posts
3 Users
0 Reactions
4 Views
(@john-thompson)
Posts: 85
Estimable Member Registered
Topic starter
 

I've spent some time recently trying to learn about macros, scripts, and LISP to streamline some tasks in Carlson Survey with IntelliCAD. Is there a way to read and/or set the horizontal scale of a drawing from the command line? I found this old post but I can't figure out syntax for it. https://update.carlsonsw.com/phpBB2/viewtopic.php?f=5&t=1759. Seems like a fundamental variable that controls a lot of other stuff and I can't believe it's so difficult to find.

 
Posted : 24/04/2023 5:53 am
 jph
(@jph)
Posts: 2332
Famed Member Registered
 

Can't you just click the pull-down, or just type, setup

Or are you looking for something else?

 
Posted : 24/04/2023 7:27 am
(@john-thompson)
Posts: 85
Estimable Member Registered
Topic starter
 

Can't you just click the pull-down, or just type, setup

Yes, but not from within a macro.

 
Posted : 24/04/2023 8:39 am
 jph
(@jph)
Posts: 2332
Famed Member Registered
 

@john-thompson 

I got nothin

 
Posted : 24/04/2023 9:57 am
(@jacob-wall)
Posts: 127
Estimable Member Registered
 

Not a Carlson user, however I recall writing a LISP program for a Carlson user and I am pretty sure you just treat it as any other variable. Should be able to set it and retrieve like any other variable, local or global.

(setq sv:sm scale_factor)
 
Posted : 24/04/2023 5:51 pm
(@john-thompson)
Posts: 85
Estimable Member Registered
Topic starter
 

@jacob-wall That works. Thanks!

Kinda strange. If I type (setq sv:sm 500), the command line replies 500, but setup says the horizontal scale is 100. I tried a bunch of different scales, and setup seems to get stuck on 100. Usually, but not always. Must be a bug. But it changes the default text size, which is what I was trying to accomplish. 

 
Posted : 26/04/2023 8:07 am
Share: