sketchucation logo sketchucation
    • Login
    1. Home
    2. sdmitch
    3. Posts
    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
    Offline
    • Profile
    • Following 0
    • Followers 4
    • Topics 54
    • Posts 1,485
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Using .uniq! in a plugin

      The statements that created the points are exactly the same in the plugin as was used to create the points in the Ruby Console.

         pts=[]
      pts.push Geom::Point3d.new(1,1,1)
      pts.push Geom::Point3d.new(2,2,2)
      pts.push Geom::Point3d.new(1,1,1)
      pts.push Geom::Point3d.new(3,3,3)
      pts.push Geom::Point3d.new(2,2,2)
      pts.push Geom::Point3d.new(1,1,1)
         pts.uniq!
      

      In the plugin nothing is removed as pts.length is 6 before and after the uniq! statement.
      In the Ruby Console the 3 duplicates are removed.

      posted in Newbie Forum
      sdmitchS
      sdmitch
    • Using .uniq! in a plugin

      In the Ruby console, if I create a series of 3d points and save them in an pts array then enter pts.uniq!, the duplicates are removed. But if I do the same thing in a plugin and execute the plugin nothing is removed. There is no indication of an error.

      posted in Newbie Forum sketchup
      sdmitchS
      sdmitch
    • RE: UI.messagebox

      Dan, It turned out to be an unneeded View.invalidate statement.
      Once it was removed, all was OK.

      posted in Developers' Forum
      sdmitchS
      sdmitch
    • RE: UI.messagebox

      I don't have any UI.start_timer blocks so that can't be the problem. I did copy the entire code statement "UI.messagebox("There are no valid snap points", MB_OK)" to the console and the message displayed normally. I even added a UI.inputbox statement to see if it would display and, like messagebox, the tone sounded but nothing displayed. Other than a method that does a calculation, I can't think of anything in this plugin that I have used many times before.

      posted in Developers' Forum
      sdmitchS
      sdmitch
    • UI.messagebox

      In the middle of testing out a new plugin I was creating, the UI.messagebox stopped displaying. The command was being executed because I could hear the beep and the plugin would lock up until I pressed Enter. I added a UI.messagebox command in a reset method that is executed when plugin starts and that one displayed as expected but no other messageboxes after that.

      posted in Developers' Forum
      sdmitchS
      sdmitch
    • 1
    • 2
    • 71
    • 72
    • 73
    • 74
    • 75
    • 75 / 75