Am I updating my files incorrectly (VB Question)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a standalone VB program in VB2010 Express that I am using to read parameters from an Excel file, and in turn update the parameters of an Inventor Assembly, and print drawings based off this.
The assemblies are sheet metal doors.
I have a drawing master file, which contains all the sketches I use to derive my parts and in turn create an assembly.
The problem I am having is, to me, it seems like the files are either not updating correctly, or the process is going too quickly that it doesn't have time to update. When the door size changes from 36"W x 84"H to 48"W x 96"H, for instance, parts of the internal door assembly are left sticking out, as if they didn't have time to register the size change and regroup, and are stuck in mid-air while the program continues on it's way. (See PDF's attached)
My VB structure looks something like this:
_invApp.SilentOperation = True
'open the master drawing files for the door and frame _invApp.Documents.Open("drawing_master_file.ipt") _invApp.ActiveDocument.Update() _invApp.ActiveDocument.Save() _invApp.ActiveDocument.Close() 'open each piece of the assembly to update the files _invApp.Documents.Open("each_individual_part_of_the_door_and_frame.ipt") _invApp.ActiveDocument.Update() _invApp.ActiveDocument.Save() _invApp.ActiveDocument.Close() 'open and update the frame assembly _invApp.Documents.Open("complete_frame_assembly.iam") _invApp.ActiveDocument.Update() _invApp.ActiveDocument.Save() _invApp.ActiveDocument.Close() 'open and update the door assembly _invApp.Documents.Open("complete_door_assembly.iam") _invApp.ActiveDocument.Update() _invApp.ActiveDocument.Save() _invApp.ActiveDocument.Close() 'open and update the final assembly model _invApp.Documents.Open("final_assembly_door_and_frame.iam") _invApp.ActiveDocument.Update() _invApp.ActiveDocument.Save() _invApp.ActiveDocument.Close() 'open, update, and print drawing file for the final assembly _invApp.Documents.Open("drawing_file.idw") _invApp.ActiveDocument.Update() _invApp.ActiveDocument.Save() _invApp.ActiveDocument.Close()
I am hoping I conveyed my problem clearly. If not, please let me know.