How to add automatically tolerances to an autmatically created dimesion in 2d drawing by iLogic?

How to add automatically tolerances to an autmatically created dimesion in 2d drawing by iLogic?

artemijs.nille
Contributor Contributor
653 Views
4 Replies
Message 1 of 5

How to add automatically tolerances to an autmatically created dimesion in 2d drawing by iLogic?

artemijs.nille
Contributor
Contributor

Hello together,

 

i am working on drawing automation with iLogic.

At the momenti know how to create a dimension by creating an entities on a 3d modell.

See the code below

Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Blatt:1")
Dim Schnittansicht = Sheet_1.DrawingViews.ItemByName("B")
Dim genDims = Sheet_1.DrawingDimensions.GeneralDimensions

Dim AnsaugInnen = Schnittansicht.GetIntent("Sheet Metal (mm):2","AnsaugDKanteDSInnen")

Dim AnsaugDDS = genDims.AddDiameter("AnsaugDDS", Schnittansicht.SheetPoint(1.3, 1.1), AnsaugInnen)

After this code i get the dimension of my diameter.

The value is Ø95

 

Now i would like to add a tolerance: Ø95 +-1 with iLogic rule to this dimension "AnsaugDDS"

 

If it is possible it would be great if could explain me how.

Thank you in advace.

Artemijs

0 Likes
Accepted solutions (1)
654 Views
4 Replies
Replies (4)
Message 2 of 5

Ralf_Krieg
Advisor
Advisor
Accepted solution

Hello

 

maybe this?

AnsaugDDS.NativeEntity.Tolerance.SetToSymmetric(1)

R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 3 of 5

artemijs.nille
Contributor
Contributor

Thank you very much for a fast reply.

It worked, but currently i have a precision of this tolerance 0,00 so i have Ø95-+1,00.

How can i change it to Ø95-+1?

0 Likes
Message 4 of 5

Ralf_Krieg
Advisor
Advisor

Hello

 

AnsaugDDS.NativeEntity.TolerancePrecision(0)

R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 5 of 5

artemijs.nille
Contributor
Contributor

thank you again

i had to change it a little bit that it works:

AnsaugDDS.NativeEntity.TolerancePrecision = 0

 

0 Likes