Jump to content

Recommended Posts

Posted

good day people:

 

I want to improve this routine can you help me?

It is very simple

 

I seek to make a selection of objects to make a mirror and delete them

but I search once selected the objects and the two points for the axis of symmetry

with enter you will be switching between the original objects and their mirror

this routine i made does it but it doesn't show the axis when i need to see it  :(

 

 

 

 

 

(defun C:|f (/ ss pt1 pt2)
(setq ss (ssget))
(setq pt1 (getpoint))
(setq pt2 (getpoint))
(grdraw pt1 pt2 -1 1)

(repeat 100
(setq gira (getreal "\nMirror <1>: "))
(if (equal gira nil)(setq gira 1))
(if (= gira 1)
(command "_mirror" ss "" pt1 pt2 "y" "" )
(command "_regenall")
)
);repeat


  (princ)
)

Posted
(setq pt2 (getpoint))
change
(setq pt2 (getpoint p1))

 

  • Like 1
Posted

excellent thanks

Posted

Just me

 

(setq pt1 (getpoint "\nPick 1st point "))
(setq pt2 (getpoint pt1 "\nPick 2nd point "))

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