ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Sketchup.find_support_files

    3
    0 Votes
    3 Posts
    1k Views
    N
    Thanks Todd I know how to use find_support_file - its the plural version find_support_files I dont quite understand. It's not really important to know - just a query. Indeed, the search on the old ruby group is broken - not mush use. Regards Bill Wood [BillW]
  • Image Shadow ?

    4
    0 Votes
    4 Posts
    790 Views
    T
    I want to add that this script is pretty cool. I've been beta testing the Mac version for Rick, and even though it doesn't work, yet, it is still pretty neat technology. Todd
  • DoorMaker

    3
    0 Votes
    3 Posts
    890 Views
    H
    Paul, If it's not bust don't fix it !!! Your DoorMaker script is really good now - doesn't really need to be touched. ... If you've got creative energies to spare... What would be really good would be a WindowMaker script that works in a similar way to your DoorMaker script. I'm aware of the Windowizer script which is pretty good. However, the window geometry is only correct when viewed from one side and needs to be finished off manually from the unfinished side. (Still quicker than creating a window from scratch). ... Regards Howard L' PS My favourite episode is the one with the visiting bishop who hates rabbits !!!
  • Clearing 3D Warehouse information saved in a SKP file

    5
    0 Votes
    5 Posts
    8k Views
    TaffGochT
    Al, There's a problem ( perhaps - please confirm ) I've been experimenting for a week-or-so regarding the problem with the Model ID being 'inherited' from a parent model, when using the 'Save as...' or 'Save copy as...' commands. As you noted, the 'cloned' file has the same 'mid' number as the parent model file. I've been testing ruby code with the ruby console. Problem description I discovered how to delete the 'ModelID' key, exactly the same way you coded in your ruby script. I could indeed upload the 'clone' file to the 3DWarehouse, as a 'new' model. I then completed the upload process by saving the file before closing it, as you're supposed to, in order to save the new ModelID into the 'clone' model file. When I reload the model, there is NO 'ModelID' key stored in the file. Doing it again, I checked for a 'ModelID' key as soon as the upload was successfully completed. Again, no 'ModelID' key! In the ruby console, I am using the following to return the 'ModelID' key: Sketchup.active_model.get_attribute('3DWarehouse','ModelID') Experimenting further, I found that the Warehouse apparently does generate a new 'mid' number, but it either does not return it to my model in SketchUp, or the model fails to accept it. Additional testing revealed that a new 'mid' number does not get coded into the model unless the entire dictionary, '3DWarehouse' is deleted. (This deletes the 'ModelID' key, which is contained in the dictionary.) I used the following in the ruby console: Sketchup.active_model.attribute_dictionaries.delete('3DWarehouse') Checking afterwards, the dictionary and key are indeed deleted. Uploading to the Warehouse is accepted as a new model, and a new 'mid' number is generated, just as before. Upon completion, and checking my model for the 'ModelID' key, the correct number is, this time, returned in the ruby console (by correct, I mean it matches the URL 'mid' number.) By using, primarily, the two ruby snippets above, I'm convinced that deleting just the key doesn't completely fix the problem - the dictionary has to be deleted, as well. During testing, I also used these two snippets (for diagnostics): Sketchup.active_model.attribute_dictionary('3DWarehouse').keys Sketchup.active_model.attribute_dictionary('3DWarehouse') Would you be so kind as to confirm this behavior? If your posted ruby script requires revision, now's the time to catch it, before many people download or reference it. Regards, Taff
  • Change dimension font size from within a ruby script?

    2
    0 Votes
    2 Posts
    964 Views
    R
    Unfortunately, no. Ruby access to dimension objects is pretty much non-existent. Sorry...
  • PathCopy.rb does not show

    13
    0 Votes
    13 Posts
    4k Views
    R
    Susan, Thanks for doing my tech support for me I guess that's what happens with time zone differences...
  • Plugins folder in different place/path on computer

    7
    0 Votes
    7 Posts
    856 Views
    T
    Thanks azuby. I also found a description on my Mac by going into Terminal and typing "man ln". I figured that's what they were. Todd
  • How to save user settings across sessions?

    10
    0 Votes
    10 Posts
    2k Views
    R
    I use attributes to store data in a model when it's relevant to the model (like in my ToDoList plugin). But something that would be comparable to a "global" setting is best (IMO) put into something external - registry/ini file/other text file.
  • Zomadicam: A SketchUp to Shopbot Partfile Generator

    11
    0 Votes
    11 Posts
    5k Views
    N
    I'm working on some different samples of basic Sketchup files for the plugin. Uploading to the site soon. The number of segments you'll want in a curve will depend on the size of the arc and the overall dimension. I've hardly made a science out of it but I find that cutting from circles of 360 segments or arcs of 90 segments yields "perfect" results. That is to say, other factors affecting edge quality off the cnc machine are greater than the segmentation effect. I suppose the goal would be that the peaks between any two chords along the curve should be less than 1/32nd or maybe 1/64th. As a simple exercise, one should be able create a partfile to cut a circle by following these steps Draw the circle on the red-green plane and make a component out of it. Set the z-zero to your material thickness: menu select Plugins->Zomadic Tools->Zomadicam->set z-zero Select the circle component and menu select Plugins-> Zomadic Tools-> Zomadicam-> Transform selected Geometry to Toolpath Select the new toolpath group generated from step 3 and menu select Plugins-> Zomadic Tools-> Zomadicam-> write selected Toolpath Geometry to partfile I'm working on incorporating Shopbot's built in curve commands for arccurves when appropriate but it's tricky when the curve has been scaled in some fashion. [Rob]
  • Metrics or inches

    6
    0 Votes
    6 Posts
    1k Views
    M
    Thanks Todd, I'll look into it in case I'm going to need it (likely) but Didier already solved it for this script. [Maggy]
  • Width, Depth and Length of Component Instance

    6
    0 Votes
    6 Posts
    1k Views
    daikuD
    TIG: Unfortunately, that won't work for all cases. Here's another example. The result I want in this case is 10" x 10" x about 11'. But this one does not have a "horizontal" face. The "bottom" face has bounds of ~7' x ~7'. I know how to "lay it down". But I think the next step is to recursively explode it, and then un-explode it again and take the bounds of the new object. But I have no idea how to un-explode. This all works perfectly if I do it manually, but how to do it from ruby? Seems like I've been here before... CB. http://www.sketchucation.com/forums/scf/sas/Ruby/rafter_example.skp
  • Made a Skript ready for V6

    3
    0 Votes
    3 Posts
    1k Views
    BurkhardB
    Nice to meet you here. You have two mails from your blog. I thought you have had enough It is the old script_loader.rb Ruby console say true, window opens but nothings happend Got it , but thanks for the offer Burkhard
  • New Script: SelectionMemory2; and update to SelectAtStartup

    6
    0 Votes
    6 Posts
    1k Views
    R
    SelectionMemory2 and SelectAtStartup both rely on Observers, a new ruby feature exclusive to SketchUp 6. Sorry... But thanks for the question - I need to put that on the website.
  • ½ PIPE ALONG PATH

    12
    0 Votes
    12 Posts
    3k Views
    CadFatherC
    no but seriously (insert seriously smiley) - all these geniuses... the @last folks came up with follow me, stamp and create mesh...great ideas, remember? now i think the kindness and generosity of these masters has been beyond words.. ...very... grateful ..to have a 'driveby' plugin where you can lay a path on a terrain and have a profile follow it while keeping the car flat on the ground... wuooh (missing a smiley again) ...to see some of these sirs work together to such achievement... TIG, Didier, Hal Rick and all those others...perhaps we could organise a ruby base camp in a warm resort where they would work in leasure (while we make sure they don't just go surfing) the labourer deserves his/her wages ...who would buy this tool?
  • A 'non destructive' beveling ruby.

    8
    0 Votes
    8 Posts
    2k Views
    Y
    I too am looking for an easy and quick way to bevel, fillet chamfer. I've downloaded the chamfer ruby but for the life of me can't figure out how to use it. Desperately want a good fillet/chamfer ruby!
  • Weird behaviour

    9
    0 Votes
    9 Posts
    1k Views
    R
    Or from the direct link in TIG's post. It's that line of text that's bluish in color.
  • Reduction Ruby

    3
    0 Votes
    3 Posts
    1k Views
    N
    While somebody might be able to create a script to do this [which would be nice] I don't really see the need. Blender [free] already has an excellent feature to do this [decimate] and can be done without needing to learn blender interface. Work process like this: export .obj from sketchup import to blender right click object to select, add decimate modifier set to whatever level [say .25] and apply export from blender as .3ds import back into sketchup I'm a huge fan of sketchup, but when there's a better tool for the job... [dsarchs]
  • Is there a minimum rotation for components?

    5
    0 Votes
    5 Posts
    916 Views
    KrisidiousK
    nice thinking outside the box or radian as it were... Rick
  • Ruby Console doesn't load (two monitor mis-hap)

    4
    0 Votes
    4 Posts
    1k Views
    KrisidiousK
    lol good point
  • Reporting API bugs

    3
    0 Votes
    3 Posts
    965 Views
    J
    @craigd said: Hi Jim, here is the link to the new Ruby Discussions Group: http://groups.google.com/group/sketchupruby/topics Cheers, CraigD Craig, I've been a regular reader and contributor since the group's inception - in fact, I was the one who asked for a Ruby forum. I never did understand why they named it "Ruby Ideas." Anyway, it never occurred to me to post there, but I'll try.

Advertisement