Using ilogic rules in a template file to run a macro works on part but not asse

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Basically what I have is a part template that runs a few different macros using ilogic. The part template works great on it's own but when I use said template to create a new part within an assembly the ilogic rules error out during the assembly save. I'm almost positive that it has to do with the part needing a flat pattern to run the other rules, so I guess my question would be...Is there a macro or something I can use that would allow for a new component to create a flat pattern on the initial save in the assembly environment? The other thing it may be is one of the macros has the following code in it, maybe it cannot be ran from the assembly environment?
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument
Thanks in advance