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

    [Plugin] Lines2Components v1.2

    Scheduled Pinned Locked Moved Plugins
    6 Posts 6 Posters 8.3k Views 6 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      I wrote a snippet for someone a while ago.
      To tidy up the Plugins Index here it is again.
      I have relinked the original posts back to here too...
      Here's the original thread http://forums.sketchucation.com/viewtopic.php?f=323&t=18198&p=147559#p147559

      It turns Selected Lines into Instances of a Selected Component...

      Usage:
      Put this file into 'Plugins' folder.
      Open a Model.
      Place Components and Lines...
      Select an Instance of the required Component, and
      at least one Line (Edge)***.
      Pick 'Lines2Components' from the 'Plugins' Menu.
      If the Selection doesn't contain Edges or an Instance
      an error dialog tells you...
      You are prompted for the 'Scaling': None/Z/XYZ.
      ***The Z-height (blue) of each Line relative to the Z-
      height of the required Component sets the 'Scaling'.
      One by one the Lines are turned into Instances of the
      required Component, Scaled to suit.
      Any Scaling is about the Instance's insertion point.
      The Instance's insertion point is taken to be the lower
      of the Line's ends.
      Unless the scaling is set to 'None' 'flat' Lines
      (equal Zs) are not used, then the insertion point is
      the Line's 'start'...[Lines2Components.rb](/uploads/imported_attachments/E9er_Lines2Components.rb) [![PayPalButton](//www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3675634)
      

      TIG

      1 Reply Last reply Reply Quote 0
      • pilouP Offline
        pilou
        last edited by

        Missing the first 😳
        But maybe was not on board at this date 💚

        You are untiring! 😎

        Frenchy Pilou
        Is beautiful that please without concept!
        My Little site :)

        1 Reply Last reply Reply Quote 0
        • B Offline
          boilingsnow
          last edited by

          Hi,TIG
          I discovered this plugin of yours today and think it's very useful for some circumstances.
          Now this tool can only turn vertical lines into components. Don't you think it would be more powerful if it can also change nonvertical lines (For example,the blue axes of the component along the lines) into components?

          1 Reply Last reply Reply Quote 0
          • Arty2A Offline
            Arty2
            last edited by

            I was wondering, could this plugin be converted easily to take the length of a line then rotate and scale a component (along its z axis as boilingsnow noted) appropriately to it?

            1 Reply Last reply Reply Quote 0
            • V Offline
              vandero
              last edited by

              this kind of plugin is workfull.

              1 Reply Last reply Reply Quote 0
              • chialiang168C Offline
                chialiang168
                last edited by

                TIG:
                我來自台灣,姓名:星野傳說
                我不懂英文
                這是用google翻譯
                我利用Lines2Components V1.2改編
                發此源碼與大家分享

                I'm from Taiwan, name: Hoshino legend
                I do not know English
                This is a google translation
                I use Lines2Components V1.2 adaptation
                Send this source to share with you

                https://dl.dropboxusercontent.com/u/108539326/星野築網頁/004-應用教室/002-sketchup教室/插件應用/線組轉組件/google翻譯.JPG

                插件演示(Plug-in demo):

                https://dl.dropboxusercontent.com/u/108539326/星野築網頁/004-應用教室/002-sketchup教室/插件應用/線組轉組件/線組轉組件.gif


                An_Line_Group_to_ComponentInstance.rb

                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