Tolerance

Tolerance

martinhoos
Advocate Advocate
350 Views
2 Replies
Message 1 of 3

Tolerance

martinhoos
Advocate
Advocate

Hello together,

is there a solution to change the +0,50 and -0,20 via iLogic  like:

 

If nw < 300 Then

????

End If

 

 

Thanks in advance

Regards Martin

 

 

Unbenannt.JPG

0 Likes
Accepted solutions (1)
351 Views
2 Replies
Replies (2)
Message 2 of 3

ekinsb
Alumni
Alumni
Accepted solution

This will do it.  The sample code below is just getting the first dimension it finds on the sheet so you'll need to do something smarter.

 

Dim drawDoc As DrawingDocument = ThisDoc.Document

Dim drawDim As DrawingDimension
drawDim = drawDoc.ActiveSheet.DrawingDimensions.Item(1)

If drawDim.ModelValue > 5 Then
    drawDim.Tolerance.SetToDeviation(0.2, 0.1)
Else
    drawDim.Tolerance.SetToDeviation(0.15, 0.075)
End If

Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 3 of 3

martinhoos
Advocate
Advocate

Thanks Brian,

that will help me alot.

Regards Martin

0 Likes