Message 1 of 2
Open Assembly in Apprentice
Not applicable
06-10-2010
09:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've performed this task without a hitch and yet now I get the following error with this code. Is there something obvious I'm not doing? I'm using a path string as the object to be opened. The string comes from a textbox that was populated from an open dialog box.
The error: NullReferencedException was unhandled.
Code:
asmDoc = apprentice.Open(TextBox1.Text)
MessageBox.Show("Open = " & asmDoc.DisplayName)
fileSaveAs.AddFileToSave(asmDoc,_ MetroNewNameSave(strProjectDestination,_
asmDoc.FullFileName, txtOrigAssy.Text))
The error occurs on the 3rd line (fileSaveAs). Is there a problem with using a string as an object to be opened? The function MetroNewNameSave seems to be returning the correct path and doc to save. Thanks for any help!
