Also, if going the code based automation route, there are 'events' that we can 'listen for' and react to, which could be used to run some code every time the event happens. The number of events that we can access/use through Inventor's API is limited, but the short list of events you see in the 'iLogic Event Triggers' dialog are only a small sampling which the iLogic add-in has made it easier for us to use, without having to know that much about how it works behind the scenes.
For example:
- Could 'listen for' when a different ModelState gets activated, then:
- Find a DVR (DesignViewRepresentation) in that same document, with the same name, then activate that also (simulating a 'Link' between the ModelState & DVR that way).
- If in an assembly, could iterate through all occurrences, try to find ModelStates for them with same name, if so, activate them (simulating a 'Link')
- Could 'listen for' when a different DVR gets activated, then:
- Try to activate a ModelState with the same name.
- Try to push that DVR change to all top level components, if it happened in an assembly.
- Could listen for when the 'member/factory edit scope' status gets toggled between 'active member only' and 'factory scope / all members' status, but the latest updates to Inventor has already added more notifications and options in that area, so not as popular now as it was in the 2022-2023-2024 releases of Inventor.
Just food for thought.
I have helped others on the Inventor iLogic forum develop code based solutions for similar automated processes, so there is definitely some potential in those areas. When 'custom' events (ones not listed in the iLogic Event Triggers dialog) get involved, then it is usually best to create an Inventor add-in to 'handle' (listen for & react to) those events. Add-ins usually load automatically when Inventor starts, then remain available/running/active in the background, reacting to events or custom user interface element interactions. Creating add-ins is not an option for some though (like me), so well designed external iLogic rules can sometimes be used to take advantage of those types of resources that have been made available to us. When using iLogic rules though, we only get access to them after Inventor creates or opens the first document, and only remain available while there are some documents open, and they must be 'ran' before they will take effect or do something, but can be ran by events also.
Wesley Crihfield

(Not an Autodesk Employee)