About Make2D
All  1-10  11-15

Previous
Next
 From:  Michael Gibson
8368.11 In reply to 8368.8 
There's also a findStyle script method that's probably useful for part of this, it has a "Create if not found" parameter like this:

var style = moi.geometryDatabase.findStyle( 'stylename', true /*CreateIfNotFound*/ );

- 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
Next
 From:  MajorGrubert (CARLOSFERREIRAPINTO)
8368.12 
Hello Hep,

I'm sorry. Thanks a lot for the script!

Carlos
  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
Next
 From:  Michael Gibson
8368.13 In reply to 8368.12 
Hi Carlos, please try this version. Run it just after you use Make2D and it should move just the visible lines that were generated onto a style named "Visible lines". Thanks Hep for sharing your script to get started.

script: /* Move Make2D visible lines to their own layer */ var gd = moi.geometryDatabase; var hdn = gd.findStyle( 'Hidden lines', true ); var vis = gd.findStyle( 'Visible lines', true ); while ( vis.index > hdn.index ) vis.moveUp(); var objs = gd.getSelectedObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); if ( obj.styleIndex != hdn.index ) { obj.styleIndex = vis.index; } }

- 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
Next
 From:  MajorGrubert (CARLOSFERREIRAPINTO)
8368.14 
Hello Michael and Hep,

Thats is fantastic! It is exactly what i need. Great, just great support and community.

It makes a huge difference have direct contact with the developer and a healthy community willing to help.

Thanks a lot.

Carlos
  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:  hep
8368.15 
Hi Michael and Carlos

I am happy i could contribute a bit to this fantastic program and forum.
Moi3D is just a joy to use :-)

//Hep
  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-10  11-15