caddbob Posted March 13, 2012 Posted March 13, 2012 I have 2 horizontal lines 47" apart, i need to put 6 equally spaced lines between them. how do I do that? Quote
Jack_O'neill Posted March 13, 2012 Posted March 13, 2012 There are a number of ways, but I'd suggest you investigate the "divide" command. I think it was there in the old versions of LT...if not, check back and we'll try something else. Quote
bill_borec Posted March 14, 2012 Posted March 14, 2012 Welcome to the forum! Are we 'helping' you with a homework assignment? :-) You could also divide the distance by the number of spaces and offset one of the lines. Or do an array at the set distance between the elements. As Jack said, "Number of ways" to do this one. Good luck. Quote
SLW210 Posted March 14, 2012 Posted March 14, 2012 Divide 47 by 7 (number of spaces) or as stated DIVIDE a line that is 47" with number of segments=7. Quote
cadvision Posted March 14, 2012 Posted March 14, 2012 (edited) try this little lisp file, I've been using it since DOS AutoCAD 9 >> ;---------------------------------------------------------------------------- ; DFIT.LSP ; Array Specified Number of Entities Through Selected Distance ;---------------------------------------------------------------------------- (defun dtr(a) (* pi (/ a 180.0)) ) (defun rtd(a) (* 180.0 (/ a pi))) (defun c:dfit () ; SET VARIABLES AND MODES (setq cm (getvar "cmdecho")) (setvar "cmdecho" 0) ; ACCEPT USER INPUT (graphscr) (setq startpt (getpoint "\nPick beginning of array to fit: ")) (setq endpt (getpoint startpt "\nPick end: ")) ; CALCULATE REQUIRED DATA (setq oldbase (getvar "snapbase")) (command "snapbase" startpt) (setq oldang (getvar "snapang")) (command "snapang" (rtd (angle startpt endpt))) (setq number (getint "\nHow many divisions: ")) (setq spacing (/ (distance startpt endpt) number)) (setq objects (ssget)) ; ARRAY SELECTED ENTITES (command "array" objects "" "r" 1 number spacing) ; REINSTATE SYSTEM VARIABLES (COMMAND "snapbase" oldbase) (COMMAND "snapang" oldang) (command "cmdecho" cm) (princ)) Edited March 14, 2012 by SLW210 Add code TAGS!! Quote
SLW210 Posted March 14, 2012 Posted March 14, 2012 Please read the CODE POSTING GUIDELINES. I got you this time. 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.