sketchucation logo sketchucation
    • Login
    1. Home
    2. benj59380
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 1

    benj59380

    @benj59380

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    benj59380 Unfollow Follow
    registered-users

    Latest posts made by benj59380

    • RE: Resolve [Ruby help] Script for create window sills

      hello , Thank you SDMITCH for help πŸ˜‰

      cordially Benj

      posted in Developers' Forum
      B
      benj59380
    • Resolve [Ruby help] Script for create window sills

      Hello , Today I wanted Creat script for window sills

      my approach is create face manuel
      click for select

      run script
      ( part 1 : select face , creat color , Push -30 mm
      Part 2 : select vertical face for push +30)

      Part 1 work , but Part 2 fail 😞

      But Ruby = SyntaxError help me please for resolve the problem πŸ˜‰
      thank you in advance , Benjamin

      #part 1
      model = Sketchup.active_model
      ent = model.entities
      sel = model.selection
      ad = sel.ent

      faces = []

      sel.each do |e|
      faces <<e if e.is_a? Sketchup::Face
      end

      faces.each do |appui|

      appuicolor = Sketchup::Color.new(238,130,238)
      appui.material = appuicolor
      appui.back_material = appuicolor

      status = appui.pushpull(-30.mm , true)

      end
      #part 2

      ad.each do |e|

      s=Sketchup.active_model.selection;
      a=s.to_a;s.clear;
      a.grep(Sketchup::Face).each{|f|s.add(f)if f.normal.z==0}

      faces.each do |facade|

      status = facade.pushpull(30.mm )

      end

      posted in Developers' Forum
      B
      benj59380