Anonymous
928 Views, 3 Replies
02-18-2015
07:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
02-18-2015
07:29 AM
I'm attempting to export parts of a solid body as a surfacebody to STL. Using dataIO, the code that I tried to use was:
c# code:
Inventor.DataIO dataio = body.DataIO;
try
{
dataio.WriteDataToFile("STL", "C:\tmep\testbody.stl");
}
catch
{
/* Additional information: Assert.Fail failed. System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at Inventor.DataIO.WriteDataToFile(String Format, String FileName)
*/
}I'll admit my great ignorance for how to use the dataio object. I've not been able to export stl or step using this method, and I don't understand the error.
My end goal is to export the whole body as stl, and export different face combinations of the body as their own stl files. Is it possible with the current API? Do I have to use a translator instead of dataio? thanks for any help.
Edit: It appears that, perhaps, things will work out if I can define regions in the STL that I export. Is there a straightforward way to do this in inventor?
Solved! Go to Solution.