copy string to clipboard

copy string to clipboard

robert06
Collaborator Collaborator
3,998 Views
4 Replies
Message 1 of 5

copy string to clipboard

robert06
Collaborator
Collaborator

How to copy a string - etc 'dwgname' variable - to windows clipboard in lisp?

 

Klicking a folder shortcut during "saveas" destroys dwg name, so it would be good to have it on clipboard, when issuing the custom saveas command.

0 Likes
Accepted solutions (1)
3,999 Views
4 Replies
Replies (4)
Message 2 of 5

paullimapa
Mentor
Mentor

At AutoCAD command prompt, type DWGNAME

Use the mouse to select the returned drawing name in the Command Line and then hit Ctrl+C keyboard combination to copy to clipboard.

 

 

Area Object Link | Attribute Modifier | Dwg Setup | Feet-Inch Calculator
Layer Apps | List on Steroids | VP Zoom Scales |Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 5

gpcattaneo
Advocate
Advocate
Accepted solution
(vlax-invoke
    (vlax-get (vlax-get (vlax-create-object "htmlfile") 'ParentWindow) 'ClipBoardData)
    'setData
    "TEXT"
    (getvar 'dwgname)
)

 

Message 4 of 5

robert06
Collaborator
Collaborator

That's it, thank you gpcattaneo!

 

Robert

0 Likes
Message 5 of 5

stevor
Collaborator
Collaborator
0 Likes