Inventor drawing- Need iLogic for Tolerance standard

Inventor drawing- Need iLogic for Tolerance standard

gparamasivam
Enthusiast Enthusiast
1,427 Views
5 Replies
Message 1 of 6

Inventor drawing- Need iLogic for Tolerance standard

gparamasivam
Enthusiast
Enthusiast

Hi,

 

Inventor drawing,

In the hole callout detail, tapdrill hole tolerance has added manually. (See attachment Detail 1)

Is it possible to add the tolerance using iLogic?

Example thread and tolerance details as below:

Thread SizeSeriesMinMax
2.000-8UN-0.0040.015
2.000-12UN-0.0060.017
2.125-12UN-0.0050.016
1.875-12UN-0.0050.01

 

Thank and regards

Ganesh

0 Likes
Accepted solutions (1)
1,428 Views
5 Replies
Replies (5)
Message 2 of 6

WCrihfield
Mentor
Mentor

Hi @gparamasivam.  That's an extremely busy looking hole note you have there.  One option, when attempting to modify the contents of pre-existing hole notes is to access the objects FormattedText, then attempt to edit/rewrite that.  But this can be a difficult task, and gets more complicated with the more custom stuff and live references that are included.  Here is a link to an online help page that attempts to inform you a bit on the subject.  My first suggestion though would be that if this is something you commonly need to do, try setting this up within the Styles and Standards Editor dialog, within a Dimension style, last tab on the right ("Notes and Leaders"), select the radial button next to the 'Hole Note Settings' icon (top left), then click the "Precision and Tolerance" button (to the right), then expand the options in that dialog to set these thing up.  Then click the [Save] button.  Then if needed, right click on the main dimension style and choose 'Save to Style Library'.  That way it will always be set-up the way you want it, when using that dimension style.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.

If you want and have time, I would appreciate your Vote(s) for My IDEAS 💡or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 6

gparamasivam
Enthusiast
Enthusiast

Thank you for your quick reply 

As you described for the hole note style regarding but my concern is hole note tolerance should add through iLogic.

We have different types of thread and its tolerances.

Every-time time we add the tolerance in Click the hole note>Edit hole note>Precision and tolerance> add tolerance in tapdrill option as shown in attachment Detail 2.

Hope in Inventor, the every function is a proxy or parameter controlled.

So the tap-drill tolerance add option is included.

Hope you understand.

0 Likes
Message 4 of 6

gparamasivam
Enthusiast
Enthusiast

Could you please help me to create the iLogic function.

Actually i have taken the hole callout then i removed the {±TOL} [?] these and Right click>Edit hole note>Precision and tolerance>add tolerance manually which is mentioned below.

Example:

ThreadsizeSeriesMinMax
2.000-8UN-0.0050.015
2.000-12UN-0.0060.016
1.875-6UN-0.0040.014
1.500-8UN-0.0030.015

 

My requirement:

After taken the hole note, click the hole note and use iLogic form >select threadsize (2.000-8UN), the data mentioned tolerance has automatically applies to the hole diameter.

Hope you understand.

0 Likes
Message 5 of 6

WCrihfield
Mentor
Mentor
Accepted solution

I'm not seeing a way, through iLogic, to set something that deep within a hole/thread note without either altering the objects Style or altering attempting to alter its FormattedHoleThreadNote text itself.  If we edit the object's Style (a dimension style), it will obviously change the local document copy of this objects style permanently.  But it might be possible to achieve these very specific changes that way by code.

 

I'm not even sure it is possible to achieve this by attempting to edit the formatted text, because as you can see in the 'Edit Hole Note' dialog, is only showing one little "<TDDIA>" for the whole {tap drill diameter and its tolerance}, so all we would be able to do is add that "<TDDIA>" into the string, without being able to alter the details of the tolerance itself.  Not to mention that it would be a very long and confusing String (text), full of XML code & tags, that will be very difficult to navigate and get all the formatted text just the way you want it.  I have worked with some simple formatted text before, but nothing on this scale or level of complexity.

 

Here is an example iLogic rule you can use that will show you actual code 'behind the scenes' of that note's formatted text, just so you can get a better idea of what we would be dealing with here.  I have included some comments to help you decide how you want to use it, and how you prefer to show the results.

If ThisApplication.ActiveDocumentType <> DocumentTypeEnum.kDrawingDocumentObject Then
	MsgBox("A Drawing Document must be active for this rule to work. Exiting.",vbOKOnly+vbCritical, "WRONG DOCUMENT TYPE")
	Exit Sub
End If
Dim oDDoc As DrawingDocument = ThisApplication.ActiveDocument

'use this line if you prefer to pre-select the hole/thread note
Try
	oSelected = oDDoc.SelectSet.Item(1)
Catch
End Try
'or comment above, then uncomment next line to select it after you run the rule
'oSelected = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingDefaultFilter, "Select a Hole Note.")

'check to make sure you selected something and it is the right type of object
If oSelected Is Nothing Or TypeOf oSelected Is HoleThreadNote = False Then
	MsgBox("Either Nothing, or wrong object type, was selected.  Exiting rule.", , "")
	Exit Sub
End If

Dim oHNote As HoleThreadNote = oSelected

'display the contents of the FormattedText
'uncomment the next line to use it if you want
'MsgBox(oHNote.FormattedHoleThreadNote,,"") 'non-selectable, paragraph style display
a = InputBox("","FormattedHoleThreadNote", oHNote.FormattedHoleThreadNote) 'selectable, single line display

 

  That user interface dialog that comes up when you go to edit the hole/thread note is a very advanced tool that is meant to help the user assemble all these reference tags the way they want it, without having to know anything about coding.  I honestly don't know of a different way to do what you want by code, without editing the Style being used.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 6 of 6

gparamasivam
Enthusiast
Enthusiast

How to know the prompt or parameter names for this below function keys.?

gparamasivam_0-1628218510329.png