Message 1 of 4
ObjectCollection Valid Objects to Cast Changed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I recently upgraded To 2025 Inventor And noticed a weird behavior change With Object Collections. I went From 2023 To 2025 so I'm not sure if this behavior change was present in 2024 or not.
I have an old iLogic rule, which used an objectcollection To collect strings. I'm not sure why it was written that way to begin with but it seems you cannot cast a string into an objectcollection anymore. I get "Specified cast is not valid" now. This rule works in 2023 and earlier, but not in 2025:
Dim oc As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection
oc.Add("Test")
It's not really an issue since there are other container objects I can use, but i found it odd that this change was made. Just curious if this was an intended change.