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

    [Plugin] TIG-LayersFromList

    Scheduled Pinned Locked Moved Plugins
    26 Posts 7 Posters 3.5k Views 7 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.
    • Miner_JeffM Offline
      Miner_Jeff
      last edited by

      Hello,

      Not sure if anyone else is experiencing this or not.
      I have not tested V1.1 with Windows 8 yet only Win 7.
      Version 1.0 worked with Win 7. Layers were created as described in the instructions using a [TAB] delimiter. (Sketchup pro 2015, Win 7)
      V1.0 with Sketchup Pro, Win 8 would not work. Layers names would show as Rich describes
      "Layer01 255,0,128" and random color.

      V1.1 with Sketchup Pro, Win 7 gives layers named "Layer01:255,0,128" with random color
      V1.1 with Sketchup Pro, Win 8 - not tested yet.

      Cheers,

      Miner_Jeff

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

        Works fine for me... πŸ˜•
        Can you PM me the txt file you are using...
        I'm thinking it might be an encoding issue...
        If you used Notepad it'll probably be ANSI.
        With Notepad++ you can change the format to suit >= v2014's Ruby2...

        Also can you try using this 'empty' file - copy+paste the LayerName:123,123,123 lines from the original - this is encoded as UTF8-without-BOM, and works for me fine...
        If that file works then I can try and force the encoding better on the 'read' ?


        MyLayers.txt

        TIG

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

          @Miner_Jeff

          Thanks for the PM.
          I can use the 'colon' [or 'TAB'] txt file just fine...
          The layers/colors come in as expected.

          Have you tried my own txt file.
          I expect it won't matter...

          BUT your files already work fine for me πŸ˜•

          TIG

          1 Reply Last reply Reply Quote 0
          • Miner_JeffM Offline
            Miner_Jeff
            last edited by

            Hi TIG,

            After some testing, it appears that I have a weird issue with Notepad++ [under investigation!]

            Using plain Notepad to make the Layers.txt file, the plugin results are as expected.

            Nice work again!

            Many thanks, πŸ˜„

            Miner_Jeff


            Q: How do you sink a 1000 m mine shaft?
            A: Blast one round at a time.

            1 Reply Last reply Reply Quote 0
            • KrisidiousK Offline
              Krisidious
              last edited by

              Can this export from one file and create the text file that will be used on another file?

              By: Kristoff Rand
              Home DesignerUnique House Plans

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

                No, but I'll write its sibling LayersToList πŸ˜‰

                TIG

                1 Reply Last reply Reply Quote 0
                • KrisidiousK Offline
                  Krisidious
                  last edited by

                  lol... It's great just the way it is TIG... Thank you.

                  Currently I open a sketchup model and find I want the layers from another. So I open a second instance and then copy/paste geometry from old to new and thus transfer layers. Only takes a few clicks.

                  By: Kristoff Rand
                  Home DesignerUnique House Plans

                  1 Reply Last reply Reply Quote 0
                  • KrisidiousK Offline
                    Krisidious
                    last edited by

                    @miner_jeff said:

                    Hi TIG,

                    After some testing, it appears that I have a weird issue with Notepad++ [under investigation!]

                    Using plain Notepad to make the Layers.txt file, the plugin results are as expected.

                    Check your encoding on Notepad++ please.


                    bom.jpg

                    By: Kristoff Rand
                    Home DesignerUnique House Plans

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

                      @Kris
                      I wrote **TIG-LayersToList** anyway - http://sketchucation.com/forums/viewtopic.php?p=568648#p568648
                      You can use it to make Layer-sets for reuse in other Models in conjunction with this tool - TIG-LayersFromList http://sketchucation.com/pluginstore?pln=TIG_LayersFromList ...

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • jujuJ Offline
                        juju
                        last edited by

                        wow, should be a real great thing if the two were to be combined

                        Save the Earth, it's the only planet with chocolate.

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

                          Here is v1.2 http://sketchucation.com/pluginstore?pln=TIG_LayersFromList
                          It fixes an issue reported by some Win8 users, where the layers' color were not getting set correctly.

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • Miner_JeffM Offline
                            Miner_Jeff
                            last edited by

                            Hi Folks,

                            If you need to create a sequence of layers with text and numbers with specific colours I have shared a means to create the text file easily for use with this wonderful ruby of TIG's.
                            It can be used to verify the colour of RGB values too by colouring the cell to RGB values specified.

                            I used MS excel and VBA. It can be found here http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=63894

                            Cheers,

                            Miner_jeff

                            1 Reply Last reply Reply Quote 0
                            • sumasterS Offline
                              sumaster
                              last edited by

                              Can we set Default Text file path in this script . . . . . ?

                              Thank you,
                              SUmaster

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

                                @sumaster said:

                                Can we set Default Text file path in this script . . . . . ?
                                Please expand on this, so we might understand your question...

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  db11
                                  last edited by

                                  Hi TIG -

                                  Thanks for a very useful plugin (along with it's companion).

                                  I have a request for a plugin that would build on these two, in order to automatically replace Layers From with Layers To in a SU file. My thought is that the easiest way would be with a simple two column csv file that gives the equivalences: 'From' in col A and 'To' in col B.

                                  I would use it to harmonize layer names across models, so that imported components would always land on the right layers, without having to manually delete and merge the newly imported layer(s).

                                  Not sure how difficult it would be, but would be a great help.

                                  Thanks,

                                  Doug

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

                                  Advertisement