TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: jlogan02 on July 20, 2021, 11:28:53 AM
-
When I run "Check Text in Editor" with multiple defuns, is this the result I should expect from the output?
-----------------------------------
[CHECKING TEXT STA_STD_Conversion.LSP loading...]
..
; === Top statistic:
; Global variables: (ACDOC CECHO COSMODE EN I OFILEDIA)
; Function definition (with number of arguments): ((*ERROR* . 1) (STA_AE . 0))
.
; === Top statistic:
; Global variables: (:vlax-true ACDOC ATT2 CECHO CMDECHO DIM OFILEDIA OLAYER OSMODE SSIMAGE X)
; Function definition (with number of arguments): ((*ERROR* . 1) (STA_STD . 0))
.
; === Top statistic:
; Function definition (with number of arguments): ((C:STA_CONV . 0))
; Check done.
-------------------------
-
Yes .. localize all those variables.
-
This short tutorial (http://lee-mac.com/quicklocalising.html) may also be of interest.
-
Yes indeed.
I did read that tutorial but haven't used the VarList routine. I'll give it a try.
Thanks guys.
-
Am I using this right?
Open my code in Vlide
Put the VarList defun in the code
Run Check Text in Editor
Copy variables from the check
paste (Varlist '(copied variables)) from Check into console
-
Yes - though, the 'VarList' function is purely for formatting, such that all symbols are presented in lowercase :-)