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

    Posts

    Recent Best Controversial
    • RE: Strange error when setting component axes

      Also, what does it mean when it says '(eval)' in the error message? I'm used to seeing the name of the ruby file in that location.

      posted in Developers' Forum
      daikuD
      daiku
    • RE: Strange error when setting component axes

      Thanks for the tip Chris. I did as you suggested - there were some cobwebs in there! I then renamed my plugins folder so that no plugins get loaded. I uninstalled su. I downloaded it again, and reinstalled. Still have the problem! I cannot figure this out!

      posted in Developers' Forum
      daikuD
      daiku
    • RE: Strange error when setting component axes

      Well, maybe I was wrong about it being a ruby script. I completely removed my plugins directory, verified that there are no rubies loaded, and the problem persists. No one is seeing this? You can create components that cut? CB.

      posted in Developers' Forum
      daikuD
      daiku
    • Strange error when setting component axes

      I'm posting this in the ruby forum, as I suspect this is due to some plugin I have installed. I'm getting the following messages on the ruby console when I am creating a component and attempting to set the component axes (for a component that cuts an opening). I get these 5 lines for each of the first two points I select. Does this look familiar to anyone? Also, the component I create will not cut, so it seems that the operation is failing (silently unless the console is open). CB.

      @unknownuser said:

      Error: #<NoMethodError: undefined method definition' for #<Sketchup::Face:0x953e5d8>> (eval):383:in get_version'
      (eval):420:in get_class_by_version' (eval):574:in onToolStateChanged'
      (eval):383
      Error: #<NoMethodError: undefined method definition' for #<Sketchup::Face:0x953e5d8>> (eval):383:in get_version'
      (eval):420:in get_class_by_version' (eval):574:in onToolStateChanged'
      (eval):383

      posted in Developers' Forum
      daikuD
      daiku
    • RE: Delete all scenes?

      Seems I can create this splat fairly easily without using ruby at all. Just open a model that has one scene, and then delete that scene. Then close SU, and it will splat. At least for me.

      posted in Developers' Forum
      daikuD
      daiku
    • RE: Delete all scenes?

      Ah, that's the confusion (v6 vs v7).

      I had set model earlier in the script.
      My splat seems to be related to undoing the erasures, and then erasing them again. Will require more investigation.

      posted in Developers' Forum
      daikuD
      daiku
    • Delete all scenes?

      I have a need to delete all scenes from my ruby script. I read somewhere that this is not possible, but I did find model.pages.erase: http://code.google.com/apis/sketchup/docs/ourdoc/pages.html#erase.

      I thought that this code would work, but it splats for me:

      
      pgs = Array.new
      model.pages.each {|pg| pgs.push pg}
      pgs.each {|pg| model.pages.erase pg}
      
      

      Any ideas? CB.

      posted in Developers' Forum
      daikuD
      daiku
    • RE: [Plugin][$] FredoScale - v3.6a - 01 Apr 24

      Confirming that stretch to target now works correctly. Excellent work, as always, Fredo. CB.

      posted in Plugins
      daikuD
      daiku
    • RE: Replacing Selected Component Instances as New Component?

      I think I understand what you are asking for. If you select multiple instances, and then choose "make unique", all of the selected instances will now share a new component definition. CB.

      posted in Developers' Forum
      daikuD
      daiku
    • RE: [REQ] Plugin to rotate textures 90°

      Texture Helper from Smustard.

      posted in Plugins
      daikuD
      daiku
    • [Plugin] angle between planes

      A simple little plugin that tells you the angle between two planes. Just right click on an edge that joins two faces. If there is exactly one edge selected, and that edge bounds exactly two faces, then a menu item will appear to calculate the angle between the two face planes. The intended use is for woodworkers dealing with compound joinery: this is the angle you set your saw bevel to. But there might be some general appeal as well, so I'm posting it. CB.

      Update 3/7/09:
      Got a great suggestion to simply display the angle right in the context menu, and skip the message box entirely. Also added the supplement of the angle when over 90 degrees.


      plane_angle.rb

      posted in Plugins
      daikuD
      daiku
    • [REQ] Angular Dimension

      I've been using Didier's Angular Dimension tool, and while I love the concept and appreciate the effort, I humbly suggest that it could benefit from some improvements. Specifically. I'd like to be able to restrict it to a specific plane, like the native protractor tool. Too often, it finds a vertex behind the one I really want, and then gives the wrong angle. Also, it would be nice if the leader text were anchored so you could reposition the text. Fianlly, a config option to limit the number of decimal places displayed. Thanks, CB.

      posted in Plugins
      daikuD
      daiku
    • RE: [Bug]Win32api.so and Sketchup7

      Chris:

      My plugins use Win32api.so, and so far I haven't seen any problems with SU7. But I upgraded from SU6, so that may be why. Tell us more about RubyDL - this is the first I've heard of it. CB.

      posted in Developers' Forum
      daikuD
      daiku
    • RE: Input_point: which component?

      This is exactly the info I needed. Thanks guys! CB.

      posted in Developers' Forum
      daikuD
      daiku
    • RE: Input_point: which component?

      Well, even igonoring the instances, shouldn't one definition be nested within the next? These objects I'm clicking on are deeply nested sub-components. CB

      posted in Developers' Forum
      daikuD
      daiku
    • RE: Input_point: which component?

      Thanks Todd. That's what I've been trying to do. The input point will tell me the depth, but no matter how deep, I always seem to be in a shallow tree, which is component_definition, followed by a definition_list, followed by the model.

      
      print("\n input point depth;" + @ip1.depth.to_s + "\n")
      print("vertex; " + vtx.position.to_s + "\n")
      p = vtx
      until p == Sketchup.active_model
      	p = p.parent
      	print("parent; " + p.to_s + "\n")
      end	
      

      Yields:

      @unknownuser said:

      input point depth:2
      vertex: (0", 14.396265", 8")
      parent: #Sketchup::ComponentDefinition:0xafca550
      parent: #Sketchup::DefinitionList:0xafd7540
      parent: #Sketchup::Model:0x4ddaa70

      input point depth:4
      vertex: (0", 0", 2.75")
      parent: #Sketchup::ComponentDefinition:0xafb90d8
      parent: #Sketchup::DefinitionList:0xafd7540
      parent: #Sketchup::Model:0x4ddaa70

      posted in Developers' Forum
      daikuD
      daiku
    • Input_point: which component?

      I'm writing a new tool, and I want to modify the component that the user has chosen. I can get the vertex from an input point, but how can I figure out which component that vertex is part of? CB.

      posted in Developers' Forum
      daikuD
      daiku
    • RE: How do you calculate area of a face inside a scaled comp?

      @thomthom said:

      Hi Howie. The thing is though, it's for a script I'm making, so I would need to work this out in Ruby. Thanks though.

      Under ruby control, you could do a start_operation, explode the component, take your measurements, then commit_operation, then undo. CB.

      posted in Developers' Forum
      daikuD
      daiku
    • Dynamic Components vs Rubies

      I'm a little confused about what Dynamic Components add to SU's capabilities. Is there anything you can do with DCs that can't be accomplished with instance attributes, web dialogs, and ruby scripts?

      posted in Developers' Forum
      daikuD
      daiku
    • RE: SketchUp RUBY API Wishlist [way of coding wishes, please]

      I'd like to be able to specify the font size for text objects.

      posted in Developers' Forum
      daikuD
      daiku
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 6 / 11