I have following code…
grp.entities.grep(Sketchup::Edge) do |e| e.erase! if e.faces.first.normal == e.faces.last.normal end
I receive this error for it…
Error: #<NoMethodError: undefined method
normal' for nil:NilClass> C:/Users/Majid PC/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/MAJ_Stair/MAJ_Stair_Data.rb:593:in block in make_stair’
Logically edge has faces or not if yes faces have normal and this error should not ever happen. Please help me to know why it happen. Also I wish to use this error. So I want whenever this error happen I do something and codes continue working. Your help will be highly appreciated.