Jump to content

selection sets in multiple drawings


salman

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 5 months later...
  • 6 months later...
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.

Link to comment
Share on other sites

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