# Shape Bender and SU2019

**URL:** <https://forums.sketchup.com/t/shape-bender-and-su2019/89078>\
**Category:** Extensions\
**Created:** [February 22, 2019, 6:42pm UTC](https://forums.sketchup.com/t/shape-bender-and-su2019/89078 "2019-02-22T18:42:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![TIG](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tig/32/198_2.png) [@TIG](https://forums.sketchup.com/u/TIG)\
**Post date:** [February 22, 2019, 7:18pm UTC](https://forums.sketchup.com/t/shape-bender-and-su2019/89078/2 "2019-02-22T19:18:03Z")

</div>

I can see where the error is arising !  
In almost all of the API methods passing an argument as a vertex instead of a point is acceptable.  
There seems to have been a ‘reversion’ in v2019.  
The `entities.add_text` method expects a ‘string’ and a ‘point’ [there is a 3rd optional ‘vector’].  
In @ChrisFullmer 's code he passes the ‘vertices’ of the selected line and arc to some temporary text entities - as if they were ‘points’.  
This has always worked in earlier versions !

There is a fix…  
If the file **…/Plugins/clf\_shape\_bender/clf\_shape\_bender\_data.rb** is edited with a plain text editor there are four lines to tweak…  
Lines# 290, 291 and 302, 303  
At the end of those lines add **.position** [so that the vertex position [i.e. a point] is used instead of the vertex itself]  
So for example:  
_start\_label = Sketchup.active\_model.entities.add\_text “Start”, @line\_endverts[0]_  
becomes  
_start\_label = Sketchup.active\_model.entities.add\_text “Start”, @line\_endverts[0] **.position** _  
Then it should work as before.  
Perhaps @ChrisFullmer can publish an updated RBZ.  
Under its quoted: [Smustard - the Companion to Sketchup(TM)](http://www.smustard.com/eula)  
Modifying it yourself, even for your own use, is disallowed ?  
I think… so obviously I have not been able to check if my fix works 😉

---

_[View the full topic](https://forums.sketchup.com/t/shape-bender-and-su2019/89078)._
