sketchucation logo sketchucation
    • Login
    1. Home
    2. bionic58
    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
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 1

    bionic58

    @bionic58

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    bionic58 Unfollow Follow
    registered-users

    Latest posts made by bionic58

    • RE: [Plugin] CleanUp

      I wanted a toolbar icon to run "Clean with last settings" without having to go to navigate down the plugins menu, so I added the following code to core.rb under the ### MENU & TOOLBARS ### section:

      toolbar = UI;;Toolbar.new(PLUGIN_NAME)
      cmd = UI;;Command.new("Cleanup"){ Sketchup.active_model.select_tool(self.cleanup_last) }
      cmd.small_icon = "broom-24.png"
      cmd.large_icon = "broom-48.png"
      cmd.tooltip = "Cleanup"
      cmd.status_bar_text = "Clean your model using current settings"
      cmd.menu_text = "Cleanup"
      toolbar = toolbar.add_item(cmd)
      if toolbar.get_last_state==TB_NEVER_SHOWN
        toolbar.show
      elsif toolbar.get_last_state==TB_VISIBLE
        toolbar.restore
      end
      

      I have attached the icons I used. They need to be placed in the same folder as core.rb
      small toolbar iconlarge toolbar icon

      posted in Plugins
      B
      bionic58