Any esprit users out there?

Oct 31, 2014 5 Replies

Anybody know how to select surfs by color, without knowing the exact color of the surf your picking?



I got 2 surfs on top of each other, and i need to put one of em on a different layer. I need a select "all color" by picking on the thing.



Any ideas? Seems like a pretty common thing to do?


your talking vb and maybe. But i figured its such a common thing it would be in the main menu

I could give it a try in VB if you still want it.

Or you could export IGES and do it in Mastercam. Then delete the whole mess and import the stuff that is needed.

DanP

I wonder if i check "stich it into a solid" when i open the iges file? Maybe i will get a solid and some surfs, then i can mask them individually? Then put them on their own layers. Solids on one, surfs on another. That would work...if it works.

Start VB add and run this

Sub SelectByColour() On Error Resume Next

Dim SelectedObject As Esprit.GraphicObject, ObjectHandler As Esprit.GraphicObject Set SelectedObject = Document.Group.Item(1) For Each ObjectHandler In Document.GraphicsCollection If ObjectHandler.Color = SelectedObject.Color Then Call Document.Group.Add(ObjectHandler) Next End Sub

Before running select one element, after running all elements with that element colour will be selected.

DanP

very nice. Looks easy to build on. I cant wait to try it out. Usually I dont want to go to work. nice.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required