Is it possible to create an iLogic rule to insert a Part List item number into a part detail label?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
As the title says, I want to make view labels of my part details automatically show the appropriate item number of a part list. We generally have the assembly and its part list on the first pages, and the part details on the later pages. I don't think INV2022 actually added anything for this, so I guess an iLogic rule is the only way.
So I don't really know much about iLogic, my few scripts are extremely basic and this exceeds my knowledge of the software.
My idea of the script would be this :
(note that we never have parts with the same part numbers in the same assembly, and we don't use merge rows neither, only one part list per drawing, multiple pages)
Loop to check if a view is about a part (.ipt)
if it is, check if view label is visible/ if it isn't do nothing
if it is, compare the part number of the part with part numbers of the part list/ if it isn't do nothing
if it matches, label = " Item #'item_number' "/ if it doesn't match don't modify the label
probably end the compare loop once it checked every item of the part list
end loop once every view has been checked
That iLogic rule would exist inside the drawing template