Jump to content

Recommended Posts

Posted

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

Posted (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 by ScribbleJ
Clarity and typo's
Posted
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.

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