Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Negative Angle Parameters

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
oransen
870 Views, 3 Replies

Negative Angle Parameters

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.

 

3 REPLIES 3
Message 2 of 4
saseendrankombath
in reply to: oransen

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).

Message 3 of 4
oransen
in reply to: saseendrankombath

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.

 

 

Tags (1)
Message 4 of 4
saseendrankombath
in reply to: oransen

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report