08-17-2021
05:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-17-2021
05:39 AM
Hi @adiazLRYTC
Just looking through your code, I see that you never create the ObjectCollection, you're just declaring a variable of type ObjectCollection. You also need to create it for the variable to not just be Nothing.
Dim ObjColl As ObjectCollection
Set ObjColl = ThisApplication.TransientObjects.CreateObjectCollection 'Create object collection
When it's created it'll exist and you can add objects to it
Jhoel Forshav
Download my free Inventor Addin - Hole Projector
LinkedIn | Ideas | Contributions | Blog posts | Website