Message 1 of 5

Not applicable
09-30-2010
06:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to start up Inventor, open an assembly and save it to stp using API (C#).
This works perfectly fine with parts, but not with assemblies.
doc.SaveAs("fil.stp", true); // doc is an iam-file (Inventor.Document)
...gives me error: "Invalid parameter... HRESULT: 0x80070057 (E_INVALIDARG))".
I start up Inventor visually so I know that the assembly opens up correctly with all parts and subassemblies.
If I do it manually it works fine with Export -> CAD Format -> STEP (stp).
Does anyone have any ideas why or what I'm doing wrong?
Thanks!
Solved! Go to Solution.