Jump to content

Recommended Posts

Posted

Hi all,

 

Is it possible to select entities such as polylines using (ssget) in one drawing and then paste that selection in some other drawing. We can do that by using CTRL+C and CTRL+V but the drawing I am working on has some problem and these windows copy paste commands are not working in that drawing.

 

Thanks.

Posted

Hi Salman

 

Here is the Selection Set Function for Polyline includ it into your Lisp Program to select all polyline that are in a drawing;

 

(setq pl (ssget "_X" '((0 . "LWPOLYLINE"))))

 

Enjoy.

Regards

Tharwat

Posted

As an option wblock could possibly be used. Export the selection out & insert it into the next drawing

Posted
Copyclip / Pasteclip

Same as Ctrl+C or Ctrl+V.

 

 

You could export all the entity data and entmake it elsewhere. However, that's a lot of legwork and will not work on all objects. If you can't copy/paste, I'd wblock/insert.

Posted

Hi.

 

Try this also.

(defun c:poly (/ pl)

(setq pl (ssget "_X" '((0 . "LWPOLYLINE"))))

(command "_copyclip" pl ""

"_pasteclip" pause)

(princ "CadTutor Forum")

(princ))

 

Regards.

Tharwat

Posted (edited)

As posted over at AUGI, using ObjectDBX:

 

>

Edited by Lee Mac
  • 5 months later...
  • 6 months later...
Posted

Works great! Can it do multiple files?

Posted
Works great! Can it do multiple files?

 

It could definitely be made to copy to multiple files - when I get a chance, I'll perhaps include a version to do so.

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