+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Forum Newbie
    Using
    Civil 3D 2011
    Join Date
    Sep 2010
    Posts
    1

    Question How to find the XYZ intersection of a line with a 3D Polyline

    Registered forum members do not see this ad.

    Hi,
    I am putting together a lisp routine to automate the creation of a road out of a quarry.

    As part of the routine I am using polar to create a line ( a temporary construction line with no specific Z value) from a point at a known angle and default distance (greater than any possible distance to the 3D polyline), towards a 3D Polyline with which there is an intersection.

    My problem is that I need to find the XYZ value of the intersection.

    I have yet to start on the code for this in the hope that the wheel has already been invented.

    My thoughts are that;
    1) I need to cycle through the 3d polyline to find the 'inters' on a 2D basis of the segment that intersects the line.
    2) Having that 3d segment and the intersection point, calculate the gradient of the segment and the Z value at the intersection.

    Do I need to re-invent the wheel?

    Many thanks.

  2. #2
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,015

    Default

    Registered forum members do not see this ad.

    You can either use the inters function or you could use vla-intersectwith (look it up in the VLisp Developer's Help).
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

Similar Threads

  1. OSNAP doesn't find intersection of some lines
    By robnad in forum AutoCAD Beginners' Area
    Replies: 21
    Last Post: 22nd Nov 2012, 11:16 pm
  2. How to find the length of all drawing entities (line, arc, polyline, etc.)?
    By chaitanya_s in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 16th Feb 2010, 05:22 pm
  3. How to find intersection with extrude?
    By atsay714 in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 2
    Last Post: 12th Apr 2009, 03:23 am
  4. trace polyline to an intersection
    By Johntosh in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 9th Jan 2009, 04:10 pm
  5. Find points connected with line or polyline
    By Bane in forum AutoLISP, Visual LISP & DCL
    Replies: 9
    Last Post: 19th Aug 2008, 07:08 pm

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