+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
  1. #1
    Senior Member
    Using
    Civil 3D 2008
    Join Date
    Feb 2008
    Posts
    294

    Default pavement jointing lisp

    Registered forum members do not see this ad.

    i know this would be cheating but it would save a lot of time

    anyone know of a pavement jointing lisp that would create a jointing layout for a given closed polyline - with specified minimum and max lengths and area ratios.
    And would never create acute angles.

    ???

    Reckon this could be done??

  2. #2
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,780

    Default

    You would need to pick horizontal and vertical control lines then corresponding limits.

    You can then easily put rules in place divide max joint length into total length or fixed width with reminder.

    If object outside is polyline you over extend you joint lines then use trim with a fence. Secret is fence is another poly line offset from original poly line.

  3. #3
    Super Member
    Using
    AutoCAD not applicable
    Join Date
    Jul 2007
    Posts
    639

    Default

    Here is a start.. for you to play with...
    It divdies a control line and copies a line (joint) in one direction..
    I guess you could add the polyline trim..as per BIGAL's suggestion.

    BTW I think this was CarlB's routine , I just added the approx centres bit..


    Code:
     
    (defun c:place ()
      (setvar "cmdecho" 0)
      (setq PtList nil SegTot 0 Oflag T)
      (princ "\nSelect object(s) to distribute:")
      (setq ss (ssget))
      (initget 1)
      (setq ptbase (getpoint "\nSelect base point of objects: "))
      (setq Pt1 (getpoint "\nSelect starting point <use object>: "))
      (if (not Pt1) (setq Pt1 PtBase Oflag nil))
      (initget 1)
      (setq Pt2 (getpoint Pt1 "\nPick point for last object: "))
      (initget 1)
     
      (setq TDist (distance Pt1 Pt2))
      (setq TAng (angle Pt1 Pt2))
      (setq Numdiv1 (getreal "\nEnter approx divide centres :"));---USER ENTERS APPOX CENTRES, SET TO `NumDiv1'
      (setq dn1 (/ TDist Numdiv1))  ;-----------------------DIVIDES DISTANCE BY CENTRES, SET TO `DN1'  
      (setq NumDiv (fix (+ dn1 0.5))) ;--------------------FIXS `DN1' TO NEAREST REAL NUMBER
      (setq Seg (/ TDist NumDiv))
      (if Oflag (setq PtList (cons Pt1 PtList)))
      (repeat NumDiv
        (setq SegTot (+ SegTot Seg))
        (setq Pt (polar Pt1 Tang SegTot))
        (setq PtList (cons Pt PtList))
      )
      (setq PtList (reverse PtList))
      (foreach x PtList
          (command "._copy" ss "" Ptbase x)
      )
      (setvar "cmdecho" 1)
      (princ)
    )
    If at first you don't succeed, then maybe failure is more your style.

  4. #4
    Senior Member
    Using
    Civil 3D 2008
    Join Date
    Feb 2008
    Posts
    294

    Default

    thanks guys

    I like the place lisp by the way

    I 'll have a look further into it and repost what i come up with.

    Thanks

  5. #5
    Full Member
    Using
    AutoCAD 2008
    Join Date
    Feb 2008
    Posts
    53

    Default

    I have been trying to do this too. I found a lisp that distributes blocks along a polyline, but cant get it to rotate the blocks along with the line. They stay oriented the same way.

    I am trying to create a path, two tiles wide, along a polyline..

  6. #6
    Senior Member
    Using
    Civil 3D 2008
    Join Date
    Feb 2008
    Posts
    294

    Default

    post lisp so we can have a look

  7. #7
    Super Member
    Using
    AutoCAD not applicable
    Join Date
    Jul 2007
    Posts
    639

    Default

    No need to use lisp, the MEASURe command does exactly what you are trying to do.
    If at first you don't succeed, then maybe failure is more your style.

  8. #8
    Senior Member
    Using
    Civil 3D 2008
    Join Date
    Feb 2008
    Posts
    294

    Default

    i know - i just wanted to see what he was using instead

  9. #9
    Super Member
    Using
    AutoCAD not applicable
    Join Date
    Jul 2007
    Posts
    639

    Default

    Sorry russell, my comments were directed to steniz, not you.
    If at first you don't succeed, then maybe failure is more your style.

  10. #10
    Senior Member
    Using
    Civil 3D 2008
    Join Date
    Feb 2008
    Posts
    294

    Default

    Registered forum members do not see this ad.

    Nah its cool - so on a different note - mate where did the origin pic go. haha

Similar Threads

  1. problem, trying to running a list of lisp from within a lisp
    By twind2000 in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 20th Aug 2007, 04:27 pm
  2. calling another lisp from within my lisp
    By thalon in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 22nd Feb 2006, 09:56 pm
  3. siding, roof tile, pavement tile images ??
    By lepusha in forum Blocks, Images, Models & Materials
    Replies: 1
    Last Post: 26th Feb 2004, 01:13 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts