iLogic Issue-Create Drawing from Assembly

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Pulling my hair out trying to figure out this issue. This is part of a bigger rule but I narrowed it down to this code. From the assembly I am creating a new drawing file using the following code. For troubleshooting purposes the template file is in the same location as the assembly. The issue I am running into is if I open the assembly and run the rule Inventor will lock up and not respond. After restarting Inventor, if I uncomment the messagebox the rule runs just fine. If I comment out the message box again, it still works. The issue comes when I start Inventor for the first time and run the rule with the message box commented out. I've attached a video and dataset. Is there something I'm missing or is this a defect? Any insight would be great!
'create drawing
Dim oDrawingDoc As DrawingDocument
Dim DWGTemplate As String = ThisDoc.Path & "\Drawing Template.idw"
'messagebox.show(1)
oDrawingDoc = ThisApplication.Documents.Add(kDrawingDocumentObject, DWGTemplate,True)
DanV
Inventor 2014 SP1