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

    Sketchup.version vs. Sketchup.version_number

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    9 Posts 4 Posters 612 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.
    • H Offline
      HPW
      last edited by

      Why different results:

      Sketchup.version
      7.0.10247

      Sketchup.version_number
      7000999

      ??

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        Error 404 (Not Found)!!1

        favicon

        (code.google.com)

        @unknownuser said:

        Sketchup.version
        Gets the current version of sketchup in decimal form

        Error 404 (Not Found)!!1

        favicon

        (code.google.com)

        @unknownuser said:

        Sketchup.version_number
        Get the current version of sketchup as a whole number for comparisons

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

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

          Thomthom, i think version_number is just meant to return the SU version without the decimal points. At least thats how it works in SU6.

          I'm guessing it's a bug πŸ‘

          http://remusrendering.wordpress.com/

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            You sure? I'm not seeing that.

            SU6:

            
            Sketchup.version_number
            6004112
            

            SU7:

            
            Sketchup.version_number
            7000999
            
            

            version_number number returns an integer (whole number), while version returns a string.

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

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

              Probably my ruby noobishness showing through there.

              I was referring to the numbers themselves (conveniently ignoring a few zeroes as well.)

              In SU6:
              version gives 6.4.112
              version_number gives 6004112

              in SU7:
              version gives 7.0.10247
              version_number gives 7000999

              So going by what SU6 gives i would have thought SU7 would have given 700010247.

              I wonder if it's something to do with version_number being limited to 7 figures? i.e. it gets to 999 but cant go any further.

              http://remusrendering.wordpress.com/

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                @remus said:

                So going by what SU6 gives i would have thought SU7 would have given 700010247.

                I wonder if it's something to do with version_number being limited to 7 figures? i.e. it gets to 999 but cant go any further.

                Yea, I think it might be worth mentioning this to the SU team.

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • H Offline
                  HPW
                  last edited by

                  @unknownuser said:

                  Yea, I think it might be worth mentioning this to the SU team.

                  Does they read it here, or must someone take more action/bug report?

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    They are around on the forum. Not sure if it'll be seen on this section though. More likely if it's put into the Bug section. The Ruby section might work as well, but there's so many posts there everyday that they might get lost in the mass.

                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • AndrewSA Offline
                      AndrewS
                      last edited by

                      @remus said:

                      Yea, I think it might be worth mentioning this to the SU team.

                      The problem occurred when the last component of our version number exceeded 3 digits in length. That's why SU6 (.112) works, while SU7 (.8656, .10247, etc.) doesn't. We have an open bug for this issue.

                      Andrew S.
                      SketchUp Release Engineer

                      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