ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Plugin-Request: draw-Wall

    3
    0 Votes
    3 Posts
    423 Views
    M
    wow.. thanks for the fast answer.. the tool "wallgrouptool" does pretty much the job! than you! And that was another proove that one's never the first with a thought -especially online.
  • Where's SU's Ruby files installed?

    4
    0 Votes
    4 Posts
    196 Views
    Didier BurD
    msvcrt-ruby18.dll in the main folder is the only one I see that could be it.
  • [IDEA] Platform / Street levelling / fixing script

    14
    0 Votes
    14 Posts
    659 Views
    G
    nobody got time for this at the moment? how hard is it to get this programmed on a scale from let's say 1 to 10? let me know and it might be easier to stay patient!
  • [WIP] CleverClay - Need help

    3
    0 Votes
    3 Posts
    269 Views
    PixeroP
    Thanks!
  • Sketchup.active_model.materials.current behaviour

    5
    0 Votes
    5 Posts
    207 Views
    thomthomT
    Maybe it's a Mac bug. Because on my PC it updates correctly. I'll test on my mac later when I get time.
  • Startup Switches

    17
    0 Votes
    17 Posts
    4k Views
    TIGT
    I think that the built-in require_all method doesn't load anything other than *.rb files in the given folder. My snippet in the other thread made it do sub-folders too...
  • Plugins features in 3D World

    6
    0 Votes
    6 Posts
    456 Views
    thomthomT
    hm... that sounds like they might be running into a SU group bug where group.entities.parent sometimes refer to the wrong definition. V-Ray suffered from this, but I found a way to patch it. @unknownuser said: On the other hand if i explode the components and then turn the geometry into groups (actually when i want to do that i go fist inside the component, turn everything there into a group, get out of the component, and just then explode it because it's much moreeee faster exploding components into groups than to geometry) there's no problem. I guess that's maybe because groups are just geometry "grouped" and the components can have much more "properties". From the API point of view groups and component instances both have a ComponentDefiniton, with very little difference.
  • Uninitialized constant

    12
    0 Votes
    12 Posts
    2k Views
    TIGT
    Never knew require_all was built in... require_all("C:\myrubyscriptsdirectory\") You then could easily use it to do subfolders thus: Dir.foreach("C:\myrubyscriptsdirectory\"){|entry|require_all(entry)if FileTest.directory?(entry)}
  • Time Section Help...

    3
    0 Votes
    3 Posts
    206 Views
    T
    Thanks Jim!
  • Custom Attributes

    9
    0 Votes
    9 Posts
    378 Views
    Chris FullmerC
    Try this code. Have your Dynamic component selected, then run this in the web console: model=Sketchup.active_model entities = model.entities sel = model.selection[0] sel.attribute_dictionaries.each do |e| puts "***DICTIONARY NAME***" puts e.name puts "" puts "*****VALUES*****" puts e.values puts "" puts "*****KEYS*****" puts e.keys puts "" end It will output to the Ruby Console, so have that open. That should show you some info. Chris
  • Select Perimeter Edges only

    27
    0 Votes
    27 Posts
    15k Views
    mitcorbM
    Thomthom: If an edge loop selection terminates at a 3 or 5 junction, do you see this as terminating the selection or retaining the selection up to the junction? And thereafter the selection is made edge by edge, adding to the path, or restarting the loop selection without losing what has been selected before. Just some thoughts. How many people model like this, you ask. Because I have some limited experience with Blender, I often think in terms of that workflow (wishing that Sketchup had that versatility) as I model in SU. In my opinion, this loop selection capability (and your current Selection Toys) is at least as important as the Point Merger tool recently developed and Select only Visible. Somewhere out there is the Grand Unified Modeling Program....or GUMP for short. (edit: add small chuckle)
  • Problem with Kerkythea exporter

    8
    0 Votes
    8 Posts
    638 Views
    charly2008C
    Dear Tomasz, thanks for the fast reply. The result of ENV['PATH'] is nil. Sorry that i not mentioned my system. I'm working with a PC and WIN XP SP3. I tried SU2KT Version 3.0 ,3.05 and 3.1 beta. Below the messages which are shown when i Started export in SU6/7. Karlheinz [image: aa6s_Bild2.jpg] [image: vEDh_Bild4.jpg]
  • A better select tool?

    2
    0 Votes
    2 Posts
    188 Views
    R
    Fred06 has a plugin called hoverselect, i tihnk it does what you want. Do a search of the ruby forum and see if its what your looking for.
  • Unicode, UTF8 and Ruby

    19
    0 Votes
    19 Posts
    3k Views
    TIGT
    file_found?(path) that fixes ascii in SUp Ruby path and unicode in returned filepath returning false negatives with 'FileTest.exist?(path)' - even with accented characters - is updated and moved here... http://forums.sketchucation.com/viewtopic.php?p=169225#p169225
  • File class chokes on Norwegian Characters :(

    8
    0 Votes
    8 Posts
    815 Views
    TIGT
    I've updated my file_found?(path) code here http://forums.sketchucation.com/viewtopic.php?p=169225#p169225 ...
  • Animator.rb - Call for participation

    19
    0 Votes
    19 Posts
    3k Views
    pilouP
    And Jim has made some crazzy animationstests
  • Web Dialogs with Google Gears

    12
    0 Votes
    12 Posts
    346 Views
    V
    I think you could do what you are asking Chris, with a minor modification. You would need to have the user perform a prior install of a script to enable to communication with the web service, but then once it was installed, that is all they would need. From then on, all scripts could be downloaded, and managed at run time from the database. In that you could store the scripts as either simple strings, and pass them to the ruby engine at run time to be executed, or maybe you could even store them as blobs in the DB and then execute them as a full script. I am not sure about the blob idea, in theory it could work, but in practice there might be hiccups along the way....but the managing them as simple strings that get passed around should work. As I go through this exercise over the next few weeks / months, I will keep you posted. If anyone out there wants to play a little and be a part of this, by all means, let me know... there is more than enough work to go around Obviously my catalog specific stuff I wouldn't be open to sharing, but anything generic like methods supporting gears, and or dynamic script loading from the db would be awesome to give back.
  • Using the SDK?

    14
    0 Votes
    14 Posts
    532 Views
    Chris FullmerC
    Oh good, I think that is a good idea. It does sound like you need to be working in Ruby. Feel free to start a new thread if you get stuck. I've probably said it before, but I'm saying it again: I've written two tutorials on getting started with Ruby. I made them because getting started writing ruby was a frustrating process for me. So I'm hoping this will get people started easier. #1 Getting Started Writing a Full Script Chris
  • Mirror tool

    4
    0 Votes
    4 Posts
    363 Views
    CadFatherC
    Hi TIG, that is true - i was thinking it would be fab not having to turn into 3d view to do it.. Takesh, thanks for clarifying - i wonder if the script 'knows' the view plane, perhaps it would behave in '2d mode'
  • Can i lock the toolbar?

    4
    0 Votes
    4 Posts
    268 Views
    TIGT
    http://forums.sketchucation.com/viewtopic.php?p=159685#p159685 has a PC based registry hack to save and reload toolbars... It works - I use it. You need to edit some of the example files for v7; it works in Vista too... You could also change it to only save toolbar stuff...

Advertisement