sketchucation logo sketchucation
    • Login
    1. Home
    2. rvs1977
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 16
    • Posts 53
    • Groups 1

    Topics

    • R

      How to use special characters in filenames like æøå

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      247 Views
      R
      Hej Thom, Then it sounds like I have to switch to Sketchup 2014
    • R

      How to save the model to a file?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      297 Views
      Dan RathbunD
      @rvs1977 said: @sdmitch said: I use Sketchup 8.0.15158 - Maybe thats why...? Yes.. as I said above, prior to SKetchUp 2014, we had to make sure ENV["HOME"] was set ourselves (as I showed above.) Ruby needs it set.
    • R

      EntitiesObserver and attributes

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      165 Views
      R
      Great, this solved my problem! Thank you very much Dan!
    • R

      Trimble??? - the beginning og the end!?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      209 Views
      R
      I think Im calmed a little down for now...
    • R

      EntitiesObserver and Attributes - work around

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      21
      0 Votes
      21 Posts
      2k Views
      R
      Ok. hopefully there is a solution. If I find one I will return...
    • R

      Creating new variables in for-loop?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      103 Views
      R
      Ok thank you Dan. I will try that.
    • R

      Webdialog - trouble passing array from JS to Ruby

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      12
      0 Votes
      12 Posts
      921 Views
      Dan RathbunD
      @rvs1977 said: I wonder why the eval-rescue solution has to be avoided? Is it slow? ALL String operations in Ruby 1.8.x are slow. eval() is the Ruby code parser.. so it is a very large method (actually a C-side function.) But I cannot see it being slower than the 2 iterator methods you are using, in addition to the type converter. But it works... and you understand how it works. If speed is not an issue, then go with it ... Also if you KNEW each numeric was separated by a "," then you also do: @YV_array = yv_array.split(',').map{|i| i.to_i}
    • R

      [??] How to pass a variable from main.rb to a boxtool

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      11
      0 Votes
      11 Posts
      170 Views
      R
      Finally it works!!... BUT I had to move the rs_main.rb from the "\Plugins\as_plugins\as_rubyeditor\snippets"-folder to the "\Plugins"-folder, and then restart SU. At start up it showed the Alertbox "Helle World". BUT It won't work if I use the playbutton in AS-code editor. It seems like, when using modules, it has to be loaded into SU at startup. I wonder if there is a way to come around this? EDITED 1: It can be run directly from the snippet folder with ruby console (then SU requires no restart): load 'c:\path to the program\Google SketchUp 7\Plugins\as_plugins\as_rubyeditor\snippets\rs_main.rb' EDITED 2: in rs_main.rb require is changed to load. Then it updates the variables when its changed. So far so good! Thank you...
    • R

      [Question]how to load a tool from an external .rb file

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      90 Views
      R
      Thank you Dan. It worked I have started to go through the Ruby Resource as you suggested. And I also found the answer for my own question in there.
    • R

      [Q] on mouse over component - boundingbox lightup

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      5
      0 Votes
      5 Posts
      372 Views
      R
      Hi Chris Thank you so much! This is exactly what I was looking for. Once again this forum has helped me out! I'm trying to make a wall tool, and have an idea that this will be very usefull. -Rasmus
    • R

      [request] Oceanwave simulator with buoyance

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      3
      0 Votes
      3 Posts
      510 Views
      R
      I look for animated waves with buoyance build into sketchyphysics... that would be perfect, but I guess its hard to get.
    • R

      Manipulation entities in a group through Ruby?

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      4
      0 Votes
      4 Posts
      292 Views
      TIGT
      http://rhin.crai.archi.fr/RubyLibraryDepot/plugin_details.php?id=412 has an example for making CHS and RHS sections where it draws the two loops and erases the inner one If you are sure that you will only have 2 faces to check - e.g. a grouped set of geometry that is perhaps two concentric circles with faces; and you want to erase the inner 'disc' to leave a 'ring' then use something like this after you have added the edges/faces group.entities.each{|e| e.erase! if e.class==Sketchup;;Face and e.loops[1] } ### i.e. the ring has two loops but the inner circle only has one... There are several ways to add faces to entities sets and also to check which is the inner face etc if an edge has two faces...
    • R

      [Question-difficulty 4/5] Group.transform!

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      3
      0 Votes
      3 Posts
      311 Views
      R
      well thanks TIG! I will study the script and hopefully get it
    • R

      [Question] on transformation.rotation

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      397 Views
      R
      Great, thanks TIG! Now it works
    • R

      [Question] how to add entities to componentdefinitions

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      497 Views
      TIGT
      You already know how to add objects to an '.entities' collection [i.e. for model/active_/definition/group]. Make a new definition, then use defn.entities.add_instances of the other three [already made] components as you wish... OR make the containing definition, then make gp=defn.entities.add_group() and add geometry etc to gp.entities, make the group into a component and then adjust its definition name etc as needed - repeat three times for the contained instances...
    • R

      [Request] Sketchyphysics: Waving water?

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      3
      0 Votes
      3 Posts
      615 Views
      R
      I get it... but I was looking for "something better" RVS
    • 1 / 1