ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Yardoc for ruby api

    14
    0 Votes
    14 Posts
    602 Views
    J
    Added some new methods that came in version 8.0 M2. https://github.com/jimfoltz/SketchUp-Ruby-API-Doc The new GitHub Windows client makes it very easy to contribute.
  • How 2 write a script 2 loop group names and move them

    2
    0 Votes
    2 Posts
    100 Views
    D
    Hi Any tips and suggestions on how to do this are still welcome. However as many members are no doubt aware there is a great resource on writing scripts for Sketchup in the 13 Chapter 400+ pages on Automating Sketchup "by Matthew Scarpino at : http://www.autosketchup.com/downloads/Automatic_SketchUp.pdf This looks like it covers all of the things I set out in this post so here goes.
  • I get stuck with Pushpull

    2
    0 Votes
    2 Posts
    202 Views
    J
    PushPull always extrudes a Face along the face's normal. If you notice after the first pushpull, the original face is reversed, so the subsequent pushpull extrudes in the opposite direction. You need to check the Face's normal and reverse the face before extruding, or just extrude in a negative direction.
  • Mesh additions typo?

    5
    0 Votes
    5 Posts
    209 Views
    J
    @thomthom said: Where is mesh_additions.rb coming from? It's used by a few Google SketchUp scripts on this page.
  • Change tool onElementAdded

    6
    0 Votes
    6 Posts
    122 Views
    thomthomT
    What version of SketchUp did you use? Note that the M3 fixed even more observer related crashes...
  • Last Lions Update

    14
    0 Votes
    14 Posts
    418 Views
    A
    Hi Whaat, it's a compositing problem with text fields with default (=no) background color in a WebKit WebView (see Peter Saal's link to StackOverflow, and there the chances for a fix by Apple or SketchUp): http://forums.sketchucation.com/viewtopic.php?f=11&t=45382#p406422 It has been suggested there that you could work-around it by forcing a %(#000000)[input[type=text]{background-color: white}], but many haven't succeded with this solution.
  • Using round() in a SketchUp plugin

    10
    0 Votes
    10 Posts
    421 Views
    S
    @dan rathbun said: No the round() function actually rounds.. the to_i() function actually truncates. Use the "meat" of TIG's example in a single statement .. or write methods into your module thus... Good point! I hadn't considered that my method just truncates. I'll have to see if I can figure out a simple way to incorporate TIG's example into one statement; a lot of that code goes right over my head! Thanks for the help!
  • Resetting bounding box to match world axis

    12
    0 Votes
    12 Posts
    5k Views
    N
    Interesting topic, This this knowledge end up in a plug-in? I'm looking for a way to reset the bounding boxes of 'rotate multiple' components
  • Linux Windows API?

    3
    0 Votes
    3 Posts
    72 Views
    A
    @anton_s said: Does linux use and support windows API? It wouldn't be Linux itself, but there is an optional compatibility layer "Wine" that would theoretically run Windows programs on top of any Unix(Linux/BSD/Mac) exactlythe same way like on Windows (but the developers need to do reverse-engineering and it won't ever be complete) I have not yet seen the Win32:API in SketchUp/Wine working. I had to hack it out of some scripts that don't have fallbacks. I wish it will work soon because I liked to use window settings to substitute the classic menu.
  • Adding pitch yaw and roll to xyz of a location

    10
    0 Votes
    10 Posts
    2k Views
    Dan RathbunD
    @dan rathbun said: I thot Martin Rinehart did this with a biplane model ?? You can see how Martin did things through this search of his posts: http://forums.sketchucation.com/search.php?st=0&sk=t&sd=d&sr=posts&author_id=25586 then search within those results for "biplane"
  • SketchUp API Wish List

    22
    0 Votes
    22 Posts
    3k Views
    aadbuildA
    Sorry about that I was not thinking. There are many improvements that would be fanatastic if were added. Has there been any thing mentioned that we will still be able to access the back end of Sketchup? Or do we have to become some sort of partner with Trimble and only a select few will have access? No point in asking for more access when there is a possibility we will have less. It would be greatto get a comment from the powers to be
  • Ruby String Encoding

    5
    0 Votes
    5 Posts
    1k Views
    Dan RathbunD
    Looks a good place to pass on a nice link on String Encoding (that was posted to the ruby-talk-google.) http://blog.grayproductions.net/categories/character_encodings
  • Close model

    6
    0 Votes
    6 Posts
    228 Views
    H
    There is an error "stack level to deep" after line "File.copy(...)". Who can help me? [image: rTbG_Stacklevel.jpg]
  • Basic operation on char...

    16
    0 Votes
    16 Posts
    161 Views
    N
    For this example I put a tree and a Blue cube. The tree has no description and the Cube has code reference then the real description after "b755480 BLABLABLA". Then I create a groupe with the 2 objects called "Tree+cube" [image: designpx.png] Now I export all information with my plugin : [image: exports.png] then I export all information in CSV File : [image: exportcsv.png]
  • Problem adding instance of child component

    7
    0 Votes
    7 Posts
    132 Views
    K
    Ok I tried the other method c2=@model.entities.add_instance(ent_def,insert_tran) when I first looked at the suggestion I thought that was how I added the instance in my origional code but closer inspection I noted that I was using c2=@model.active_entities.add_instance(ent_def,insert_tran) Once I replaced active_entities with just entities the code worked also. Thanks Keith
  • Why is my Group deleted while trying to add entities to it?

    20
    0 Votes
    20 Posts
    626 Views
    T
    Also, even if you don't use it, group.entities.add_faces_from_mesh and group.entities.fill_from_mesh seem to delete everything existent in that group. Edit: thomthom corrected me, sorry. Also, i wrote group.fill_from_mesh instead of group.ENTITIES.fill_from_mesh. I'm going to crawl back to my hole now, one post, two mistakes is quite embarrassing.
  • Detect if SU was started with a template or a model

    3
    0 Votes
    3 Posts
    83 Views
    daikuD
    Worked Perfectly. Thanks, Tig!
  • Push pull problems/face orientation wobbly

    3
    0 Votes
    3 Posts
    334 Views
    S
    Thanks Dan. Will do. [edit] In the end I set up a vector in the direction I wanted the face to go and used "samedirection" to check and used reverse liked you suggested. Initially I tried 'parrallel?' not thinking that that wouldnt catch vectors in the exact opposite direction. if not(face.normal.samedirection? correctV3d ) then face.reverse! end This worked.
  • Rotation about the origin

    6
    0 Votes
    6 Posts
    292 Views
    daikuD
    This already exists here: http://rhin.crai.archi.fr/rld/plugin_details.php?id=345 and here: http://forums.sketchucation.com/viewtopic.php?f=323&t=9739&hilit=rot90 Perfect for mapping to a shortcut key.
  • Retrive the tool selected before launching my plugin

    12
    0 Votes
    12 Posts
    468 Views
    N
    Now, I'm using name to identify the tool For this moment it works I don't understand the ID method, maybe when I feel ill at ease with ruby, I can understand how it works Thank you Dan and Karen !!

Advertisement