Message 1 of 4

Not applicable
07-20-2020
02:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The exception message is: 'The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))'.
I'm trying to open Assembly using next code:
NameValueMap options = inventorApplication.TransientObjects.CreateNameValueMap();
options.Add("ExpressModeBehavior", "OpenExpress");
assembly = (AssemblyDocument)inventorApplication.Documents.OpenWithOptions(
assemblyFileName, // full/path/to/assembly.iam
options
);
And it works well except for one case.
When I create subassembly in the root assembly (and in this subassembly add some parts) using Assemble->Create button, this code gets this exception while trying open saved subassembly file.
If I create subassembly using File->New->Assembly, this code works as expected.
Does someone have any idea why it throws an exception and how to deal with this? 🙂
Thanks! 🙂
Solved! Go to Solution.