Jump to content

Multiple Selection Sets To One Line Lisp


mbrandt5

Recommended Posts

Does anyone know of a lisp in which I can make multiple selection sets line up with a line?

 

 

For example you could select a number of groups and assign corresponding points with the groups the select a vertical line along the y axis have all selection sets and there selected points snap to that line.

 

 

Example start and end result included

ObjectLineUp.pdf

Link to comment
Share on other sites

We kinda have an idea how do that mbrandt5. Hows about posting a drawing sample for us to look at. the pdf doesnt really explain a what a "group" is.

Link to comment
Share on other sites

  • 2 weeks later...

This ?

 

(defun c:Test (/ s e p ss bs)
 (if (and (setq s (car (entsel "\nSelect Vertical Line :")))
          (eq (cdr (assoc 0 (setq e (entget s)))) "LINE")
          (equal (car (setq p (cdr (assoc 10 e))))
                 (car (cdr (assoc 11 e)))
                 1e-4
          )
     )
   (progn
     (princ "\nSelect objects to move ")
     (while
       (and (setq ss (ssget "_:L"))
            (setq bs (getpoint "\nSpecify base point for objects :"))
       )
        (command "_.move"
                 ss
                 ""
                 "_none"
                 bs
                 "_none"
                 (list (car p) (cadr bs) 0.)
        )
     )
   )
 )
 (princ)
)

Link to comment
Share on other sites

Anyone know of a lisp that does such a thing or willing to help me out with writing it?

 

What Tharwat posted seems to work really well for what you are asking.

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