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

    Topics

    • S

      Remove In Model from Components

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      312 Views
      TIGT
      IF there are any components placed in a SKP model when Sketchup opens you can't purge them. Unused components can be purged... and then they are only accessible from the Components folder again... So, unless you want to somehow explode all component instances at startup and then purge unused [=ALL], you must always have some components in the browser of any previously-used SKP, where you have placed some components ???
    • S

      If Toolbar is true make it false

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      54
      0 Votes
      54 Posts
      3k Views
      Dan RathbunD
      @simonstaton said: I dont suppose you know what the toolbar name would be for the large toolset do you? It does NOT have a string identifer that works with UI.toolbar_names or UI.set_toolbar_visible, etc. This is a bug in the API; we have asked that it be fixed. Misspelled argument: 'Principle' for the Principal toolbar. The missing arguments: %(#000000)[**identifier]%(#F0F0F0)[____]%(#000000)[tb_ID]%(#F0F0F0)[_]%(#000000)[send_action int "LargeToolSet"]%(#F0F0F0)[_]%(#000000)[(211)]%(#F0F0F0)[__]%(#000000)[23056 "Layers"]%(#F0F0F0)[_______]%(#000000)[(220)]%(#F0F0F0)[__]%(#000000)[21132 "Shadows"]%(#F0F0F0)[______]%(#000000)[(103)]%(#F0F0F0)[__]%(#000000)[10546**] NOTE: %(#000000)[**"Dynamic Components"]%(#F0F0F0)[_]%(#000000)[(59648)]** is a ruby toolbar (not a native toolbar.) You must use UI.toolbar('Dynamic Components') with the .visible?, .restore, .hide and .show methods.
    • S

      Run batch file from ruby as admistrator

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      4k Views
      S
      yes I know, but that easiest solution slipped through my hands
    • S

      Snapto in Sketchup 6

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      14
      0 Votes
      14 Posts
      627 Views
      Dan RathbunD
      Updated code example again to handle downloaded component paths pointing to the Temp folder. Is ther any current Component Tool plugin that has something similar to this "Save All" feature?
    • S

      Change Toolbar Icon Size

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      4k Views
      Chris FullmerC
      Ruby is not the programming language of SketchUp. SketchUp is written in a compiled, closed down language and we do not get to see what makes SketchUp work. They have opened small portals into SketchUp. That is where Ruby comes in. Ruby is allowed to interface with the core SketchUp program. But it can only do what they have designed it do it. They have not allowed us access to change the toolbar icon possible sizes, therefore we can not do it. But the workaround is to make your own icons on the screen like some of us have played with. Or to make a Web Dialog with your own icons. Besides, I bet no one would want you to change their icon size for them. People have very strong feelings about how their UI is set up. And no one would want a script to come in and change things outside the realm of that script (like global icon size). Good luck with it, Chris
    • S

      Executing a ruby file

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      206 Views
      Dan RathbunD
      @thomthom said: So from that you know the command to trigger the command: create_box ... That is assuming that box.rb is loaded. HOWEVER... there is a bug in box.rb, if Tools/make_pano_pm.rb is also loaded (it loads after box.rb,) and redefines the create_box method; so the box object is never created. I posted a fixed version of box.rb [Example] box.rb version 2.0.0
    • S

      Google earth import view ruby action

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      788 Views
      Dan RathbunD
      @simonstaton said: oh crap, so no way of moving it out of the menu and onto my toolbar? (1) You CANNOT move anything out of any menu. (2) The Google Toolbar already has all the buttons. Toggle it with: Sketchup.send_action( 10617 )* Show it: UI.set_toolbar_visible('Google', true)* Hide it: UI.set_toolbar_visible('Google', false)
    • S

      Making an alert

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      154 Views
      S
      perefect thanks
    • S

      Launch an Application in RUBY

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      14
      0 Votes
      14 Posts
      2k Views
      S
      dont worry i needed to put a "+" between to two solved! thanks tig
    • S

      Exploding selected model using ruby numeric values

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      654 Views
      S
      Hi Tig, I have sent you a pm with more details about the attributes exporter.
    • S

      Google Example Plugin Box.rb

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      274 Views
      S
      I also just found this page that might help. http://code.google.com/apis/sketchup/docs/ourdoc/material.html
    • S

      Hide components panel on close

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      258 Views
      AdamBA
      @chris fullmer said: It has to be put into a class and you have to instantiate the class as a tool. And you also have to attach an observer to the Sketchup object. Check out the full example in the introduction paragraph on that page. It shows better how to use it in context. Chris Apart from onQuit is broken on Mac OSX which is annoying. Also be aware that these "stuff has finished / been deleted" generally get invoked after the fact so don't expect to get useful info from the objects in question. Adam
    • S

      Hide Toolbars On Load

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      16
      0 Votes
      16 Posts
      2k Views
      Dan RathbunD
      @simonstaton said: ...now is there one of these [methods] that I can make that will hide the getting started toolbar on load? ...[snip]... ANSWER: Yes there is ! The following code hides the "GettingStarted" toolbar at any time, whether it's docked or floating. status = UI.set_toolbar_visible("GettingStarted", false)
    • S

      Locking The Components Panel To The Side

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      249 Views
      Chris FullmerC
      I like that you had to come back and refute your own statement Jim Chris
    • S

      Exploding Using Ruby Script

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      9
      0 Votes
      9 Posts
      2k Views
      S
      @tig said: Sorry - I made a typo, try this... there was loose ) after entities ! Sketchup.active_model.active_entities.each{|e|e.explode if e.class==Sketchup::ComponentInstance} wewt! thanks man that worked a dream. ive spent so long on this thanks
    • S

      Help needed please!

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      3
      0 Votes
      3 Posts
      813 Views
      T
      Hi Simon, I'm not sure what you want either. If you want to display an SU model, you can put models into a Google Earth window inside your web page. Once there you can use the GE Navigation Controls to move around the model in 3D. Have a look at the topic below: Google Earth Plugin at http://www.sketchucation.com/forums/scf/viewtopic.php?f=15&t=11115&start=0&st=0&sk=t&sd=a. If that's what you're looking for, you can see a sample of this at: http://www.twharvey.talktalk.net/index.htm Good luck, Tom
    • 1 / 1