How can I get a string from clipboard?

I want to draw a line starting at coordinates coming from the clipboard. (The clipboard content is "123,456" and the line should start there.)

I have been experimenting a litle bit with DIESEL and with AutoLisp, but did not find a solution.

Markus

Comments

  • Perhaps I'm missing something in your question but it sounds like a simple copy paste command? I regularly "copy" the display of my linux desktop calculator with eiter the "edit/copy" command or " ctrl c" to get the display to the clipboard...thne in Bricscad when line command asks for start point use the past from clipcoard or "ctrl v" to insert coordinate.

  • I should have noted I want to do this with a simple click on a toolbox button. So I have to assign some commands or a lisp function to a button.

    I have not found any command to copy a string to the command line like Ctrl-V does (when focus is on the command line).

     

  • Markus

    1. select some text with mouse

    2. paste it anywhere with mouse middle button click, works with bcad command line as well

  • Hi - I also cannot paste anything from my clipboard into Bricscad. Both <ctrl>V and the menus choices give the same error: "unable to read clipboard data."

    I can copy text from the clipboard into a drawing through "mtext."

    I'm using OpenSuse 11.3 and KDE 4.4.4 - I think the difference in the flavors of Linux we're using makes a difference and we should report that. For example, maybe copy/paste works perfectly with Bricscad in Ubuntu or the whole GNOME world, but not in the KDE world or maybe just not with OpenSuse regardless of the desktop environment.

  • Works OK in opensuse 11.1/KDE3.5. It may not be the case but, using ksnapshot ang gimp, I noticed that pasting from clipboard only work while ksnapshot is open.

  • Interesting points above, but only loosely related to my problem.

    I am looking for a command or function to insert a string from the clipboard to the command line so it will be part of a command sequence (line 123,456 ...) with 123,456 coming from the clipboard.

    The clipboard related commands I have found only deal with inserting something into the drawing.

    What Matthias wrote (#4) is what I am doing now. I am looking for a way to abbreviate that.

     

This discussion has been closed.