Hi Michael,
this sounds very cool! For STEP I use the following code (plus the code which retrieves files from the folder and calls Convert function) :
function Convert( FileName )
{
var gd = moi.geometryDatabase;
gd.open( FileName, true );
var xFileName = FileName.substr( 0, FileName.lastIndexOf('.') ) + '.3dm';
gd.saveAs( xFileName );
gd.fileNew( true );
}
So is that like instead of
gd.open( FileName, true );
I would use just
gd.fileImportSubD( FileName, true );
Thanks thousand times!
Stan
|