ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Browser called from SU and html code

    11
    0 Votes
    11 Posts
    465 Views
    jiminy-billy-bobJ
    But remember : @thomthom said: It will work on all systems that have IE10 or newer installed.
  • Ruby loaded file vs eval

    5
    0 Votes
    5 Posts
    1k Views
    thomthomT
    Sure, but if the results are that close then it's insignificant. Large differences - the ones that matter you'll see quickly.
  • How to draw parallel lines

    2
    0 Votes
    2 Posts
    4k Views
    TIGT
    Smustard.com's offset.rb adds an ' .offset' methods faces/edges/arcs/curves etc. That should give you some ideas at least... My ExtrudeEdgesByOffset tool also has some similar code that you could think about - however the easy way to offset edges is if they belong to a face, and are therefore definitely coplanar... Instead of entities.add_edges(array) you might be better using entities.add_curve(array) to make the offsetting easier, if you want separate edges later you can always explode the curves in code...
  • Transformation.rotation multiple copy

    8
    0 Votes
    8 Posts
    229 Views
    C
    Yes I think it is a simpler way to draw the profile and pushpull, but once I started along the path of rotation I was getting some unusual things happening and I wanted to know what was going on. I'm on a learning curve with transformations so I will be looking into all the points highlighted here. I want to be able to define the number of teeth on each wheel and the diameter of the wheel. There will be eight wheels in all- I am modelling the back sprocket of a bicycle wheel and would like the script to ask how many wheels on the sprocket? What are their diameters? and what is the separation between each wheel. If I were to go along the route suggested by Dan I would have eight separate pushpulls of the axial profiles but this still would probably less error prone and much simpler.
  • Instance transformations not remembered

    6
    0 Votes
    6 Posts
    557 Views
    A
    Thanks a million. That has cracked it. I used the offset method Best wishes Andrew
  • Ruby array to hash

    7
    0 Votes
    7 Posts
    1k Views
    K
    Thanks TIG it is a good point
  • Help needed in traversing the Model

    15
    0 Votes
    15 Posts
    370 Views
    thomthomT
    Yes, it'd be trivial to collect hidden entities or collect stats. But the point being is that the code is compact and easy when you traverse like that instead of walking model.definitions which would require backtracing.
  • Trying to sort scenes by alphabetical order..Need Help!

    14
    0 Votes
    14 Posts
    615 Views
    renderizaR
    Hi, I updated [Re]Scene to include the feature to reorganize all scenes by alphabetical order. Thanks for all the help! New Web-Dialog: [image: dlg_1.jpg] Plugin Page: http://sketchucation.com/forums/viewtopic.php?f=323&t=52203 Cheers!
  • Inputbox change values.

    2
    0 Votes
    2 Posts
    120 Views
    Dan RathbunD
    Either use 3 successive inputboxes... OR use UI::WebDialog
  • New to Ruby - I want to write a script to...

    26
    0 Votes
    26 Posts
    924 Views
    K
    Hi John, The ear sounds painful! I hope you are recuperating well. Thanks for the workflow. I have got it to work, with SU loading a script automatically (which defines a function to set the current model behavior as I want it) and I call that function in console. It runs slowly compared to the all-Ruby solution - but at least it processes without crash. So I can send lots of files and leave it to run over lunch, or night! Many thanks again, Keith
  • Webdialog connect to PHP

    13
    0 Votes
    13 Posts
    2k Views
    jiminy-billy-bobJ
    @krisjaniszakis said: Does some one know how big(length) array ("v") I can send through ? http://stackoverflow.com/a/7725515 But big data like this you should go with POST instead of GET
  • Creation of folder from Ruby on Mac

    31
    0 Votes
    31 Posts
    1k Views
    D
    @tig said: You normally won't need to know why it failed I was thinking more for a standalone debug script to try and find why these edge cases are failing. john
  • Component Axis Display Option

    9
    0 Votes
    9 Posts
    203 Views
    Dan RathbunD
    @ktkoh said: Dan that code controls the global axis. I am trying to control the individual component axis visibility. And if you had read the NEXT post after THAT, before posting you would have seen I gave you the instance key as well. Lesson: Read the whole thread before posting.
  • Camera API not working properly?

    8
    0 Votes
    8 Posts
    349 Views
    renderizaR
    Thanks it worked!
  • Sketchup-Version and SUModelSaveToFile

    2
    0 Votes
    2 Posts
    146 Views
    Dan RathbunD
    This post belongs in the SDK forum.
  • Help with adding extension to Trimble's Extension Warehouse.

    9
    0 Votes
    9 Posts
    508 Views
    Chris FullmerC
    I think we all have our shining moments, and I'm certainly no exception
  • New Developer Export to PDF can it be done?

    11
    0 Votes
    11 Posts
    397 Views
    Dan RathbunD
    @bomastudio said: Sketchup.send_action("printDocument;") Where you find it?? In the Code Snippet post: Re: [Code] Sketchup.send_action() : Arguments to Lots of snippets indexed here: [Code Snippets]
  • [Tips] How to make resolution-independent WebDialogs

    3
    0 Votes
    3 Posts
    231 Views
    A
    That was a copy paste mistake. I don't know how it is on OS X. If pixel doubling is used, I'd expect existing webdialogs work without change, but the above points wouldn't hurt. I don't know if it can set anything inbetween. The same goes also for devices like the Toshiba Kira where the manufacturer added pixel doubling etc.
  • How to use TestUp?

    3
    0 Votes
    3 Posts
    161 Views
    renderizaR
    Thanks Dan Rathbun running as admin worked!
  • Toolbar Registry Hacks

    22
    0 Votes
    22 Posts
    5k Views
    TIGT
    Obliquely... Have you also noticed this [reported] bug in v2013 ? Win7 - but others might get it too... Open SketchUp v2013 Arrange some floating toolbars on screen - native, native-rb [like dcs] and plugin. Minimize SketchUp. Context-menu close it from the Task-Bar. Reopen SketchUp v2013. Native toolbars are where you left them. All native-rb and plugin toolbars have been 'deactivated' ! Bummer...

Advertisement