Jump to content

Recommended Posts

Posted

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

Posted

Based on the information in your post, it looks like the TEXTEVAL system variable only affects the behaviour of the TEXT or -TEXT commands.

Posted
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:

Posted
(command "move")(while(= "LINE" (getvar 'CMDNAMES)) pause)

Posted
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 "" "\\" "\\")
)

Posted

Also move P "" but must pre-select objects this is ok if its a simple lisp.

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