Position of automatically created angle dimension

Position of automatically created angle dimension

iogurt1
Advocate Advocate
1,337 Views
3 Replies
Message 1 of 4

Position of automatically created angle dimension

iogurt1
Advocate
Advocate

Hello all. I am getting into drawing automation and have had some success creating linear dimensions between work points. The next thing I am working on now is to add an angular dimension to my drawing. With the code below, it works and it does create an angle dimension, but it always adds the opposite angle of what I want. Is there a way to better define the output (see pictures)? My code snippet looks like this:

 

SyntaxEditor Code Snippet

Dim oTaper As GeneralDimension
oTaper  = oGeneralDims.AddAngular(oPt4, intent5, intent6)

 

I suspect it can be handled by where I place the oPt4 but haven't been able to get it right, even if I move this point. Thanks in advance!

Edit: intent5 and 6 are faces

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

Jon.Balgley
Alumni
Alumni
Accepted solution

Hi --

 

I think what you are looking for is the "UseQuadrant" argument.  

 

In the attached drawing, I have an iLogic rule (and form) that will place the text-point of the dimension in a different place, depending on the setting of the "smallSide" parameter in the drawing (use the Form to see it work).  If you follow the logic of the part's parameters and the placement of the text-point of the dimension, you'll see that the text falls into a different "quadrant" based on the "smallSide" setting.  The "UseQuadrant" option of AngularGeneralDimension or ("AddAngular") says to measure the angle of the same quadrant as the text-point.  See if that does the trick for you.


Jon Balgley
Message 3 of 4

iogurt1
Advocate
Advocate

Thanks Jon! That worked like a charm 🙂

0 Likes
Message 4 of 4

iogurt1
Advocate
Advocate

Hey Jon. Me again. I was wondering if you knew a solution to this one as well: http://forums.autodesk.com/t5/inventor-customization/create-quot-linear-diameter-quot-with-ilogic/td...

 

I am slowly collecting all the code snippets for all the different dimension "types" (Linear, Angle, Diameter, and so on...) so I can then re-use them later on. The process of gathering them is what takes a while 🙂
Maybe there is a list online that I haven't found yet that explains all these?

Thanks again

0 Likes