Jump to content

equally space lines between 2 points


Recommended Posts

Posted

I have 2 horizontal lines 47" apart, i need to put 6 equally spaced lines between them. how do I do that?

Posted

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.

Posted

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.

Posted

Divide 47 by 7 (number of spaces) or as stated DIVIDE a line that is 47" with number of segments=7.

Posted (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 by SLW210
Add code TAGS!!
Posted

They are using LT, so no lisp for them.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...