TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: jlogan02 on July 20, 2021, 11:28:53 AM

Title: Vlide Tools/Check Text in Editor
Post 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.

-------------------------
Title: Re: Vlide Tools/Check Text in Editor
Post by: ronjonp on July 20, 2021, 12:33:03 PM
Yes .. localize all those variables.
Title: Re: Vlide Tools/Check Text in Editor
Post by: Lee Mac on July 20, 2021, 05:18:51 PM
This short tutorial (http://lee-mac.com/quicklocalising.html) may also be of interest.
Title: Re: Vlide Tools/Check Text in Editor
Post by: jlogan02 on July 22, 2021, 12:44:03 PM
Yes indeed.

I did read that tutorial but haven't used the VarList routine. I'll give it a try. 

Thanks guys.
Title: Re: Vlide Tools/Check Text in Editor
Post by: jlogan02 on July 22, 2021, 01:28:10 PM
Am I using this right?

Code - Auto/Visual Lisp: [Select]
  1. (defun VarList ( lst )
  2. )

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
 
Title: Re: Vlide Tools/Check Text in Editor
Post by: Lee Mac on July 22, 2021, 04:57:49 PM
Yes - though, the 'VarList' function is purely for formatting, such that all symbols are presented in lowercase  :-)