undefined local variable or method ‘some_other_point’ for #<AS_RubyEditor::RubyEditor:0x000000078d3cc0
when i do this:
m=Sketchup.active_model; s=m.selection; cpts=s.grep(Sketchup::ConstructionPoint)
cpts.each{|cpt|
### do something with each cpt here
pt=cpt.position
edg=m.active_entities.add_line(pt, some_other_point)
}
The clue is in the error message !
If you don’t define ‘some_other_point’ as a point3d or a three element array, then it is going to fail !!
Please read what you type, and what error messages you get back.
I only used ‘some_other_point’ as a ‘placeholder’ in the code example - you need to expend at least a little effort to get it to work like you want it to…