MoI discussion forum
MoI discussion forum

Full Version: Feature you coded for me doesn't work in V5

Show messages: All  1-6  7-8

From: Michael Gibson
25 Mar   [#7] In reply to [#6]
Hi Frederick,

re:
> Is there any way to bypass the asking and simply default to STL?

Yup, in ExportParts.js find line 22 that has this:
code:
if ( WaitForDialogDone() ) DoExportParts(objectpicker.objects);	

and change it to this:
code:
/*if ( WaitForDialogDone() )*/ DoExportParts(objectpicker.objects);	

That will bypass the asking stage and go immediately to the exporting.

Then to make it use .stl format find line 29 which has this:
code:
var d = moi.ui.commandUI['extension'].value;

and change it to this:
code:
var d = '.stl'; /*moi.ui.commandUI['extension'].value;*/


That will make it always use STL format instead of getting it from the UI control.

- Michael
From: fcwilt
25 Mar   [#8] In reply to [#7]
Hi Michael,

I can handle that.

I even understand most of it.

Frederick

Show messages: All  1-6  7-8