jmerch Posted January 13, 2011 Posted January 13, 2011 We have 3D isometric drawings that I want to place flow arrows on. Below is my code but it's not doing the "rotate, reference" correctly half the time. Why would this be? The Block I have coming in is initially set facing to the right, then I just need to rotate it to reference the two points that the user just clicked: (defun c:flow (/) (command "pspace") (setq pt1 (getpoint "\nPick First Point:")) (setq pt2 (getpoint "\nPick End Point (direction of flow):")) (command "-insert" "Flow Arrow" pt1 "" "" "") (command "rotate" "last" "" pt1 "R" pt1 "@.75,0" pt2) (command "move" "last" "" pt1 "@0,-.5") (command "chspace" "last" "" "pspace") (princ) ) Any help appreciated. Thanks! Quote
jmerch Posted January 13, 2011 Author Posted January 13, 2011 Through searching other sites I have found the answer. Below is the modified code if anyone else has the same issue. (command "rotate" "last" "" pt1 "R" "@" pt1 pt2) 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.