ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Double-Click Toolbar Button

    7
    0 Votes
    7 Posts
    937 Views
    A
    For switching on and off things you can create a togglebutton with Sketchup-Ruby (also possible for menu items). Doubleclickable buttons are not the common way (usability aspects). Please do not confuse the users azuby
  • Ruby Console utility

    3
    0 Votes
    3 Posts
    585 Views
    E
    That's it. Thanks Alz and Jim.
  • SU 6 Save script

    3
    0 Votes
    3 Posts
    509 Views
    A
    To be honest SU 6 is terrible. Its glitchy and MUCH slower! the list goes on but don't get me started We did purchase 20+ copies of SU6 Pro and are unfortunately in the process of implementing it. There were many things in version 5 that needed to be fixed and were ignored, instead we get styles and a million more bugs. hopefully it gets better.
  • Queston for Fred06 concerning BezierSpline tools

    3
    0 Votes
    3 Posts
    1k Views
    JClementsJ
    Thank you, Fred06. This will help me out when I have to place reference points at equi-distances along a path or simplifying existing curves.
  • Global/Local (component) axis

    6
    0 Votes
    6 Posts
    3k Views
    R
    You have a line near the end of your code: if Sketchup.active_model.rendering_options["EdgeColorMode"] Since that will always return true (non-nil), then it always evaluates the first conditional. That's why it doesn't ever toggle.
  • Copytopath

    3
    0 Votes
    3 Posts
    665 Views
    R
    Is this regarding the PathCopy script from Smustard? If so, I suspect that you have scaled the items you are trying to copy. If it's a component instance, PathCopy uses the definition and inserts new instances along the path. This would explain the change in scale. Also, the script uses the component axes for the initial placement along the path. So, you may need to redefine your component's axes, or inside the component rotate the geometry at the component's origin. There are a few issues that I have on my list to update for PathCopy, but time is short...
  • Left Click Hide Ruby

    18
    0 Votes
    18 Posts
    2k Views
    T
    It should have. The feeds are supposed to be automagic - I load a new script - and the feeds feed. That's my understanding of it. Stay tuned for "Unhide Manager" Todd
  • Units problem

    3
    0 Votes
    3 Posts
    350 Views
    TIGT
    Try something like (bmaxz+$startcoord).to_cm - SUp uses the 'inch' as its units and that's what the bmax returns - if you want it to return dims in other units try things like .to_cm ...
  • Shaping ruby

    3
    0 Votes
    3 Posts
    630 Views
    L
    Thanks Jim
  • Entity.set_attribute infinite loop

    6
    0 Votes
    6 Posts
    648 Views
    M
    Hi Thanks for that solution, I've tried it and it works a treat. Its a bit hackish but it works so it'll do. Thanks again.
  • Is there any way to stop snapping?

    10
    0 Votes
    10 Posts
    924 Views
    pilouP
    Possible or not
  • GDI Plus coding help

    2
    0 Votes
    2 Posts
    399 Views
    T
    GDI+ is pretty powerful. It's the foundation for a LOT (if not all) of Microsoft's 2D (and maybe 3D) engines. If you want me to take at look at it, I can, but no promises that I'll have the level of skill and the turnaround capability you are looking for. (I'm a C++ kinda guy - not C#) Todd
  • Combining Ruby Scripts

    7
    0 Votes
    7 Posts
    1k Views
    E
    Tig - you are a star. I could not figure out why one or two scripts ran in the console and others did not. it seems that by coincidence the 'def name' was the same as the script name for the couple that worked. Now I understand it from your explanation, it all makes sense. I have a couple of other questions, but I will put them in new topics rather than take up more of your time here (although if your posting history is anything to go by you will probably chip in there too )
  • Hidden to Layer - Script

    4
    0 Votes
    4 Posts
    888 Views
    H
    TIG, Thanks for adjusting your script so quickly - after a quick test it seems to work fine. ... Idea for a possible future enhancement (V1.3) ??? ... May need a dialog box with a check box / dropdown choice for users - incorporate unhide_all.rb Currently V1.2 of the script moves all hidden objects to Layer HIDN - and they remain as Hidden objects. If you run the script unhide_all.rb (Thank you Rick Wilson) - all previously Hidden objects are now visible. To hide them again, users can simply turn the Layer HIDN off - very useful. Gives users more control over their hidden / revealed geometry. ... You could give users the option to keep hidden objects as hidden objects or to unhide them when they run the hidden2layer script. ... Thanks once again for V 1.2 - hugely appreciated. Regards Howard Leslie
  • Can Objects Have Hyperlinks?

    10
    0 Votes
    10 Posts
    6k Views
    C
    I have been reviweing the posts on this site and wanted to ask you a few questions: I am trying to provide a graphical "report" to a customer in lieu of the traditional 3-ring binder. I want to provide a secure web-link or CD to my customer that will allow them to view their facility, hyperlink to floorplans, piping plans, and other non-graphical documents. I feel this would be more usefull and , hopefully, allow them to continually update the information. Is SketchUp the right program for this? Thanks for your time.
  • Real Failings

    5
    0 Votes
    5 Posts
    655 Views
    daleD
    Rick Thanks for the reply. I started to question my sanity, but decided to follow the hierarchy of my files back to be sure they were placed correctly. As it turns out I had an older version 5 file that I had been dumping everything into, so when I located the newer SketchUp 6 file and put it in, rebooted and bingo the Kerykythea menus are in place. The plugin menu (next to window in the main menu) I found by going into the SketchUp/ Preferences/Extensions, and clicking in the Ruby Scripts Examples checkbox. I hope this may help someone else in the future, otherwise all my stupidity was for nothing. Thanks again Rick and TIG for taking the time. Dale
  • Irritating Class methods modification

    3
    0 Votes
    3 Posts
    475 Views
    AdamBA
    Operator overloading in any language is a lot of rope to hang yourself with. And its always the guy who just discovered that language feature that goes postal with it. On a related note, I got caught badly while writing some Ruby C extension last month whereby on Win32, ruby.h quietly #defines fopen() and fclose() to be something completely different! Just insane. Adam
  • Ruby interpreter

    2
    0 Votes
    2 Posts
    364 Views
    T
    I haven't tried it. Why don't you and let us know.
  • Shorcutting a Double Click

    5
    0 Votes
    5 Posts
    522 Views
    CadFatherC
    due to harcoding i guess.. pity because it could be useful for those task.. remains to check whether some mouse tweaking programs can do that, you never know
  • Error loading file

    7
    0 Votes
    7 Posts
    845 Views
    TIGT
    Although the SUp Ruby API doesn't stress it, I think it's safer to put things into () after a method: So UI.messagebox "A message..." becomes UI.messagebox("A message..."), you are then more likely to spot errors like missing quote closing. If you are using Notepad++ (I do too) then set up your Ruby format defaults to say have any strings in red - then if you miss off a closing " everything afterwards is coloured red and stands out as wrong...

Advertisement