gpd Posted November 16, 2011 Posted November 16, 2011 Hi, Consider following code (command "move" obj "" p1 pause) when the command reaches 'pause' If I right click (to keep the object in same location) instead of left click, the object automatically moves to some strange location. Same is the case with copy command. I noticed same happens even if we use the commands manually. This happens with all the entities line/pline/block etc. Can somebody explain this behaviour of AutoCAD. Thanks. Quote
Lee Mac Posted November 16, 2011 Posted November 16, 2011 When right-clicking at the prompt: Specify second point or <use first point as displacement>: You are selecting to: . This means the vector from the origin to the first selected point is used as the displacement vector. e.g. Quote
alanjt Posted November 16, 2011 Posted November 16, 2011 Just cheat and use the acet-ss-drag-move function (if you have Express Tools). eg. ;; (acet-ss-drag-move <selection-set> <base-pt> [<prompt>] [<hilight> [<cursor>]]) (defun c:test (/ ss p1 p2) (if (and (setq ss (ssget "_:L")) (setq p1 (getpoint "\nSpecify base point: ")) (setq p2 (acet-ss-drag-move ss p1 "\nSpecify second point: " T)) ) (command "_.move" ss "" "_non" p1 "_non" p2) ) (princ) ) 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.