hosyn Posted July 22, 2014 Share Posted July 22, 2014 it's possible ctrl-x and ctrl-y embed in lisp routine and how? Quote Link to comment Share on other sites More sharing options...
pBe Posted July 22, 2014 Share Posted July 22, 2014 (Defun c:Democopy (/ string 2ClipB) (vl-load-com) (if (setq string (ssget "_:S" '((0 . "TEXT")))) (progn (vlax-invoke (vlax-get (vlax-get (setq 2ClipB (vlax-create-object "htmlfile")) 'ParentWindow ) 'ClipBoardData ) 'SetData "Text" (cdr (assoc 1 (entget (ssname string 0)))) ) (vlax-release-object 2ClipB) ) ) ) (Defun c:Demopaste (/ string 2ClipB txtstring) (vl-load-com) (if (setq string (ssget "_:S" '((0 . "TEXT")))) (progn (setq txtstring (vlax-invoke (vlax-get (vlax-get (setq 2ClipB (vlax-create-object "htmlfile")) 'ParentWindow ) 'ClipBoardData ) 'GetData "Text" ) ) (vla-put-textstring (vlax-ename->vla-object (ssname string 0)) txtstring ) (vlax-release-object 2ClipB) ) ) ) Quote Link to comment Share on other sites More sharing options...
hosyn Posted July 22, 2014 Author Share Posted July 22, 2014 pBe It sounds your routine specially for text ,are there for any entity?? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted July 22, 2014 Share Posted July 22, 2014 It sounds your routine specially for text ,are there for any entity?? Try the CUTCLIP / PASTECLIP commands. Quote Link to comment Share on other sites More sharing options...
hosyn Posted July 22, 2014 Author Share Posted July 22, 2014 Thanxxxx Mr LEE MAC:) I try (command "copyclip" ) And i don't know what's difference between (command "copyclip" ) and (command "_copyclip" ) and (command ".copyclip" ) and (command "._copyclip" ) ??? and which one is better and why?? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted July 22, 2014 Share Posted July 22, 2014 And i don't know what's difference between (command "copyclip" ) and (command "_copyclip" ) and (command ".copyclip" ) and (command "._copyclip" ) ???and which one is better and why?? AutoCAD Command Prefixes An Introduction to Script Writing (see bullet points) Quote Link to comment Share on other sites More sharing options...
pBe Posted July 23, 2014 Share Posted July 23, 2014 pBe It sounds your routine specially for text ,are there for any entity?? Oops my bad. Quote Link to comment Share on other sites More sharing options...
wal_dab Posted February 12, 2015 Share Posted February 12, 2015 Thank you pBe : but how to select mutable text rather than one entity selection?? Thank you Quote Link to comment Share on other sites More sharing options...
pBe Posted February 15, 2015 Share Posted February 15, 2015 Thank you pBe : but how to select mutable text rather than one entity selection??Thank you Are you wanting to concatenate multiple string values into one? what are you planning to do with the results? paste into a text file? or for a text/mtext entity string value? Quote Link to comment Share on other sites More sharing options...
wal_dab Posted February 15, 2015 Share Posted February 15, 2015 Hi i want to select all text and copy their values to clipboard and paste to excel thank you very much Quote Link to comment Share on other sites More sharing options...
pBe Posted February 16, 2015 Share Posted February 16, 2015 Hii want to select all text and copy their values to clipboard and paste to excel thank you very much ALL text? in what format? one word or phrase per cell? this is very intriguing, post a cad file and a Excel file which shows the result you want Quote Link to comment Share on other sites More sharing options...
limfx Posted January 6 Share Posted January 6 text cad file I want to select all text and copy their values to clipboard and paste to excel Quote Link to comment Share on other sites More sharing options...
BIGAL Posted January 7 Share Posted January 7 (edited) Did you google ? Uses sort on Y so knows the order for excel, I think the example code solution was for multi line text and mtext. May have been Forums/Autodesk. Edited January 7 by BIGAL 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.