civilwar111 Posted June 3, 2021 Posted June 3, 2021 (defun C:elev_to_circle_4 () (setq h 0.7) (while (setq ent1 (car (entsel "\nSelev Niv 1"))) (setq p1 (getpoint "Donde:")) (setq ent1 (entget ent1)) (setq ent1 (cdr (assoc 1 ent1))) (setq ent1 (distof ent1 2)) (setq x (car p1)) (setq y (cadr p1)) (command "_circle" (list x y ent1) h) (command "_text" "j" "m" p1 h 0 (rtos ent1 2 3) "") ) ) My code works, but the z-elevation sets it to zero if I select the center or end of an element from autcad. Any ideas? Quote
Tharwat Posted June 4, 2021 Posted June 4, 2021 Disabling the OSNAP must fix it I believe. (command "_circle" "_none" (list x y ent1) h) Quote
Recommended Posts
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.