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

    Posts

    Recent Best Controversial
    • RE: Volume of Multiple Groups

      I see now how the inter gives the volume of the entity to the sum method which adds it to the total amount.

      I suppose TIG's one-liner is adapt for someone familiar with quickly coding into the ruby console to get a result. I am, not so advanced and prefer to see a ruby script so that I can understand what is happening. Not to say that I specifically requested a ruby, but It does help significantly that the script recognizes nested groups which, as rubys are prone to do, saves time and effort.

      I appreciate both your input to helping solve my problems. Thank you very much.

      posted in Developers' Forum
      E
      Enzay
    • RE: Volume of Multiple Groups

      Hi Dan,

      Thanks foremost for such a great code and your use of comments; they're really useful for my learning.

      I saw TIG volume calc but it didn't give me a total volume of multiple groups and added geometry to the model I didn't want. The purpose of this script is to help me get a quantity take off. I use to use SketchUp pro at work with CSV export but I don't have access to that anymore.

      I also found that the units worked for inches but screwed up with SI units, which I'm using.

      It seems that this part of code is what sums all the volumes from each group. Where does the "arg" come from? Is that a just a variable that's an array of groups?

        def sum(arg)
            (@@subtot = @@subtot + arg) if arg.is_a?(Numeric)
          end #}
      

      It seems that somewhere it would be useful to call the current units being used and set those to the volumes of the groups?

      posted in Developers' Forum
      E
      Enzay
    • Volume of Multiple Groups

      Hi all,

      Didn't find a plugin for my needs so I figured I'd try and make my own. We can get the volume of a solid group/component quite easily but it doesn't show us the volume of multiple groups when they're selected together. I tried making a pluggin but I'm not sure how to get all the selected groups. Maybe you guys can help me out?

      Essentially I would like to select multiple groups/components and get the total volume.

      The script is looking like this:
      ` require 'sketchup.rb'

      module KN_Volc

      def KN_Volc.main
      model = Sketchup.active_model
      model.start_operation "VolumeCalcr"
      sel = model.selection
      ents = model.active_entities
      voltot=0

      sel.each do |e|
      if e.is_a? Sketchup::Group
      volumeinst = ent.volume
      voltot = voltot + volumeinst
      end
      end
      UI.messagebox"checkpoint"

      Sketchup::set_status_text voltot
      UI.messagebox " #{voltot} Total Volume "

      model.commit_operation

      end

      end

      plug_menu=UI.menu("Plugins")
      plug_menu.add_item("Volume Calcr") { KN_Volc.main }`

      Thanks for your help,

      Enzay.

      posted in Developers' Forum
      E
      Enzay
    • RE: [Plugin] CameraKeyMaker 1.0 (Update 2011-04-09)

      Hey,

      I noticed you updated something for "large models". Mine might be excessively large but I'm trying to get a "flightpath" along a road and acrross a bridge. This looks like it would work great for that because it is able to set the camera point andthe point of focus. I however, found that starting the script made the model disappear. It seems to have zoomed way out and I can't zoom in to set the camera position. Wondering if this has to do with the model being so large. My road chainage is around 2.6km. I tried using flightpath.rb but it still has the lag between scenes with 0 scene delay so it's not doing me much good.

      Has anyone thought about making a script that places points or cameras (like advanced camera tools) and connects those points afterwards to make a smooth path? That would allow the user to set points without "being" the camera. Just some thoughts...

      Enzay.

      posted in Plugins
      E
      Enzay
    • Forest Generator Ruby

      Hello,

      Anyone know of a ruby that takes a component (tree) and a face area (site) as varriables and copies the component randomly across the surface of said face X number of times?

      Thanks,

      Enzay.

      posted in Plugins
      E
      Enzay
    • Animate Textures

      Hello,

      Does anyone know how Google Earth makes their oceans shimmer? I'd like to have my water in my waterfall move along as an animation. I saw that a number of years ago TBD had an animate texture thing. Does anyone know how to put .gif's on textures...?

      Thanks,

      Enzay.

      posted in Plugins
      E
      Enzay
    • Construction Animator

      Hey Guys,

      I'm wondering if anyone can help me out in finding a way to animate the construction of a structure. I've seen Proper Animation, however, from what I've read it seems limited to scenes and the number of components. What I'm looking to do is animate, say a bridge, being put together from components. Not just appearing with layers, but the pieces flying in from "off screen" and forming the bridge like a model. Anyone know of a good animation plugin or program to do this in?

      Thanks for your help,

      Enzay.

      posted in Plugins
      E
      Enzay
    • 1 / 1