+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Forum Newbie
    Using
    Map 3D 2016
    Join Date
    Feb 2018
    Posts
    3

    Default Showing polyline direction

    Registered forum members do not see this ad.

    I need to be able to see the direction of a polyline. I've tried the dirarrow.lsp that comes with Map 3d - works but is only temporary. I've seen other lisp that will insert blocks along the pline, but that's no good if you alter the pline.

    The best solution is a custom linetype with embedded ">" character - if it would only work properly. The issue is that the linetype only follows the polyline direction on straight segments, on arc segments it seems to depend on the arc direction (CW or CCW) regardless of the pline direction.
    I've attached a .dwg and a small screenshot. If you grip-edit one of the plines with arcs, you can see the "direction" change as the arc changes from CW to CCW or vice versa.
    Attached Images
    Attached Files

  2. #2
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    4,137

    Default

    Have you tried turning on the Linetype Generation?

  3. #3
    Forum Newbie
    Using
    Map 3D 2016
    Join Date
    Feb 2018
    Posts
    3

    Default

    Think I've used that once eons ago! Unfortunately it seems to make no difference to this problem. Thanks for the thought...

  4. #4
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    4,137

    Default

    That is curious, because it worked for me.
    Attached Images

  5. #5
    Forum Newbie
    Using
    Map 3D 2016
    Join Date
    Feb 2018
    Posts
    3

    Default

    Ah, not so curious. I thought that plinegen was just a global system variable, but now I see it is also an entity property. Problem solved! Thanks for the tip.

  6. #6
    Forum Newbie
    Using
    AutoCAD 2019
    Join Date
    Jan 2016
    Location
    Egypt
    Posts
    2

    Default

    Simply use reverse command

  7. #7
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    4,137

    Default

    Quote Originally Posted by ela3war View Post
    Simply use reverse command
    How does that help to see the direction of the polyline?

  8. #8
    Quantum Mechanic BIGAL's Avatar
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    10,589

    Default

    Registered forum members do not see this ad.

    I like eldon's idea, in the past exploded the pline pick the 1st section reversed if required then rejoined this made arrows go in correct direction.
    A man who never made mistakes never made anything

Similar Threads

  1. direction of polyline upon picked point
    By motee-z in forum AutoLISP, Visual LISP & DCL
    Replies: 9
    Last Post: 23rd Feb 2013, 09:41 pm
  2. To show the direction on 3D polyline
    By guhan in forum AutoCAD General
    Replies: 12
    Last Post: 17th Jul 2012, 09:42 am
  3. how to change the default direction of Arc with Polyline ?
    By pippobaudo in forum AutoCAD General
    Replies: 2
    Last Post: 6th Jan 2011, 08:05 pm
  4. Create linetype for showing flow direction
    By Susan-Skye in forum AutoLISP, Visual LISP & DCL
    Replies: 12
    Last Post: 7th Oct 2010, 07:16 pm
  5. Changing the direction of a polyline
    By Anacron in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 2
    Last Post: 1st Feb 2008, 06:19 pm

Tags for this Thread

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