- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
so a year ago I made some ilogic rules for our department that take parts of our naming and put these parts into the correct iproperties automatically, inventor now automatically fills in the parts of our titleblock.
That was relatively easy, because a big part of the naming was constantly the same length.
It looked like this
123 123456 12 123 1 Partname
So the "partnumber" was always the same length and that was the base for the rules. The rules are will read the partnumber, revisionnumber and the partname.
Because we now have partnumbers, that have partnumbers with a different length, that rules only work for about 70% of our project.
To be precise we now have two lengths of partnumbers
123 123456 12 123 1 Partname
and
1234 123456 12 123 1 Partname
So my question is, is there a possibility to make the rules identify the length of the partnumber?
Btw here is an example code for the partnumber, I know its probably not good, but it works
If Len(ThisDoc.FileName(False)) > 21 Then Partnumber = 17 iProperties.Value("Project", "Part Number") = Left(ThisDoc.FileName(False), Partnumber) & " " iLogicVb.UpdateWhenDone = True End If
Solved! Go to Solution.