Hi everybody, i have one question.
Often I have a drawing for a holetablepart with more the one view. eg. View 1 for the topview, View 2 for frontview.
Now a have the first holetabel for the View 1. The holes are named like 1, 2, 3, 4, 5
the second hole table is a new holetabel and the first hole tabel for View 2.
And the are the holes also named 1, 2, 3, 4,
Is it possible to rename all holes in a holetable with an startincrment. eg in the View 2 starts the holes with 6 and all other holes then 1 number higher. like 7,8,9,10
Solved! Go to Solution.
Solved by VdVeek. Go to Solution.
Solved by blair. Go to Solution.
Perheps someone in Inventor custumazation can help as with an iLogic Rule or a vba-marcro
I don't think you can, you might be able to add a custom field to the table and then manualy add a some text referring to the view and table. Each Table stands on it's own with it's "own" data.
OK, for this time a accept the answer but it is not what i want.
I go to the idea station and post it as a nice to have feature in the hole table.
Thanky for your answer.
by
This simple iLogic-rule can do what you want if you only want numbers. I also wrote a script when you use the A1, B1... numbering for multiple views to make each hole on your sheet unique. Anyone interested in that?
Rob
Dim oDrawDoc As DrawingDocument Dim oSheet As Sheet Dim oHoleTable As HoleTable Dim oHoleRow As HoleTableRow Dim i As Integer = 0 oDrawDoc = ThisApplication.ActiveDocument oSheet = oDrawDoc.ActiveSheet 'iterate through Holetable's on active sheet. For Each oHoleTable In oSheet.HoleTables 'iterate through HoleTableRows in the HoleTable For Each oHoleRow In oHoleTable.HoleTableRows i = i+1 'change holetag number oHoleRow.HoleTag.Text = i Next Next
Hi Rob,
your rule is abolute fantastic, great and that what I want.
Very very thanks for the rule.
I hope that sometimes i can create rules like yours.
Thanks a lot
Jörg
I'm sure its a good way to fix the problem....now I just have to learn a little more (a lot more) about iLogic.
Thanks!
I quickly added an iLogic rule to a drawing, but didn't get the desired result. We typically label our holes as letters through each view. I have been using the roll up option and have changed the columns to denote only the hole description and quanity as we do not use "A1, A2...B1, B2". We just use the singular letter and dimension the XY coordinates as shown in the attachment.
I think I would need your script for A1, B1...then apply the rollup and column changes to the hole table to get my desired result.
Obviously I'm a novice, but thanks again for the help.
jfenter, I added the ilogic rule for renumbering the "A1, A2...B1, B2" notation.
Do you have any knowledge to rewrite this for your needs? other wise i have a look at it, this evening, to rewrite it for the A,B,C,A,B,A,B,C, option.
Rob.
Jfenter, i rewrote the ilogic rule so it can be used to change multiple hole tables with only Letters. Give it a try and let me know if it's working for you.
This script is changing all the holetables starting at A, B, C, D, E... AA, AB, AC, AD....
Rob.
Unfortunately, no it didn't work properly. At least for what I would like to accomplish. It ended up labelling each hole independently (picture attached "RESULT").
However, for as well as it does work, would there be a way to specifically label opposite side holes using a script such as this? We typically label surface holes with common letters and opposite surface holes of the same diameter and depth with an "X" prefix as shown in picture "DESIRED". We also add Z to edge holes.
I am willing to manually work around this issue as I have been, but your iLogic script leads me to believe there is an answer out there that would automatically populate these hole values. I assume adding the prefixes to the hole tags complicates the written rule.
Thanks again! I feel that I need some training on how to write iLogic rules.