sketchucation logo sketchucation
    • Login
    1. Home
    2. Jim
    3. Posts
    ⚠️ Attention | Having issues with Sketchucation Tools 5? Report Here
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 406
    • Posts 4,216
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Created geometry on auto-move mode

      @lekonna said:

      wow that was a fast reply, thanks jim!

      Now i'll just have to dig out how the ComponentDefinition class works, as my geometry is at the moment only a group.

      Nah, just try it with the Group, it might work. But if not, you just create a new ComponentDefinition instead of a new Group and use the Defs entities. You shouldn't need to change but one line of code (maybe.) πŸ˜„

      posted in Developers' Forum
      J
      Jim
    • RE: Created geometry on auto-move mode

      Ah, this one took me a while to find too.

      The method you are looking for is a method of the Model class called place_component. It attaches a ComponentDefinition to the mouse pointer for placement.

      posted in Developers' Forum
      J
      Jim
    • RE: Attribute Manager Plugin

      It's a context menu plugin (right-click on things.) And under the Tools menu...

      posted in Developers' Forum
      J
      Jim
    • Attribute Manager Plugin

      I found this excellent plugin and thought I'd share it.

      Sketchup Attribute Manager

      I am not the author and have no affiliation with the project. It's just a superb example of code and the possibilities of WebDialogs.

      posted in Developers' Forum
      J
      Jim
    • RE: Shut down automaticly

      @burkhard said:

      I have another question.
      Remember the calc.rb can be open from the Plugins menu.
      But if I close Sketchup the calculator does not automaticly close with.
      Is this fiasible ( viable,contrivable or whatever )?

      Burkhard

      On Windows, you can use AppObserver.onQuit to set up the observer, and WIN32API to find (by name) and close the calc.exe window.

      See my Ruby Toolbar plugin for using WIN32API window functions. I learned it from SketchyPhysics creator Chris Phillips.

      posted in Developers' Forum
      J
      Jim
    • RE: Boxes and Component Size

      @agrazdi said:

      1 - Is there a ruby that can be added to the BOX.rb and be able to select the initial point < like you do with the wall ruby > ?? instead of the origin or an x,y,z coordenates?

      2 - Last one, is there a way to get with a Ruby the size of groups and components ?

      Thanks in advance

      agraz

      Yes, it's possible.

      1. Look into using a PickHelper or a InputPoint object to select the initial point.

      2. It depends on what you mean by "size"? Look up the bounds method for Groups and Components. A BoundingBox is a 3D box aligned to the global axis, and includes all the entities inside the Group.

      posted in Developers' Forum
      J
      Jim
    • RE: SketchUp Ruby scripts Blog

      It's Coen, according to the profile.

      posted in Developers' Forum
      J
      Jim
    • RE: Jim RE template_utils.rb

      I'll look into it, thanks.

      posted in Developers' Forum
      J
      Jim
    • RE: Copying Files

      I see, the methods listed in the File class are actually defined in the ftools.rb file. Also, the docs recommend using FileUtils.rb over ftools.rb.

      Thanks. I was toying with the idea of cleaning up .skb and AutoSave files from the the user's model folder.

      posted in Developers' Forum
      J
      Jim
    • Copying Files

      I'm curious why File.delete is allowed, but File.move and File.copy aren't supported?

      posted in Developers' Forum
      J
      Jim
    • RE: CamtasiaStudio Freeware

      CamStudio is open source screen capture, you mean CamtasiaStudio.

      posted in Hardware
      J
      Jim
    • RE: SU acting strange

      Double-clicking with the mouse wheel centers on that location. Maybe your mouse is malfunctioning?

      posted in Newbie Forum
      J
      Jim
    • RE: Creating balister need woodworker help

      Ok, version 6 file replaced with v5.

      posted in Newbie Forum
      J
      Jim
    • RE: Creating balister need woodworker help

      Here's one way. There's probably a quick, clever way to do it, but this is just hand stitching. Even so, it doesn't take long.

      Methods I used: copy the arc, scale the arc, draw in the lines. Used end-point inference for everything.

      Smooth out the lines, and then copy around 90 deg. 3 times.

      balister help_jim.skp

      posted in Newbie Forum
      J
      Jim
    • RE: How to make up an estimate?

      Just out of curiosity, what level of detail are you going for? Will you be building it from the ground up, stick by stick?

      @unknownuser said:

      Hi Folks!

      I'm going to design and build my dream house using SketchUP. πŸ˜„ Finally, i will need to get a list of all components with their quantity, to be able to prepare an estimate. Is there a way to do so?

      Thank you for your help!

      posted in Newbie Forum
      J
      Jim
    • RE: A kickass UI using WebDialogs and DHTML Suite.

      It comes down to passing Strings from the javascript to the ruby callback by setting the window.location and using the skp: prefix.

      
      // this is javascript
      window.location = "skp;somecallback"; // no paramters
      window.location = "skp;somecallback@" + someString;
      
      
      
      # this is ruby
      dialog.add_action_callback("somecallback") do |d, a|
        # d is the dialog
        # a is the string passed after the @ in the javascript
        puts "somecallback called;#{a.inspect}"
      end
      
      
      posted in Developers' Forum
      J
      Jim
    • RE: Center point of a circle

      Just a thought... it's should be possible to make a ruby to always add a centerpoint when drawing a circle.

      posted in Newbie Forum
      J
      Jim
    • RE: Look around tool in ruby?

      You need to use camera.set. The vector from the target to the eye is the direction.

      
      m=Sketchup.active_model
      view=m.active_view
      camera=view.camera
      
      v1 = (camera.target - camera.eye).normalize
      v2 = camera.direction.normalize
      p v1 == v2
      
      
      posted in Developers' Forum
      J
      Jim
    • RE: Look around tool in ruby?

      camera.set takes 3 arguments: the eye (Point3d), the target (Point3d) and the up direction (Vector3d).

      camera.set(eye, target, up)

      posted in Developers' Forum
      J
      Jim
    • RE: Number of users

      It's not an odd question, I think it's just an informal market survey. He didn't ask for any personal information, only how many people use SketchUp and/or the 3D Warehouse. I don't see the harm in it.

      The Google SketchUp Groups have some vague stats:
      http://groups.google.com/group/SketchUp/about
      http://groups.google.com/group/sketchup-Pro-Groups/about

      These forums have just passed 2000 registered users with 26,000 posts.

      When I stopped counting (a year ago), the 3D Warehouse was getting 100 new models per day.

      Go to http://www.alexa.com and look up the SketchUp homepage for number of visitors to the page.

      posted in Newbie Forum
      J
      Jim
    • 1
    • 2
    • 205
    • 206
    • 207
    • 208
    • 209
    • 210
    • 211
    • 207 / 211