Chris,
After a few moments of struggle I found out that the script works after a few failures...
But what I have found is that sometimes the selected component changes during action, see attachments:
Bug1.skp
Ruby Console:
No reversing needed Error: #<NoMethodError: undefined method
position' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:137:in main' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:134:in
each_with_index'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:134:in each' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:134:in
each_with_index'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:134:in main' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190 C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in
call'.`
Note: 1 try only
Bug2.skp
Ruby Console:
Error: #<NoMethodError: undefined method
edges' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:59:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in
times'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:105:in
main'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in call' Error: #<NoMethodError: undefined method
edges' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:59:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in
times'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:105:in
main'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in call' Error: #<NoMethodError: undefined method
edges' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:59:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in
times'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:105:in
main'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in call' Error: #<NoMethodError: undefined method
edges' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:59:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in
times'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:105:in
main'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in call' Error: #<ArgumentError: Cannot convert argument to Sketchup::Point3d> C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:79:in
add_text'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:79:in curve_labeler' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:70:in
curve_ordering'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:105:in main' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190 C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in
call'
Error: #<NoMethodError: undefined method definition' for nil:NilClass> C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:103:in
main'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in call' Error: #<NoMethodError: undefined method
edges' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:59:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in
times'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:105:in
main'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in call' Error: #<NoMethodError: undefined method
edges' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:59:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in
times'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:105:in
main'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in call' Error: #<NoMethodError: undefined method
edges' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:59:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in
times'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:105:in
main'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in call' Error: #<NoMethodError: undefined method
edges' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:59:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in
times'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:105:in
main'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in call' Error: #<NoMethodError: undefined method
edges' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:59:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in
times'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:105:in
main'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in call' Error: #<NoMethodError: undefined method
edges' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:59:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in
times'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:105:in
main'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in call' Error: #<NoMethodError: undefined method
edges' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:59:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in
times'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:105:in
main'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in call' Error: #<NoMethodError: undefined method
edges' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:59:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in
times'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:56:in curve_ordering' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:105:in
main'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in call'
Note 10+ tries, no result
Bug3.skp
Ruby Console:
No reversing needed Error: #<NoMethodError: undefined method
position' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:137:in main' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:134:in
each_with_index'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:134:in each' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:134:in
each_with_index'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:134:in main' C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190 C:/Program Files/Google/Google SketchUp 7/Plugins/clf_component_stringer.rb:190:in
call'`
Note 1 try, "big" problem