sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    D/Code - smells like IRB spirit (1.0 RC1)

    Scheduled Pinned Locked Moved Developers' Forum
    22 Posts 5 Posters 3.2k Views 5 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.
    • J Offline
      Jorgensen
      last edited by

      First of all - it is fantastic to be able to test scripts direct inside Sketchup 😄

      Would it be possible to have the input(Select all) window in the top and Code (Raw) window
      windows at the bottom - for me it is difficult to se long lines 😞

      Does one have to have two windows ?

      Could Code(RAW) do it ?

      Sorry, if my questions are noob - byt i'm a noob 😉

      Jorgensen

      sketchup pro 2016 16.1.1449 64 bit | windows 10 pro | i7-3770k @3.5 GHz | 16gb ram | gtx 780 ti / gtx 980 ti | nvidia driver 368.39

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

        @unknownuser said:

        2nd 'bug': when thread.new has been initiated in following manner

        	Thread.new do
        > 		system(`program arg`)
        > 	end
        

        then d/Code will wait with displaying its window till the program closed.
        btw. Thread works well with passing arguments to exe. Thanks again.
        Tomasz
        OK, have to write this again, because I kicked my posting 😞

        I've tried it with threads and

        • Windows Calculator - system "calc"
        • Ruby interpreter - system "ruby -ne 'gets'"
          and it immediately came back to the Plugin while the called executables were still running. Maybe it depends on the executable? Don't know.

        @Jorgensen
        This also was possible with the built-in Ruby Console, but it was a pain writing all code in one line 😉

        Changing the layout is possible. At the moment there is no HTML template to edit, it's hard-coded. Also a two-window version could be made, yes. Because I'm not that wise in writing modern HTML and JavaScript code, I have to dive deeper into the possibilities.

        This one I do not understand:
        @unknownuser said:

        Could Code(RAW) do it ?
        Do "what"?

        azuby

        *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

        Bad English? PM me, correct me. :smile:**

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

          Hi azuby

          The problem is, that I have so sidescroll the window to see long lines.

          It might be just me (noob), but to me a "code window" and "a output" would be fine - does there have to be three ?

          Jorgensen

          sketchup pro 2016 16.1.1449 64 bit | windows 10 pro | i7-3770k @3.5 GHz | 16gb ram | gtx 780 ti / gtx 980 ti | nvidia driver 368.39

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

            A I see, Kinder Surprise 😄 - three wishes at once. Yes, you are right, long lines seem to be a bit complicated. Also three windows would be possible - not at the moment (just want to listen for bugs), but for the future. I add it to the todo list.

            azuby

            *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

            Bad English? PM me, correct me. :smile:**

            1 Reply Last reply Reply Quote 0
            • tbdT Offline
              tbd
              last edited by

              hmm, cannot access the site - gives me 212.162.44.242 reports: Destination protocol unreachable on traceroute. in Firefox it just timeouts 😞

              SketchUp Ruby Consultant | Podium 1.x developer
              http://plugins.ro

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

                That's not cool, but it's not the server my website is hosted:

                tracert errorinitus.de
                
                Routenverfolgung zu errorinitus.de [62.67.235.128]  über maximal 30 Abschnitte;
                
                  1    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                  2     *        *        *     Zeitüberschreitung der Anforderung.
                  3     6 ms     6 ms     6 ms  217.0.82.86
                  4     6 ms     6 ms     6 ms  217.5.72.138
                  5    22 ms    21 ms    20 ms  62.156.138.178
                  6    22 ms    21 ms    21 ms  ae-0-56.mp2.Berlin1.Level3.net [4.68.108.162]
                  7    13 ms    12 ms    12 ms  so-1-0-0.mp1.Hamburg1.Level3.net [4.68.128.37]
                  8    12 ms    13 ms    13 ms  ge-4-1.hsa1.Hamburg1.Level3.net [195.122.140.163]
                  9    13 ms    13 ms    13 ms  212.162.44.242
                 10    13 ms    15 ms    15 ms  s28.evanzo-server.de [62.67.235.128]
                

                Hope, this helps. For now, try this one.

                azuby

                *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

                Bad English? PM me, correct me. :smile:**

                1 Reply Last reply Reply Quote 0
                • tbdT Offline
                  tbd
                  last edited by

                  tried from two providers - still not working 😞
                  later edit: finally made it work via proxy

                  SketchUp Ruby Consultant | Podium 1.x developer
                  http://plugins.ro

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

                    OK, next try with proxy: http://www.behidden.com/ - you have to enable JavaScript checkbox on this website where to put the url.

                    azuby

                    *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

                    Bad English? PM me, correct me. :smile:**

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

                      Hi azuby

                      Any news on the development ? 😄

                      sketchup pro 2016 16.1.1449 64 bit | windows 10 pro | i7-3770k @3.5 GHz | 16gb ram | gtx 780 ti / gtx 980 ti | nvidia driver 368.39

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

                        Not at the moment. Unfortunately I'm a bit too busy with German law 😞

                        azuby

                        *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

                        Bad English? PM me, correct me. :smile:**

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

                          oh - hmmmm sounds a bit boring - that might be the reason for the quite quick reply from you 😉

                          sketchup pro 2016 16.1.1449 64 bit | windows 10 pro | i7-3770k @3.5 GHz | 16gb ram | gtx 780 ti / gtx 980 ti | nvidia driver 368.39

                          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