samifox Posted June 5, 2015 Posted June 5, 2015 hi, the Autolisp user guided says that: If PAUSE is encountered when a command is expecting input of a text string or an attribute value, AutoCAD pauses for input only if the TEXTEVAL system variable is nonzero. Otherwise, AutoCAD does not pause for user input but uses the value of the PAUSE symbol (a single backslash) text. the System veriable say: Controls how text strings entered with TEXT (using AutoLISP) or with -TEXT are evaluated. The TEXT command takes all input literally regardless of the setting of TEXTEVAL unless it is executed completely with a script or AutoLISP expression. The -TEXT command honors the setting of TEXTEVAL. by executing (command "circle" "5,5" pause "line" "5,5" "7,5" "") with TEXTEVAL set to 0 or 1, Autocad pause for input all the same. any idea why? Thanks Quote
Lee Mac Posted June 5, 2015 Posted June 5, 2015 Based on the information in your post, it looks like the TEXTEVAL system variable only affects the behaviour of the TEXT or -TEXT commands. Quote
samifox Posted June 5, 2015 Author Posted June 5, 2015 Based on the information in your post, it looks like the TEXTEVAL system variable only affects the behaviour of the TEXT or -TEXT commands. i played with it a bit. you right LEE. it effect only the text command. if TEXTEVAL were setted to 0, the word "PAUSE" would be printed on the text object. but it was prevented. another thing that i cant sort out, thay say this : Note: When command input comes from the AutoLISP command function, the settings of the AutoCAD PICKADD and PICKAUTO system variables are assumed to be 1 and 0, respectively. This preserves compatibility with previous releases of AutoCAD and makes customization easier (because you don't have to check the settings of these variables). but what if i do need to window select objects? lets say i want to mouse few objects from screen point a to screen point b, how would i code it? (command "move" pause pause "") wont work:nono: Quote
tombu Posted June 5, 2015 Posted June 5, 2015 (command "move")(while(= "LINE" (getvar 'CMDNAMES)) pause) Quote
Lee Mac Posted June 5, 2015 Posted June 5, 2015 but what if i do need to window select objects? lets say i want to mouse few objects from screen point a to screen point b, how would i code it? (command "move" pause pause "") I would suggest: (if (setq s (ssget "_:L")) (command "_.move" s "" "\\" "\\") ) Quote
BIGAL Posted June 6, 2015 Posted June 6, 2015 Also move P "" but must pre-select objects this is ok if its a simple lisp. Quote
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.