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

    [Plugin][Code]SKMtools,Material/ImageTools

    Scheduled Pinned Locked Moved Plugins
    176 Posts 36 Posters 264.3k Views 36 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.
    • boofredlayB Offline
      boofredlay
      last edited by

      @tig said:

      IMPORTANT NOTICE!

      There has been a lone report of these tools not working - with a '.jar' file 'opening' rather than 'running'!
      Many of these tools use small Java '.jar' executable files that do specific tasks like zip/unzip and image manipulation.

      I have found that I can reproduce this weirdness IF I let a 'zip/unzip' application like AlZip or WinRar 'poach' the '.jar' file-type as one that it will open. If so then when Ruby tries to 'open' a '.jar' file instead of it 'executing' in Java [like it should], it 'opens' in the decompression application...

      The solution = look at your WinRar etc settings and ensure '.jar' is NOT one of its file-types for opening... 😒

      Hi TIG. Hope you are well.
      Sorry for another "it's not working for me" post but that is what this is.

      I installed the plugin through Extensions Manager, saved a new file, imported an image and run the image trimmer script and get the dots at the bottom and then it blips and nothing happens.

      I think I made sure the .jar files open with java like you mention above but I guess I have done something wrong.

      I have attached the SketchUp file I am working with if it helps.

      Thanks for any help.


      MAN0004.skp

      http://www.coroflot.com/boofredlay

      1 Reply Last reply Reply Quote 0
      • boofredlayB Offline
        boofredlay
        last edited by

        Hmm. I made sure 7zip and Express Zip File Compression were not associated with .jar files. These are the only zip programs on this machine that I can tell.

        http://www.coroflot.com/boofredlay

        1 Reply Last reply Reply Quote 0
        • Dave RD Offline
          Dave R
          last edited by

          I guess I've never looked to see if any zip utilities are associated with them. I guess I should.

          Etaoin Shrdlu

          %

          (THERE'S NO PLACE LIKE)

          G28 X0.0 Y0.0 Z0.0

          M30

          %

          1 Reply Last reply Reply Quote 0
          • Dave RD Offline
            Dave R
            last edited by

            Hi Eric,

            I know I'm not TIG but I tried your file and it trimmed just fine. Actually more quickly than I expected.
            MAN0004.skp

            Etaoin Shrdlu

            %

            (THERE'S NO PLACE LIKE)

            G28 X0.0 Y0.0 Z0.0

            M30

            %

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

              Some decompression apps 'hijack' .jar files and then Java can't open them.
              Check that none of your compression apps is doing that.
              Find one of the .jar files and right-click to see what's set to open it...
              Use Open with... from the context-menu and choose Java and set it to always open .jar files.
              Of course you also need to Java installed on your computer !
              Double check for that...

              TIG

              1 Reply Last reply Reply Quote 0
              • boofredlayB Offline
                boofredlay
                last edited by

                Yeah I installed Java prior to posting this and associated .jar with it. Not sure if I did it correctly but you can see the icon next to the .jar files as Java.


                java.JPG

                http://www.coroflot.com/boofredlay

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

                  Looks OK, but of course a ZIP app could be hijacking it too ?
                  If you right-click on a .jar file what is listed to 'Open' it ?
                  What is listed for it in 'Open with...' ?

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • boofredlayB Offline
                    boofredlay
                    last edited by

                    It seems to be opening with Java...


                    java2.JPG

                    http://www.coroflot.com/boofredlay

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

                      Your .jar / Java set up seems fine.
                      Dave R got your image to trim OK - so did I.
                      So something is wrong on your side ??
                      Any Ruby Console error messages ?

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • boofredlayB Offline
                        boofredlay
                        last edited by

                        Sorry for the late reply, super busy lately.

                        This is what I get after I run the script.

                        Error: #<Errno::ENOENT: No such file or directory @ rb_sysopen - C:\Eric Miscellaneous\TrimmedImages\15098587-PcbMIOCd[Edges].dat>
                        C:/Users/elay/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:277:in readlines' C:/Users/elay/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:277:in make_edges'
                        C:/Users/elay/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:201:in process_image' C:/Users/elay/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:170:in initialize'
                        C:/Users/elay/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:834:in new' C:/Users/elay/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:834:in block in <top (required)>'

                        http://www.coroflot.com/boofredlay

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

                          Does it make C:\Eric Miscellaneous\TrimmedImages\15098587-PcbMIOCd[Edges].dat but fails to find it, or does it fail to make it ?
                          Not making it at all points to perhaps an issue with the PNG itself [e.g. all pixels have some transparency], but if you use the PNG referred to previously it should be processed OK...

                          Failure to find or make it at all suggests a permissions issue...

                          Have you installed SketchUp properly ?
                          You can fix it and not compromise installed extensions etc, thus...
                          Close SketchUp
                          Find the relevant SketchUp installer's exe file - usually in your Downloads folder - but you might have moved it...
                          Select the installer's exe file's icon, right-click > context-menu > Install as administrator...
                          In the dialog that will open choose 'Repair'
                          SketchUp is now [re]installed with proper permissions...
                          Restart to see if that helped...

                          Otherwise, check that the folder 'Eric Miscellaneous' has no restrictive permissions set, which could be preventing the ability to write files to it via SketchUp / Java...
                          Try running the SKP from a clearly 'neutral' location - e.g. your 'Desktop'... the subfolder of files needed in the processing is always made with the SKP itself...

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • boofredlayB Offline
                            boofredlay
                            last edited by

                            I did as you directed and still no joy.
                            Oh well. I hate for you to keep messing with this. I will just continue on trimming manually.

                            Thanks for all the help even though we did not get it resolved.

                            http://www.coroflot.com/boofredlay

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

                              If you ever get a clue what's up let me know...
                              I'm at a loss...

                              TIG

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

                                @boofredlay said:

                                It seems to be opening with Java...


                                2022-12-15_06-48-33.jpg

                                1 Reply Last reply Reply Quote 0
                                • E Offline
                                  Efik_CZme Newcomers
                                  last edited by

                                  Hi guys,

                                  same problem here as boofredlay. Trimming doesnt work for me in exactly the same way. I followed the whole quest-line of repair instructions. Also no change and the tool still doesn't work.

                                  I super appreciate the fact, that there is somebody trying to make the tools, that SketchUp team is ignoring. Damn the trimming itself would save hundred hours of work... As boofredlay says..:

                                  "Back to manual trimming."

                                  1 Reply Last reply Reply Quote 0
                                  • Dave RD Offline
                                    Dave R
                                    last edited by

                                    @efik_czme said:

                                    same problem here as boofredlay.

                                    Share the image you're trying to trim so we can see if there's something that can be done.

                                    Etaoin Shrdlu

                                    %

                                    (THERE'S NO PLACE LIKE)

                                    G28 X0.0 Y0.0 Z0.0

                                    M30

                                    %

                                    1 Reply Last reply Reply Quote 0
                                    • E Offline
                                      Efik_CZme Newcomers
                                      last edited by

                                      Dave R:

                                      Wow. Thanks for the quick reply. I didn't expect that.
                                      The whole story, here we go:

                                      • I downloaded the plugin from this website.
                                      • Installed it through the extension manager.
                                      • At first use, I got the message "Open .jar with" so I selected SketchUp... As I didn't know better.
                                      • Through youtube tutorials, I realized I don't have installed java (shameful I know)
                                      • Installed the latest Java version.
                                      • Associated .jar with java.
                                      • Tried again
                                      • Got myself to the point of "Making Edges files"
                                      • Through the process the SketchUp freeze.
                                      • Went through other chats searching for solutions, until I got here and followed the whole TIG/BOOFREDLAY consultation and followed the proposed steps.
                                      • No change. I tried with multiple different .png , Including the simplest black circle. No change.

                                      I attached some explanatory pictures, including the last one. Sorry for the national language in programs (Neodpovídá = Not Responding)


                                      1.jpg


                                      2.jpg


                                      3.jpg


                                      The last PNG I used.


                                      4.jpg


                                      5.jpg

                                      1 Reply Last reply Reply Quote 0
                                      • Dave RD Offline
                                        Dave R
                                        last edited by

                                        I imported your image into SketchUp 2022 and ran Image Trimmer. It worked just fine. It actually went a little faster than I expected.

                                        Screenshot - 2_6_2023 , 10_24_40 AM.png

                                        Clearly this isn't an issue with SketchUp 2022 or with Image Trimmer.

                                        Did you install SketchUp correctly? That requires right clicking on the downloaded installer and choosing Run as administrator from the Context menu.

                                        Etaoin Shrdlu

                                        %

                                        (THERE'S NO PLACE LIKE)

                                        G28 X0.0 Y0.0 Z0.0

                                        M30

                                        %

                                        1 Reply Last reply Reply Quote 0
                                        • E Offline
                                          Efik_CZme Newcomers
                                          last edited by

                                          Just reinstalled SketchUp... As and administrator. Still the same story.

                                          1 Reply Last reply Reply Quote 0
                                          • A Offline
                                            amckeag
                                            last edited by

                                            I'm experiencing similar issues - I can get ImageTrimmer to run. The extension creates a temporary "TrimmedImage" folder and all of the .jar files are in the correct folder. However, it never proceeds to "Make Component Stand Up" and beyond. Any ideas how to fix?

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

                                            Advertisement