GopinadhGvs Posted April 9, 2015 Share Posted April 9, 2015 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... Quote Link to comment Share on other sites More sharing options...
jonathann3891 Posted April 9, 2015 Share Posted April 9, 2015 getvar only gets autocad variables. Quote Link to comment Share on other sites More sharing options...
GopinadhGvs Posted April 9, 2015 Author Share Posted April 9, 2015 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.. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted April 10, 2015 Share Posted April 10, 2015 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))) Quote Link to comment Share on other sites More sharing options...
neophoible Posted April 10, 2015 Share Posted April 10, 2015 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.