Here is the code:

```
#########################
#
# Window Callout
#
#########################
if @Calloutoption_db == "YES"
win_width_ft = (win_width/12.0).floor
win_width_in = (win_width - (win_width_ft * 12.0)).floor
win_height_ft = (win_height/12.0).floor
win_height_in = (win_height - (win_height_ft * 12.0)).floor
windowtext = "#{win_width_ft}#{win_width_in}#{win_height_ft}#{win_height_in}"
if advwinoptions == "YES"
if win_installoption == "YES"
win_style = @Windowattr_install[0]
if win_style == "Picture"
win_desc = 'PIC'
elsif win_style == "Slider"
win_desc = 'XO'
elsif win_style == "Single Hung"
win_desc = 'SH'
else
win_desc = ''
end
windowtext << win_desc
end
end
grouptext = Sketchup.active_model.active_entities.add_group
entities2 = grouptext.entities
entities2.add_3d_text(windowtext, TextAlignCenter, "Arial", false, false, 4.5, 0.5, @Bpltz, true, 0.0)
# Translates to window origin
textx = win_loc - grouptext.bounds.center.x
texty = @Std0y1 - 8.0
main_transformation_win = Geom::Transformation.new([textx, texty, 0])
grouptext.transform! main_transformation_win
if @Layersoption == "ON"
grouptext.layer = @Wall_dim_layer
end
@all_groups << grouptext
end
```