sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    I get stuck with Pushpull

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 201 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z Offline
      Zergboy
      last edited by

      Hello!
      Few days ago I start to explore SketchUP with Ruby 😲
      And after breaking of my mind with "Google SketchUp Ruby API" and "Automatic SketchUP" by Matthew Scarpino I still have not found an answer - what is the logic of a pushpull method.

      What I did.

      mod = Sketchup.active_model 
      ent = mod.entities
      new_circle = ent.add_circle [0,0,0], [0,1,0], 50,3
      new_face = ent.add_face new_circle
      

      Here all is clear.
      Then

      new_face.pushpull 5
      

      OK, face extends to right. And now I have 3D shape.
      OK, now I'd like to continue this extension.

      new_face.pushpull 5
      

      But now face start to move to left 😲 . And if I repeat

      new_face.pushpull 5
      

      face will continue to moth to left
      So - first pushpull move face to right and next and all another - to left.
      What is the logic?

      What I need - I'd like to have possibilities to apply pushpull to a particular face after any pushpull. And how to specify for pushpull method exactly that face I need to move?
      (And sorry for my English 😄 )

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        PushPull always extrudes a Face along the face's normal. If you notice after the first pushpull, the original face is reversed, so the subsequent pushpull extrudes in the opposite direction.

        You need to check the Face's normal and reverse the face before extruding, or just extrude in a negative direction.

        Hi

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement