Hi,
Im trying to export my .iam to .obj format using iLogic. My goal is to export multiple instances of the .iam to .obj with parameter changes in between (I have 3 parameters with 2 to 3 possible values for each parameter, and I want to export with different combinations of those values).
I managed to export using a simple line:
ThisDoc.Document.SaveAs(ThisDoc.PathAndFileName(False) + ".obj", True)
However, the settings are wrong. It exports to millimeters while I need it to export to meters (/1000).
I found the following solution but I can't see to get it to work:
I'm getting an error on the last line (catastrophic error).
My question:
Is it possible to change the default .obj export settings somewhere in Inventor? This way I'd be able to simply use that one line to export to .obj.
If not, can anyone help me getting that other code to work?
Solved! Go to Solution.
Solved by w.poortinga. Go to Solution.
What line are you getting an error exactly? The SaveCopyAs line or the ChangeExtension line?
The SaveCopyAs line. That is, when I remove it I don't get an error.
I get the following error:
The user (hero) above fixed my problem (fixed the code) to make this work. See original thread with the code here: https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/fixing-quot-high-quot-resolution-exp...
Can't find what you're looking for? Ask the community or share your knowledge.