AI Assistant
Notifications
Clear all

Horizontal Scale command

6 Posts
3 Users
0 Reactions
1,223 Views
John Thompson
(@john-thompson)
Posts: 85
Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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 : April 24, 2023 7:53 am
jph
 jph
(@jph)
Posts: 2331
Member
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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

Or are you looking for something else?


 
Posted : April 24, 2023 9:27 am
John Thompson
(@john-thompson)
Posts: 85
Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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

Yes, but not from within a macro.


 
Posted : April 24, 2023 10:39 am
jph
 jph
(@jph)
Posts: 2331
Member
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@john-thompson 

I got nothin


 
Posted : April 24, 2023 11:57 am
jacob-wall
(@jacob-wall)
Posts: 139
Member
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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 : April 24, 2023 7:51 pm

John Thompson
(@john-thompson)
Posts: 85
Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@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 : April 26, 2023 10:07 am