sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    [Plugin] Script for making of logs

    Scheduled Pinned Locked Moved Plugins
    6 Posts 4 Posters 7.2k Views 4 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.
    • N Offline
      not registered yet
      last edited by

      I try to help to my friend to make this script
      But we have problem with: how to make dap between logs?
      How to make curve, which will be intesect and divide log into 2?
      And need some cleaning work for deleting bottom part.
      See in foto and screenshot
      http://www.srub-stroi.ru/image/113.jpg
      http://www.3dcenter.ru/forum/uploads/post-54131-1182609123.jpg
      script in attach

      I Thank you for future advices
      Ilay

      [spire7k]


      PARAMETRIC.rb


      Srub.rb

      1 Reply Last reply Reply Quote 0
      • T Offline
        tomot
        last edited by

        I looked at your script. you used the circle and then extruded it using push pull.
        As far as I know you cant edit the circle. you should construct the log profile
        using 2 opposing arcs, with 2 connecting lines for the flat top and btm. of the log.
        when you have that new profile, then you can use push pull

        [my plugins](http://thingsvirtual.blogspot.ca/)
        tomot

        1 Reply Last reply Reply Quote 0
        • T Offline
          todd burch
          last edited by

          I didn't look at the script, but I can tell from your picture what you are trying to do.

          First, draw the circle for the end of the log. Then draw an interior arc at the bottom of the circle which would represent the portion of the log that you would cut away. Then, remove the lowermost section of the circle to create the final profile you need. Then, pushpull it.

          Todd

          http://www.sketchucation.com/forums/scf/sas/Ruby/Picture%201.png

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            If it's too difficult to code in Ruby (though drawing two coplanar arcs that will face doesn't seem that impossible ?), then why not change tack and follow Didier's example in his 'Balustrade.rb' script (or even Todd's 3Dtext tool) ?

            This method allows you to draw any section you like... In your case you'd draw up a a set of simple outlines with the curved top and the bottom slot etc, with a face centred at 0,0,0... and then save them as say log300,skp, log400.skp etc. These are the 'component' "log" faces your script will load into the model... as you might choose from a dialog's list (which itself is made by looking into your ../Plugins/../Logs/ folder and listing its current contents - that way you can add to/subtract from the available log section component faces as you wish). Your script would then place the desired face component and explode it, then take its face and pushpull it by the amount you specified in the other entry in the dialog...

            TIG

            1 Reply Last reply Reply Quote 0
            • T Offline
              tomot
              last edited by

              there are Ruby coding examples of how to draw arcs and lines and then making them into a face
              have a look at SteelSections.rb

              [my plugins](http://thingsvirtual.blogspot.ca/)
              tomot

              1 Reply Last reply Reply Quote 0
              • N Offline
                not registered yet
                last edited by

                tomot, Todd, TIG thank you!
                I will try to make it as TIG said...but i still dream about magic-ruby all-making-button - "push it' and you get log wall with daps and ect. πŸ˜„ )

                [spire7k]

                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