# EdgeType Confusion

**URL:** <https://forums.sketchup.com/t/edgetype-confusion/78882>\
**Category:** Ruby API\
**Created:** [October 12, 2018, 12:29am UTC](https://forums.sketchup.com/t/edgetype-confusion/78882 "2018-10-12T00:29:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![indie3d](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/indie3d/32/187598_2.png) [@indie3d](https://forums.sketchup.com/u/indie3d)\
**Post date:** [October 12, 2018, 12:29am UTC](https://forums.sketchup.com/t/edgetype-confusion/78882/1 "2018-10-12T00:29:41Z")

</div>

Hello developers,

I am not sure what is happening to the edges when using the code below…

```ruby
model = Sketchup.active_model # Open model
model.rendering_options["EdgeType"] = 1

```

The edges vanish and fail to be seen even when the hidden view is active. Does anyone have a clue what is actually happening to the edges?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [October 12, 2018, 2:55pm UTC](https://forums.sketchup.com/t/edgetype-confusion/78882/2 "2018-10-12T14:55:22Z")

</div>

No idea, but making this change causes strange controls to appear in the Style \> Edit \> Edge panel.

---

<div class="post-metadata">

**Author:** ![DaveR](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/daver/32/7601_2.png) [@DaveR](https://forums.sketchup.com/u/DaveR)\
**Post date:** [October 12, 2018, 2:58pm UTC](https://forums.sketchup.com/t/edgetype-confusion/78882/3 "2018-10-12T14:58:13Z")

</div>

> [@indie3d](#):
>
> model = Sketchup.active\_model # Open model model.rendering\_options[“EdgeType”] = 1

The Edge settings switch to the sort of display shown when a sketchy edge style is selected. I expect the edges are not displayed because there are no PNG images to display like there would be in a normal sketchy style.

---

<div class="post-metadata">

**Author:** ![slbaumgartner](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/slbaumgartner/32/7302_2.png) [@slbaumgartner](https://forums.sketchup.com/u/slbaumgartner)\
**Post date:** [October 12, 2018, 4:51pm UTC](https://forums.sketchup.com/t/edgetype-confusion/78882/4 "2018-10-12T16:51:30Z")

</div>

I don’t know the specific answer but I note that this is an area in which the Ruby API documentation is almost useless. It merely lists rendering options and constants without explaining what any of them do!

---

<div class="post-metadata">

**Author:** ![indie3d](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/indie3d/32/187598_2.png) [@indie3d](https://forums.sketchup.com/u/indie3d)\
**Post date:** [October 13, 2018, 2:28am UTC](https://forums.sketchup.com/t/edgetype-confusion/78882/5 "2018-10-13T02:28:11Z")

</div>

> [@DanRathbun](#):
>
> No idea, but making this change causes strange controls to appear in the Style \> Edit \> Edge panel.

 ![1](https://global.discourse-cdn.com/sketchup/original/3X/1/b/1bc2caa08448ba221f2bdf14bed8e9a52a08b7a9.png)

 ![2](https://global.discourse-cdn.com/sketchup/original/3X/b/0/b0a04c0596359fa2794a4802901233d273b7be6c.png)

I did not notice the Edge edit menus changing so good catch. There must be a good explanation for this.

> [@DaveR](#):
>
> The Edge settings switch to the sort of display shown when a sketchy edge style is selected. I expect the edges are not displayed because there are no PNG images to display like there would be in a normal sketchy style.

 ![4](https://global.discourse-cdn.com/sketchup/original/3X/5/4/543efb9c636437892fa82eae243521deaaa7f06e.png) ![5](https://global.discourse-cdn.com/sketchup/original/3X/a/c/ac0a8610fde1c214b59c4742bac9a59f494bb978.png)

@DaveR think you are on to something by saying the edge is not displayed because no PNG image is available, but why the image below doesn’t show the empty bounding box like the above image?

 ![2](https://global.discourse-cdn.com/sketchup/original/3X/b/0/b0a04c0596359fa2794a4802901233d273b7be6c.png)

> [@slbaumgartner](#):
>
> I don’t know the specific answer but I note that this is an area in which the Ruby API documentation is almost useless. It merely lists rendering options and constants without explaining what any of them do!

I agree with you 100%. Most useful information about API code is found outside the official API Documentation. By this I mean forums post but the problem is they are sometimes difficult to find.

Here are some Rendering Options forum posts I found to be useful…

- [rendering\_options, "back edges" • sketchUcation • 1](https://sketchucation.com/forums/viewtopic.php?f=180&t=30552)
- [[Code] Sketchup.send\_action() : Arguments to • sketchUcation • 1](https://sketchucation.com/forums/viewtopic.php?f=180&t=34840)

Thank you, everyone!

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [October 14, 2018, 4:48pm UTC](https://forums.sketchup.com/t/edgetype-confusion/78882/6 "2018-10-14T16:48:13Z")

</div>

I agree with Dave. It most likely means 0 == normal (vector), 1 == sketchy (raster).
