sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    [Plugin] Center of Gravity

    scheduled pinned locked moved Plugins
    183 Posts 41 Posters 298.7k Views 41 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • robertWanR Offline
      robertWan @TIG
      last edited by

      @TIG said in [Plugin] Center of Gravity:

      restart SketchUp and see if that helps...

      CoG1.png

      Unfortunately it didn't help.

      Robert

      TIGT one-reply-to-this-post last-reply-time reply quote 0
      • TIGT Online
        TIG Moderator @robertWan
        last edited by

        @robertWan

        I missed some 'dp' variables [sorry]

        line#393
        change

        volTxt = sprintf("%.#{dp}f", volume)
        

        to read

        volTxt = sprintf("%.4f", volume)
        

        line#409
        change

        weight = (volume * @density).round(dp)
        

        to read

        weight = (volume * @density.round)
        

        and line#417
        change

        weightTxt = sprintf("%.#{dp}f", weight)
        

        to read

        weightTxt = sprintf("%.4f", weight)
        

        I think that's all of them !!

        TIG

        one-reply-to-this-post last-reply-time reply quote 0
        • robertWanR Offline
          robertWan
          last edited by

          CoG2.png
          Works!
          I am extremely grateful.
          Thank you.

          Robert

          one-reply-to-this-post last-reply-time reply quote 0
          • 1
          • 2
          • 6
          • 7
          • 8
          • 9
          • 10
          • 10 / 10
          • first-post
            last-post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement