All,
I'm scripting up a batch process that imports a bunch of .STEP files and translate them out to OBJ. During the process, Moi3D doesn't crash, but it just stops translating and hangs.
I tried import the same files via the GUI and am getting a "Unexpected condition (assert failed)" warning dialog that stops the process until user input to "Report", "Ignore" or "Ignore All".
Two questions. What would be causing this (step file attached that's crashing)? How do you handle this exception when it happens during as jScript run? Below is the function that I'm running all my .STP files through (if it has pertinent information in it). Attached is the actual .STEP file that's throwing the "error".
Thank you,
Clayton
/////////
function AdaptiveMesh( OutPath, StepArray)
{
var gd = moi.geometryDatabase;
gd.fileNew( true )
for ( var i = 0; i < StepArray.length; ++i )
gd.fileImport(StepArray[i]);
gd.deselectAll();
gd.getObjects().getBReps().setProperty( 'selected', true );
gd.saveAs( OutPath, 'NoUI=true; Output=ngons;Angle=32;' );
gd.fileNew( true );
}
//////////
|