Author Topic: Pasting lisp code brings up dialogue boxes  (Read 2179 times)

0 Members and 1 Guest are viewing this topic.

hyposmurf

  • Guest
Pasting lisp code brings up dialogue boxes
« on: October 16, 2004, 04:21:00 PM »
Simple question with a simple answer I guess.Why when I paste lisp code into my command line it sometimes opens things like my help box,toolbar customisation box etc?If I just load the lisp via applaod this doesnt happen.I thought it might be due to there being an extra enter "" that would bring up the last command,but this isnt the case as it doesnt happen when i appload. :? Always something Ive wondered about but never bothered ask.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Pasting lisp code brings up dialogue boxes
« Reply #1 on: October 16, 2004, 04:41:39 PM »
It happens because free space (unbounded by a lisp statement) is akin to sending carriage returns to AutoCAD; typically there is trailing space or unbounded space in the clipboard contents.

Try preceeding the paste with a (progn and finishing it with a closing parenthesis), like so:

 (progn <paste>).

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

hyposmurf

  • Guest
Pasting lisp code brings up dialogue boxes
« Reply #2 on: October 16, 2004, 05:09:32 PM »
Now I know.Cheers.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Pasting lisp code brings up dialogue boxes
« Reply #3 on: October 17, 2004, 02:19:25 PM »
I have seen a similar thing happen when comments are pasted along with code.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie