halam Posted November 15, 2017 Posted November 15, 2017 This piece of code will give this message. What is the reason i can not use a point of some object? " Points must be distinct. ; error: Function cancelled " (defun c:miv () (command "ucs" "v") (setq ss1 (ssget)) (setq a1 (getpoint "select point:")) ; can't use snap here? (command "mirror" ss1 "" a1 "@0,1" "Y") (prin1) (princ "*Cancel*") (command "ucs" "p") (PRIN1) ) Quote
halam Posted November 15, 2017 Author Posted November 15, 2017 I want to be ABLE to use snappoints Quote
ronjonp Posted November 15, 2017 Posted November 15, 2017 You can use snaps with getpoint: (defun c:test (/ os) (setq os (getvar 'osmode)) (setvar 'osmode 16383) (getpoint) (setvar 'osmode os) (princ) ) Quote
Roy_043 Posted November 15, 2017 Posted November 15, 2017 @Hans: This is such a classic issue... Replace: (command "mirror" ss1 "" a1 "@0,1" "Y") With: (command "mirror" ss1 "" "_non" a1 "_non" "@0,1" "Y") 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.