Hi Ed,
re:
> I’m looking for a way to easily select the faces that make up a Fillet immediately after creation.
Here's a way that could work - it will involve 2 scripts, one that you run before doing the fillet and one that you run after.
The first pre-fillet one will set the name property on all faces to mark them.
Then after you do the fillet, any faces that have that mark on them will have descended from an original face that was trimmed. Fillets being newly created faces will not have that mark so the second script will select faces that do not have the mark.
script: /* Mark faces, use before filleting */ var breps = moi.geometryDatabase.getObjects().getBReps(); for ( var i = 0; i < breps.length; ++i ) breps.item(i).getFaces().setProperty( 'name', '1' );
script: /* Select any unmarked faces */ moi.geometryDatabase.deselectAll(); var breps = moi.geometryDatabase.getObjects().getBReps(); for ( var i = 0; i < breps.length; ++i ) { var faces = breps.item(i).getFaces(); for ( var j = 0; j < faces.length; ++j ) { var f = faces.item(j); if ( f.name != '1' ) f.selected = true; } }
Maybe I can add some kind of built in mark for this so that only one post-fillet script would be needed.
- Michael
|