# Changing Style Parameters?

**URL:** <https://forums.sketchup.com/t/changing-style-parameters/7478>\
**Category:** Ruby API\
**Created:** [February 22, 2015, 7:55pm UTC](https://forums.sketchup.com/t/changing-style-parameters/7478 "2015-02-22T19:55:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![barry\_milliken\_droid](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/barry_milliken_droid/32/4612_2.png) [@barry\_milliken\_droid](https://forums.sketchup.com/u/barry_milliken_droid)\
**Post date:** [February 22, 2015, 7:55pm UTC](https://forums.sketchup.com/t/changing-style-parameters/7478/1 "2015-02-22T19:55:35Z")

</div>

I see the Sketchup.break\_edges= method but I don’t want to use it.  
First, I see that adding edges from script DOES NOT trigger line breaks anyway.(?)  
After my script adds edges, I don’t want to prevent user from breaking edges, but I want her to be aware if any breaks occur. So I’d like to turn on the “endpoints” setting in the current style for edges.

I see that I can:  
mod = Sketchup.active\_model  
ro = Sketchup.active\_model.rendering\_options  
puts "Line ends " + ro[“DrawLineEnds”].to\_s  
ro[“DrawLineEnds”] = true

But how can I change the numeric value, say to 7 or 8 to ensure that users sees any line breaks?

---

<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:** [February 22, 2015, 9:32pm UTC](https://forums.sketchup.com/t/changing-style-parameters/7478/2 "2015-02-22T21:32:36Z")

</div>

There are two rendering options that affect this part of style. “DrawLineEnds” is a boolean that turns the option on and off, and “LineEndWidth” is an integer that says how large to draw the ends. You may also be interested in “ExtendLines”, the boolean for turning on line extensions, and “LineExtension”, the integer value by which to extend.

---

<div class="post-metadata">

**Author:** ![barry\_milliken\_droid](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/barry_milliken_droid/32/4612_2.png) [@barry\_milliken\_droid](https://forums.sketchup.com/u/barry_milliken_droid)\
**Post date:** [February 22, 2015, 10:49pm UTC](https://forums.sketchup.com/t/changing-style-parameters/7478/3 "2015-02-22T22:49:44Z")

</div>

Thanks, that works  
The terminology of the API is very different from the SketchUp UI:  
LineEnds = Endpoints!
