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

    [Plugin] Center of Gravity

    Scheduled Pinned Locked Moved Plugins
    183 Posts 41 Posters 299.2k Views 41 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.
    • 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 1 Reply Last reply Reply Quote 0
      • TIGT Offline
        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

        1 Reply Last reply Reply Quote 0
        • robertWanR Offline
          robertWan
          last edited by

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

          Robert

          1 Reply Last reply 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