Jump to content

Horizontal Directional Drill Lisp

Recommended Posts


Hey guys,  I have a HDD bore I'm working on getting a rough sketch into autocad.  I have over 60+ rods on some of the drills.  I am wondering if there is anything that asks for typical rod length and then I can import either a .txt or excel file to get rod angles from?  The lisp I am looking for would, in this case, put polylines 15 feet long, back to back, at the respective pitches (-31%, -31%, -29%) which I converted into angles in degrees.


Let me know how I can go about this or if anyone wants more information.  Thank you.




Share this post

Link to post
Share on other sites

Here is a simple example:

(defun c:foo (/ d l p)
  ;; RJP » 2020-10-13
  ;; Depths
  (setq l '(0. 3. 7.5 12. 15.5 23 33 43 100))
  ;; Rod distance
  (setq d 15.)
  ;; Start point
  (setq p (list 0. 0. (car l)))
  ;; Make lines
  (foreach x (cdr l)
    (entmakex (list '(0 . "LINE")
		    '(8 . "RODS")
		    (cons 10 p)
		    ;; Set point + distance and at Z value in list
		    (cons 11 (setq p (list (+ d (car p)) (cadr p) x)))


Share this post

Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...