DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

clockwise or Counter clockwise

Started by paulerens, December 07, 2008, 04:12:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paulerens

Can someone help me finding in a macro, if a plan or a vector is clockwise or Counter clockwise.

Thanks

Paul   ???

Mark Laing

It would take an arc to be clockwise or counterclockwise, but if you mean an arc drawn as a line, yes.
Are you asking us to disect a macro you have, and tell you what it does? if so, post it.
Are you asking us take something you drew and tell you something about it? if so, post it.
If neither, how about explaining.

paulerens

#2
If you convert a line to make a double line, the program asks <<ALIGN <left < center <right>>
This means that the program knows which direction the vector is drawn.
Therefore my question.Do exist a Sys() or something to find the direction?





DrollTroll

If I were to attempt such a macro, I'd have the user select the entity. Then I'd have the macro extract the first two points, and draw an arrow with the same points. That would show the direction of the points.

If I really needed the macro to determine "clockwise" or "counter-clockwise", I'd have to dust off my college textbook on vector math and review cross products.
25 years with DesignCAD

paulerens

Yes DT,
In my book there  Is an A and B to the line.  ;D

Now I do like this: I put two points beginning and end of a line , clockwise on the monitor.

If the First point of the line, is the closest to my first point subscribed, then the  line is clockwise.

But that is not comfortable  for the user

I was hoping that there is another way, sorry.

Paul.