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

    Topics

    • OscarLokO

      Using Visual Basic 2008 Express dialog form in Ruby.

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      15
      0 Votes
      15 Posts
      4k Views
      M
      Who just loads up some guys exes and dlls with no source? Geez, just load up the vb project.
    • OscarLokO

      Scripts not working after Scrambler

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      12
      0 Votes
      12 Posts
      722 Views
      A
      @unknownuser said: Ha, Ha, Happy New Year Oscar oscarlok.slepp 6.days azuby
    • OscarLokO

      [Plugin] Boolean--OSCoolean (Dec 2013) for SU 8 up free ver

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      301
      0 Votes
      301 Posts
      226k Views
      Dave RD
      @nearlyman said: I installed from download file: access to ‘extension warehouse’ failed due to a message statement “there is a script error on this page”... I am installing on the 2013 version of Sketchup Make. The Extension Warehouse hasn't supported SketchUp 2013 for a number of years. As TIG wrote in the post immediately before yours, this extension hasn't been supported. There are other options available, though.
    • OscarLokO

      Excel to SU ( 29/7/08 version )

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      25
      0 Votes
      25 Posts
      6k Views
      R
      Hi Oscar Lok I was really interested in your ex2sk ruby when I found it recently . I downloaded it from your post and got it to work and it's really good good. It is exactly what I was looking for. I actually wanted to be able to edit it a little bit but I think it's in rbs format at the moment. Would it be possible to get the rb version of this script so I could play around with it? Thanks Joe
    • OscarLokO

      Geomatry Resizer or Paramatric???

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      43
      0 Votes
      43 Posts
      5k Views
      M
      Hi, This script is still under development? maybe another with this same 2D approach? Thanks
    • OscarLokO

      How the RUBY apply a dimension(with label, dimension line wi

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      2k Views
      TIGT
      There is a trick that could do this... I'll use 'metres' in the example below but you can adjust this to suit whatever units you want... Make a 1m long dimension (X) against a horizontal edge - in a 'flat' XY orientation, with a 1m long leader offset (Y). Highlight the dim and make it into a component - called let's say 'Dim'. Save it externally as its own 'skp' - into a logical folder path. In a model, your script then inserts an instance of Dim.skp from the folder. In your model/script you have the required edge... The edge has a knowable length (let's say 2.1m), so your script transform scales the instance proportionately by x2.1 in X. The figured dimension will automatically adjust to 2.1m to suit. You can also adjust the leader scale (Y). Transform the instance location and rotation to suit the edge's. You now have a dimension that reflects the edge's length and orientation. You can also use this method to script a 'dimension' between any two known points... You might also be able to change the 'orphaned dim' colour to match the normal dim's colour ? Not sure how to access/set this ??? The dim's arrow heads will scale in the X... too so you might want to make a set of Dim skps - say 1-100mm, 100mm-1m, 1m-3m, 3m-10m etc and then insert instances of them to match nearest to the edge's length - so that the subsequent scaling of them wouldn't distort the dim-compo's arrow heads too much... You could also 'connect' the edge and component-dim using attributes and observers, so if the particular edge changed, then the associated dim-compo could be adjusted automatically to suit... It would then behave very much like a normal associated dimension. This could be all very convoluted to achieve, BUT it's still possible...
    • OscarLokO

      How can I assign a keyboard key as a SketchUp shortcut

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      6k Views
      TIGT
      It IS possible to modify and add shorcuts to the PC registry using SketchUp Ruby methods [search other recent threads on this] BUT I would not recommend it unless it's for 'in-house' use only. As TBD says imagine the chaos it'd cause if your script messed up everyones pre-set shortcuts... IF you want to do this then at least offer the choice - make your script with an installer [part] which checks to see if the shortcut has already been used, and with a dialog that asks something like, "Would you like to assign 'Q' as the shortcut key for this tool ?" and if it's already pre-set, "\nNote that 'Q' is currently used for xxxxxxxxxx."; Yes/No. If Yes then you make / change the shortcut. The installer only auto-runs once - on exiting the dialog it also writes something into the registry that is checked by it when it's about to run again, and if that's found then doesn't even ask. This way the user has the option - and at least then knows that a key has been assigned...
    • OscarLokO

      Need help on better way to do mouse select

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      3k Views
      No one has replied
    • OscarLokO

      Ss add ss.group ???? Need Help

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      7k Views
      TIGT
      Try ss.add(ss[0].parent.entities)
    • OscarLokO

      May I know how to use "close_active" from the Model Class,pl

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      7k Views
      TIGT
      Sketchup.active_model.close_active will close a group or component that you have open for editing, and return to the base model, or group/component if the group being edited is 'nested' inside others. It returns 'true' if successful. It will return 'false' if you are in the base model itself as there's nothing to 'close'... TIG
    • 1 / 1