Negative Angle Parameters

Negative Angle Parameters

oransen
Collaborator Collaborator
1,194 Views
3 Replies
Message 1 of 4

Negative Angle Parameters

oransen
Collaborator
Collaborator

Imagine I create a line in a sketch angled at 12 degrees (above the x axis)

 

Then I create another line in the sketch angled at 12 degrees (below the x axis)

 

When I list the parameters programatically both give me a value in radians of +12 degrees.

 

So where is the specification of the angle direction stored? As a user I cannot input a negative angle, but I can see that it is negative. But how does a program know the true value of an angular parameter? Currently I get +12 for both lines.

 

0 Likes
Accepted solutions (2)
1,195 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Accepted solution

Hope the angle you give in dimension. And that is 12° and it will reflect in parameters. If you want to differentiate the position give the angle on the reverse direction i.e. 168° (180-12).

0 Likes
Message 3 of 4

oransen
Collaborator
Collaborator

It has occurred to me that 12° is a magnitude with no sign, and I need to see where that angle is applied to understand in which "direction" the angle is.

 

I probably need to closely look, programatically, at the line it is applied to, just as a user looks visually at the two lines.

 

Just guessing though.

 

See attached.

 

 

0 Likes
Message 4 of 4

Anonymous
Not applicable
Accepted solution

You can check the start and sketch end points of the lines to determine the direction. Sketch end point will give  -ve value of y

0 Likes