03-13-2020
11:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-13-2020
11:39 AM
Hey Jerry,
The way I ended up doing this was by saving a template assembly that was empty, but had the ilogic code programmed to add the parts I wanted on startup.
Then from your current assembly (or in my case it was a part file) run code to just open that template
In my case that was this:
'Open Assembly File ThisDoc.Launch("S:\Engineering\Inventor\Styles and Standards\Templates\iLogic-Conduit-ASM.iam")
As soon as that opens all the ilogic programmed to run on startup kicks in and treats that assembly as active to place everything.
Hopefully this helps, can provide some more specific code from my scenario if needed, but I suspect it won't be directly relatable.
Cheers,
Luke