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!
    🚨 Skimp | 25% Off until March 30 Buy Now

    [Plugin] Center of Gravity

    Scheduled Pinned Locked Moved Plugins
    183 Posts 41 Posters 309.7k 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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better πŸ’—

          Register Login
          • 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