nice tip Luis, I hadn't thought of apply.
People are getting confused on what I am doing.
I simply had a VB prog set some text on the clipboard, easy.
Hard part (until Luis blew this out of the water) was getting acad to run that code at some later time. I was not trying to get my VB app to run the code, that would not be a good idea because I did not know which acad session the user would want to run the code in. Assuming he wanted the active document is not realistic.
I had just completed the code to make a temp lisp from the clipboard and that worked, but that apply code is too slick. After writing all this, I could have had the VB app just write the code to a lisp instead of the clipboard. The fact is though, sometimes people will use that code to paste into a text editor, so I like the clipboard as a common spot to plop the text.
thx all
James Maeding
|>I want to grad the text from the clipboard and run it at the command line. |>I use the (DOS_CLIPBOARD) function of doslib to get the string, then how can I run it at the command line? |>I was thinking (eval (read (dos_clipboard))) but that did not work. |>This must be easy but (command ....) does not work obviously. |>I cant seem to get my brain to click on how to do this. |>thanks |>James Maeding |>Civil Engineer/Programmer
James Maeding
Civil Engineer/Programmer