pmxcad Posted January 9, 2012 Posted January 9, 2012 Hello, I wanto copy text (by selecting) from xref en past it on de main drawing (in modelspace) on the same location and on layer "RUIMTENR" en layer color RED and text style standard. Can this be done by Lisp? Thanks, PmxCAD Quote
ScribbleJ Posted January 9, 2012 Posted January 9, 2012 (edited) It can be done by lisp but it can also be done just as easily by a simple script file utilizing AutoCad commands. This is something that can be done without any knowledge of LISP. Check your help file (by pressing the F1 key) and check the index for 'Scripts, about'. You can do this in a batch process as well. In your case you need to run the script in a file you want to copy from then within your script file, have it select some text on a certain layer with a reference point (i.e. 0,0,0) then have the script file open up another AutoCad file and have the script create a new layer then make that new layer active and paste the copied text to the same referenced point in the target file. If it is not on the correct layer then you can have the script file select the last entity and change it to the current layer that has the color settings you want. Make sure that the text color properties is set to ByLayer. I would be willing to bet that our great LISP routine coders here are probably already considering this or possibly even writing one out right now. Probably not though since this post has only been view a couple of times up to this point. Edited January 9, 2012 by ScribbleJ Clarity and typo's Quote
troggarf Posted January 10, 2012 Posted January 10, 2012 Hows about the command NCOPY (Nested Copy) Quote
Dadgad Posted January 10, 2012 Posted January 10, 2012 Hows about the command NCOPY (Nested Copy) I love NCOPY, use it all the time, perhaps in conjunction with COPYTOLAYER. The offset command can also offset something to another layer, with offset of zero, you might be home free. Quote
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.