Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

View direction of vectors

Hi,

Is it possible to see in what direction a vector goes?

For instance, if I draw a polyline based shape in a counter clockwise direction, I obviously know the direction. But if I draw a shape which is built up out of different shapes, exploded, trimmed, and joined again, I have no idea of the direction of the vectors. For cnc tool radius correction, it's important to know in what direction it goes.

Comments

  • You can use a linetype with arrows.

    *ARROWS,Arrows -> -> ->
    A,1,[ZIG,ltypeshp.shx,r=-90,x=-0.25,y=0.25,s=0.25],-1
    
  • Also when changing Length in Properties - which end will change?

  • @Roy Klein Gebbinck said:
    You can use a linetype with arrows.

    *ARROWS,Arrows -> -> ->
    A,1,[ZIG,ltypeshp.shx,r=-90,x=-0.25,y=0.25,s=0.25],-1
    

    Roy, thank you!

    Feels a bit like a workaround, but in my workflow it actually works fine.

  • @Tom Foster said:
    Also when changing Length in Properties - which end will change?

    Will this work with closed polylines?

  • There are a few is anticlockwise lisps for plines then can do Pedit R.

    ;; get closed polygon's area

    (defun ss-pts2area (l)
    (/ (apply (function +)
    (mapcar (function (lambda (x y)
    (- (* (car x) (cadr y)) (* (car y) (cadr x)))))
    (cons (last l) l)
    l))
    2.)
    )

    ;_force pointset CCW
    (setq plent (entsel "\nPick pline"))
    (setq co-ord (mapcar 'cdr (vl-remove-if-not '(lambda (x) (= (car x) 10)) (entget (car plent)))))

    (if (< (ss-pts2area co-ord) 0)
    (command "pedit" plent "R" "")
    )

Sign In or Register to comment.
Origami
Origami is the Japanese word for paper folding. ORI means to fold and KAMI means paper and involves the creation of paper forms usually entirely by folding.

Powered by VanillaForums, Designed by Steam