sketchucation logo sketchucation
    • Login
    1. Home
    2. TBoy
    3. Topics
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    T
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 96
    • Groups 1

    Topics

    • T

      Length snapping by code?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      6k Views
      C
      # Default code, use or delete... SKETCHUP_CONSOLE.clear if defined? SKETCHUP_CONSOLE mod = Sketchup.active_model # Open model ent = mod.entities # All entities in model sel = mod.selection # Current selection opts = mod.options prov = opts["UnitsOptions"] #LengthFormat puts "Old setting ;" + prov["LengthFormat"].to_s prov["LengthFormat"] = 0 puts "New setting ;" + prov["LengthFormat"].to_s #LengthUnit puts "Old setting ;" + prov["LengthUnit"].to_s prov["LengthUnit"] = 3 puts "New setting ;" + prov["LengthUnit"].to_s #LengthPrecision puts "The original precision setting value ;" + prov["LengthPrecision"].to_s prov["LengthPrecision"] = 1 puts "The new precision setting value ;" + prov["LengthPrecision"].to_s #LengthSnapLength puts "The original SnapLength setting value ;" + prov["LengthSnapLength"].to_s prov["LengthSnapLength"] = 10.cm puts "The new SnapLength setting value ;" + prov["LengthSnapLength"].to_s
    • T

      Push/Pull hot-spots

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Feature Requests sketchup
      6
      0 Votes
      6 Posts
      8k Views
      T
      @gilles said: Why not complain to Trimble if you want native function? post is inside: SketchUp Feature Requests Is this the right section for such a request? BTW - a lot of Fredo work has to be implemented as native functions in SketchUp.
    • T

      Push/pull (or drag) with increment ?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      1k Views
      T
      Thank you ! Exactly as I wanted to be.
    • T

      Size editing ?

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Feature Requests sketchup
      17
      0 Votes
      17 Posts
      12k Views
      T
      All I show in my first post is absolutely possible in SketchUp. There is a script "Get Dimensions" by Jim Foltz showing correct size for bounds of groups and components. A script from Fredo6 "Best fitting bounding box for for a single face" (for 2d elements). Scripts to show size of edges (or lines). (Single drawing elements can be added to "single element groups" inside scripts to extract size with above mentioned tools too). I wander why such a tool did not exist if so widely wished. A tool that collects size info for every drawing element. (I know it will duplicate some of the Entity info fields, but it is OK if the objective is to collect size information in one place.) I'm trying to put all above in a single info label, but my knowledge in programing is too poor. Is there anyone to help with code? ("Help" in my case = someone to write the script) For now I imagine it as small label on screen updated on selection change - like this: [image: EZm0_Label.jpg] Area, volume, names can be added too, but I try to make it as small as possible, so may be as optional rows in the above label. Next step will be a dialog, and changing size (input) to act as resize/scale (relative to current axis location for components and groups).
    • T

      Move and Select tools allways in context menu

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Feature Requests sketchup
      3
      0 Votes
      3 Posts
      7k Views
      T
      Obviously you don't smoke as much as I do. After all day hard work, few hundred restarts of the program and lot of browsing and investigating available scripts - i have done this: MoveTool.rb require 'sketchup.rb' if( not file_loaded? "MoveTool.rb" ) Sketchup.active_model.selection UI.add_context_menu_handler do |menu| menu.add_separator menu.add_item("Move tool"){Sketchup.send_action "selectMoveTool:"} menu.add_item("Select tool"){Sketchup.send_action "selectSelectionTool:"} end file_loaded "MoveTool.rb" end This is my first script and is working for now.
    • 1 / 1