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

    SketchUp 2014 ruby code issue?

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 4 Posters 322 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.
    • T Offline
      tomot
      last edited by tomot

      What's the correct Ruby code statement that I should replace in the code snippet (see attachment) for this Ruby to run in SU 2014?

      TIA!

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

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

        Remove the space before the (

        Hi

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

          @jim said:

          Remove the space before the (

          Rats! .....I knew about that space issue 😳 Interestingly I never got an error message in SU 8.

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

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

            In pre Ruby2.0 you get a warning when loading such code, but it works.
            In Ruby2.0 it just fails !
            Never include a space between the method and the opening parenthesis that is enclosing its argument[s]...

            TIG

            1 Reply Last reply Reply Quote 0
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              .. if you do, the interpreter wants to treat the expression as the entire first argument. But if it fails as a single expression, then it's a syntax error.

              I'm not here much anymore.

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

                @tig said:

                Never include a space between the method and the opening parenthesis that is enclosing its argument[s]...

                I was going to tattoo that statement on my arm, but my Wife wont let me. πŸ˜„

                Regardless, I have often wondered what goes through the mind of those that write
                computer languages. What fantasy world do they live in? It would not be very easy to read
                a sentence without spaces between words, would it?

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

                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