Jump to content

Recommended Posts

Posted

How to get a user variable status .

 

I use ACAD VLIDE to make LISP programs, Before I update to 2024 , I got all user global  variable  by section the defun and do a CHECK selection and it return at the  Visual Lisp Console , all global variables .

I can not set the way to get it again .

 

Thanks in advance

 

 

 

check selection to get user vvariable status.png

Posted (edited)

A slight variation on the theme, I use Notepad++ so it does not have check variables. I use VLIDE when I am real stuck, also Bricscad Blade checks but does not display a list like VLIDE. Anyway I usually add variable names at end of testing etc. So they can end up like this (X pt1 Y p4 zone a b c pt end start) and so on so wrote a sort them alphabetically then just copy and past back into code a nice sorted list of variable names.

 

Code attached. just copy and paste your variable names when asked, copy the result back to your code.

 

Found this example

(defun c:test ( / f d p s a x tam a1 a2 b1 b2 c1 c2 sa sp)

(defun c:test ( / a a1 a2 b1 b2 c1 c2 d f p s sa sp tam x)

 

 

makevars.lsp

Edited by BIGAL

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...