Hide edges in model


#1

I was wondering what method to use to hide the edges?


#2

Try using “Drawingelement.hidden=” method for your edges (i.e., “edge.hidden = true”).


#3

@ecw, try to use ERASER+CTRL (hold) and select the lines you want to hide. Sir @Geo teach me this, thanks to him.

also try my own way, click the lines you want to hide and right click then select hide or soften.

-Kage


#4

Hi, Its shift to hide .and ctrl to soften an edge.

Phil


#5

Hi @SketchupKage01

Phil is correct, my mistake.
It seems my fingers can remember the right key, but my mind cannot.


#6

Thanks I’ll try this.

If I am creating the faces like this:

face = group.entities.add_face pts

How can I grab those edges.
As in, what do I make edge = ?

I tried this:

        face = group.entities.add_face pts
        edge = group.entities.add_line pts

        status = edge.hidden = true

But it did not work


#7

Found it! Thanks for the help!


#8

Because the OP didn’t actually tell us how he did it…
Here’s a way…

face = group.entities.add_face(pts)
group.entities.grep(Sketchup::Edge).each{|e| e.hidden=true }

This adds the face to the group and then hides all edges inside the group.