Jump to content

Copy an expression to the clipboard


jammie

Recommended Posts

Is it possible to print an expression to the clipboard?

 

Say for example

 

(setq a (rtos (* 2 pi) 2 4))
(print a <ms clipboard>)

 

The result of "a" can then be pasted directly from the clipboard into another program

 

I realise you can copy a string from a text object but just curious to see if their is any workaround

 

Thanks,

 

Jammie

Link to comment
Share on other sites

I found some articles teaching how to print an expression to the clipboard.

 

http://

discussion.autodesk.com/forums/thread.jspa?messageID=1168061

 

I hope it helps you.

Link to comment
Share on other sites

found some articles teaching how to print an expression to the clipboard.

 

http://

discussion.autodesk.com/forums/thread.jspa?messageID=1168061

 

I hope it helps you.

 

Thanks woodicko, that is a useful article. I will try installing DOSLIB and see how it goes

 

Regards,

 

Jammie

Link to comment
Share on other sites

Thanks VVA

 

That is exactly what I was looking for. I was not sure if it could be achieved using Lisp

 

I must do a little bit more research into exposing other programs through ActiveX and the correct syntax for callling on them but thank you for your help

 

Regards,

 

Jammie

Link to comment
Share on other sites

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