sketchucation logo sketchucation
    • Login
    1. Home
    2. Frank Brugman
    3. Posts
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    F
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Why is a box deleted / Why is a box not a manifold?

      Hi Thom,

      Thank you for your quick respons. It works!
      With exploding the groups I got rid of the two levels.

      With kind regards,

      Frank

      Enjoy spring!

      posted in Developers' Forum
      F
      Frank Brugman
    • RE: Why is a box deleted / Why is a box not a manifold?

      Hi Thom,

      Thank you for your quick respons.
      I indeed did not want to create a two level nested group.
      Is it easy for you to tell me how I got rid of one of the two levels?

      With kind regards, Frank

      posted in Developers' Forum
      F
      Frank Brugman
    • Why is a box deleted / Why is a box not a manifold?

      Hi all,

      Embarrassing simple questions (I think):

      1. The code underneath gives the message "bbx1 deleted!"
        What is happening and how do I prevent it from being deleted?
      2. The code underneath gives alse the message "bbx2 is not a manifold"
        What is happening and how do I make it a manifold?
        ( I want to learn about boolean solid operations like union etc,... )

      With kind regards,

      Frank Brugman

        bbxmax   = Geom;;Point3d.new
        bbxmin   = Geom;;Point3d.new
      
        bbxmin.x = 1000.mm
        bbxmin.y = 0.mm
        bbxmin.z = 0.mm
      
        bbxmax.x = 2000.mm
        bbxmax.y = 1000.mm
        bbxmax.z = 1000.mm
      
        boxpts = []
        boxpts[0] = [bbxmin.x, bbxmin.y, bbxmin.z]
        boxpts[1] = [bbxmax.x, bbxmin.y, bbxmin.z]
        boxpts[2] = [bbxmax.x, bbxmax.y, bbxmin.z]
        boxpts[3] = [bbxmin.x, bbxmax.y, bbxmin.z]
      
        face1 = Sketchup.active_model.entities.add_face boxpts
        face1.reverse!
        face1.pushpull(bbxmax.z-bbxmin.z )
      
        bbx1 = Sketchup.active_model.entities.add_group 
        bbx1.entities.add_group face1.all_connected
      
        bbxmin.x = 2000.mm
        bbxmin.y = 0.mm
        bbxmin.z = 0.mm
      
        bbxmax.x = 3000.mm
        bbxmax.y = 1000.mm
        bbxmax.z = 1000.mm
      
        boxpts = []
        boxpts[0] = [bbxmin.x, bbxmin.y, bbxmin.z]
        boxpts[1] = [bbxmax.x, bbxmin.y, bbxmin.z]
        boxpts[2] = [bbxmax.x, bbxmax.y, bbxmin.z]
        boxpts[3] = [bbxmin.x, bbxmax.y, bbxmin.z]
      
        face2 = Sketchup.active_model.entities.add_face boxpts
        face2.reverse!
        face2.pushpull(bbxmax.z-bbxmin.z )
      
        bbx2 = Sketchup.active_model.entities.add_group 
        bbx2.entities.add_group face2.all_connected
      
        if ( bbx1.deleted? )
          UI.messagebox("bbx1 deleted!")
        end
      
        if ( not bbx2.manifold? ) 
          UI.messagebox("bbx2 is not a manifold")
        end
      
      posted in Developers' Forum
      F
      Frank Brugman
    • 1 / 1