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

    6
    0 Votes
    6 Posts
    710 Views
    pbacotP
    Thank you, Miguel. That's the one I ended up using. Thanks for the link to Tomasz' site, too. I've never looked at it before. Pretty cool.
  • Merging two shapes along path...

    12
    0 Votes
    12 Posts
    1k Views
    juan974J
    Hello, did you try 2 faces + path ?? the web site http://lss2008.livejournal.com/ Juan974 (reunion island) [image: 2_faces___path.jpg.html?killcode=1352435932519360629] pathface.rb
  • Snapping to grid in two dimensions

    2
    0 Votes
    2 Posts
    168 Views
    daikuD
    Sorry about bumping my own thread, but I'd really like to solve this one. The built-in rectangle tool does exactly what I want. You can see it by watching the VCB. Even though you are at a diagonal distance from the the first point, it snaps to even numbers in the cartesian directions. I started with the line tool sample, but I modifed the VCB code to display the x and y offset values rather than the striaght-line length. But they are always some odd value with a ~. CB.
  • Quit Current Tool

    6
    0 Votes
    6 Posts
    195 Views
    daikuD
    Thanks Tig. My tools are specific to a very specialized group of users (timber framers), so they'll know what should be selected. I think having the tool grayed out on the menu is all I need to do. CB.
  • Converting text to unit length (string.to_l)

    2
    0 Votes
    2 Posts
    137 Views
    J
    Yes, I was worried about this problem. In my woodwrk.rb I use a simple math evaluator as an alternate to simply a math expression. I parse the string and where there are legitimate length fields I insert the following: s.to_l.to_f.to_s. If fear this won't work in European countries although I do know at least one guy using my Ruby.
  • [WebDialog] A-H, I-M, N-Z in Javascript

    9
    0 Votes
    9 Posts
    194 Views
    chrisglasierC
    I discussed this with Jim just now and we decided that it is better to include the full methods output for the beta version so interested parties can understand and improve the code holistically. But thanks for your help. Sometimes I'm a little too quick off the mark! Chris
  • Offset a Path (like TOS but without a face)

    5
    0 Votes
    5 Posts
    259 Views
    ToboboT
    Thanks again
  • General Questions About Ruby

    3
    0 Votes
    3 Posts
    136 Views
    C
    Thank you very much! I think that just solved a question I had about why some of my scripts dont have pictures for their toolbars. I'm getting alot of load errors as well. I think I will have to delete those scripts and make sure I copy them into the plugins folder in the correct directory order. I will watch some tutorials too. Thanks
  • Faces to components problem

    15
    0 Votes
    15 Posts
    2k Views
    O
    thanks for your help on this guys, the right click option that you made honolulu doesn't seem to work on my computer but Chris, your updated code works so thank you very much
  • Looking to make a script, but dunno how.

    34
    0 Votes
    34 Posts
    1k Views
    A
    Ok. I didn't know.. I thought it was native. Is there some way to stash this inside my script so that the method is local? Or perhaps I shouldn't worry about that? (How do I check if a method is defined? If I can't, are duplicates OK?)
  • How to use Ruby API

    28
    0 Votes
    28 Posts
    1k Views
    honoluludesktopH
    Darn, I finished coding only to discover the "putdxf" I use for my CAD import has a bug that fails to locate multiple blocks correctly. I confirmed this by being unable to "putdxf" with the system's "getdxf". Will have to rewrite as a "command line" script. Thanks for everything, sorry I couldn't understand much of what you tried to explain to me. But, because of your help, I will get better in time
  • Model.active_path uses global coordinates?

    4
    0 Votes
    4 Posts
    153 Views
    daikuD
    @thomthom said: I think that as a component/group is opened for editing, all co-ordinates are made global. That explains much. @thomthom said: Su7.0 introduced a method to help on this matter: http://code.google.com/apis/sketchup/docs/ourdoc/model.html#edit_transform And I'll have to transform them all back myself, I guess. Thanks, Thomas.
  • Pages.erase

    11
    0 Votes
    11 Posts
    551 Views
    R
    Cheers guys, that makes sense
  • Upgrade NotePad++?

    16
    0 Votes
    16 Posts
    2k Views
    Chris FullmerC
    I guess I would recommend using it without the do, since ruby syntaxd seems to think its redundant (which I do find odd as it does not fit their other loop syntaxes). Or if it helps, I learned the array.each do |e| ... endmethod first and I was able to understand it fairly quickly. And I hve zero programming experience outside of Ruby for Sketchup. Another bonus to teaching that method is that all the API uses it, as apposed to the for in end loop. So it might help readers transition into the API smoother. But that is just a thought, Chris
  • How to determine if selection is a surface

    7
    0 Votes
    7 Posts
    205 Views
    Al HartA
    @thomthom said: Doh! I never noticed that method! Nor is_curve? or single_object?. I know. I searched the SCF first, but never thought to try to search the Ruby documentation. (I kind of assume that if something is important we have discussed it here already.) Actually their search works pretty well. (even better than that) if you go to: http://code.google.com/apis/sketchup/docs/index.html And use their search box for something like "Curve" it displays text from and links to pages in the SketchUp documentation containing the word curve. (Just what you might expect it to - but I also suspected that it might search the whole universe for the word curve) I need to use it more often.
  • PushPul not removing faces.

    4
    0 Votes
    4 Posts
    147 Views
    Chris FullmerC
    Interesting, I did it manually with no problems. Perhaps this is yet again coming back to SU tolerance issues? Chris
  • How to pull two values from the VCB

    4
    0 Votes
    4 Posts
    148 Views
    Chris FullmerC
    @daiku said: Clearly I was overthinking it! Thanks, Thomas. Something none of us have ever been guilty of before Chris
  • How do I find the face I just created with add_circle?

    10
    0 Votes
    10 Posts
    431 Views
    thomthomT
    @daiku said: I guess Martin's way is fine. It won't create a second face, will it? Yes, I'm creating it on an exisiting face. Looping through the geometry was straightforward - it's not that large a component. In that case you should only need to check the faces collection of one of the returned edges.
  • Require 'sketchup.rb'

    4
    0 Votes
    4 Posts
    978 Views
    Chris FullmerC
    You can open the Sketchup.rb to see what is included in it. Chris
  • Hey whaat!

    4
    0 Votes
    4 Posts
    324 Views
    soloS
    Very happy to hear that it's still in the works as well as your commitment to continue making awesome plug-ins. And please remember I'm natural lab rat so if any beta testing is required just let me know.

Advertisement