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

    Newbie help - getting dimensions of a simple object

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 178 Views 3 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.
    • M Offline
      meeta
      last edited by

      Hi there!
      I have a write a big code and I am a ruby newbie.. i have done some fair amount of c++..

      i have drawn up a cuboid, i have to do some calculations on it..
      basically i have programmed it so far, i right click on the group and i should get dimensions of the object.. i just want to know what class to use..

      to honest i've spent the last week on the google sketchup api website.. i have no clue what to use..

      thanks for your help
      Cheers!

      Meet A

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        That is because there is no built in dimensioning class or method.

        You will probably need to be looking at all edges and then find their lengths. You can write those lengths to a UI.messagebox, or to the screen, or to text entities in the model, or back to a webdialog box. So displaying the info will require choosing what works best for you.

        But start by iterating over all the edges and finding their lengths. That would be the Edge class

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • K Offline
          KnightChatX
          last edited by

          Try the BoundingBox Class.

          A bounding box contains the dimensions of an object.

          1 Reply Last reply Reply Quote 0
          • M Offline
            meeta
            last edited by

            wow bounding box is such a neat thing.. thanks for pointing it out!!

            Meet A

            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