sketchucation logo sketchucation
    • Login
    1. Home
    2. jpjapers
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 7
    • Groups 1

    Topics

    • J

      Rusty with Ruby. Import help needed.

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      458 Views
      Dan RathbunD
      You'll need to make your own button images 16x16 and 24x24 The code will be near to: if Sketchup.version.to_i > 13 # no save as before v14 ! save_as_v8_cmd = UI;;Command.new("Save As v8") { model = Sketchup.active_model path = model.path if path.empty? if RUBY_PLATFORM !~ /(darwin)/i # MS Windows path = UI.savepanel( "Save Model As v8 skp...", "*.skp", "SketchUp Files (*.skp)|*.skp;||" ) else # Mac path = UI.savepanel( "Save Model As v8 skp...", "*.skp" ) end unless path.nil? # nil if dialog cancelled model.save( path, Sketchup;;Model;;VERSION_8 ) end else # use current filepath model.save( "", Sketchup;;Model;;VERSION_8 ) end } save_as_v8_cmd.small_icon= "your_icon_name_16.png" save_as_v8_cmd.large_icon= "your_icon_name_24.png" UI.menu("File").add_item save_as_v8_cmd # assume you've created a toolbar ref'd as my_toolbar; my_toolbar.add_item save_as_v8_cmd end
    • J

      Photomatch issues

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      3
      0 Votes
      3 Posts
      134 Views
      B
      @baz said: It might be several things. Show us a screen shot. Or even post the photo itself? One thing that is pretty important for good results is that the photo should be uncropped. Ideally it should also be undistorted if it shows some lens distortions, because SU does not handle eny distortions. If is heavily distorted it will contain curved lines, which will be impossible to align with the straight red/green lines.
    • J

      Create an entirely custom toolbar that loads ruby plugins?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      1k Views
      J
      @thomthom said: It would help if you posted the syntax error you get. It includes indication to where in the script you have errors. And when you post code snippets, please wrap it [code] tags in order to preserve formatting and ease of reading. Hey sorry i edited my post before i saw yours because i found a snippet that i didnt include and i thought it best just to ask someone who knows what theyre doing
    • 1 / 1