Jump to content

How to Getvar from List Command Autolisp..?


Recommended Posts

Hi All,

 

How to getvar from "list" command..?

 

When we type list, select a line then it will print the results like (length, from point, to point etc..) in a textscr..

 

when i tried to getvar "length", it is returning nill.

 

can any one help me in doing this...

Link to comment
Share on other sites

Hai jonathann3891,

 

Thanks for your reply,

 

I am using getvar "area" to get the "area" value, using area the area value is printing on the command line..

 

The problem that iam getting in "List" is, here the value is printing on "textscr"..

 

If it is printing on command line, i think i can use getvar to get the printed values..

Link to comment
Share on other sites

Some variables are saved like, lastpoint, same also with properties it will display some properties but not necessarily evey one you want.

 

Use VL lisp to get properties

 

(alert (strcat "Length is " (rtos (vla-get-length (vlax-ename->vla-object (car (entsel)))) 2 3)))

Link to comment
Share on other sites

Hai jonathann3891,

 

Thanks for your reply,

 

I am using getvar "area" to get the "area" value, using area the area value is printing on the command line..

 

The problem that iam getting in "List" is, here the value is printing on "textscr"..

 

If it is printing on command line, i think i can use getvar to get the printed values..

Command line is really part of the textscreen. Though you can copy and paste from the textscreen, I don't know of a way to capture the info using AutoLISP. Note that, though the area is being printed to the textscreen, that is not where getvar is getting the value. If you gave a concrete example of what you are trying to do, you might get more specific help.
Link to comment
Share on other sites

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...