Question about Export to STL
All  1  2-3

Previous
Next
 From:  Michael Gibson
12090.2 In reply to 12090.1 
Hi Frederick,

re:
> So how does the export on multiple objects into one STL look in code?

If you want it to do the same as the File > Export command you would turn on selection on all the parts that you want in the same file and then call moi.geometryDatabase.fileExport( 'filename' );

If you are stuck please post the script.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  fcwilt
12090.3 In reply to 12090.2 
Hi Michael,

Thanks for the help.

You provided the information I needed.

Currently I collect all selected objects with...

var objects = moi.geometryDatabase.getSelectedObjects();

...then de-select them all.

Then I iterate over the collected objects selecting, exporting, de-selecting each one, thus getting one STL file per each initially selected objects.

So instead of selecting each one I have to decide how to identify those objects that should be exported together to the same file.

Thanks again.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1  2-3