sketchucation logo sketchucation
    • Login
    1. Home
    2. Whaat
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    W
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 86
    • Posts 821
    • Groups 2

    Posts

    Recent Best Controversial
    • Mac Webdialog opens in background

      Is this a common issue on Mac's with Webdialogs? Do you need to explicity call 'bring_to_front' for the dialog to open in front of the SketchUp window? I don't have a Mac so I can't test this but would the following code work to ensure that the dialog opens in front of the SketchUp window?

      @dlg.show{@dlg.bring_to_front}
      

      I doubt that the following would work:

      @dlg.show{}
      @dlg.bring_to_front
      

      OR

      @dlg.bring_to_front
      @dlg.show{}
      

      Thanks.

      posted in Developers' Forum
      W
      Whaat
    • RE: V. 7 smoothing

      @duxgga said:

      This topic really buggs me. I have Sketchup 7, and I'm reading that subdivide & smooth is only for 6. How dose one overcome this?!!

      I do need to smooth this object.
      Tnx a lot

      Actually, it works for SketchUp 7 as well. I need to update the description at Smustard.

      posted in SketchUp Discussions
      W
      Whaat
    • RE: .erase! bug ? or is it me...

      have you tried using:

      Sketchup.active_model.entities.erase_entities(array_of_entities)
      

      I think I have got bug splats from using erase! before but when I tried the using the above code, it worked fine.

      posted in Developers' Forum
      W
      Whaat
    • RE: Ruby working units?

      SketchUp's internal units are all in inches. If you prefer to work in meters, just add '.m' after every number.

      http://download.sketchup.com/sketchuphelp/gsu6_ruby/Docs/Ruby-Numeric.html

      posted in Developers' Forum
      W
      Whaat
    • RE: Manipulating the InputPoint

      @didier bur said:

      Hi,
      I had the same problem int the past.
      Try this:

      a=Geom::Point3d.new(1,2,3)
      -> returns Point3d(1, 2, 3)
      b=Geom::Point3d.new(0,0,0)
      p=Sketchup::InputPoint.new(a)
      -> returns #Sketchup::InputPoint:0xc905860
      p.position
      -> returns Point3d(1, 2, 3)
      Sketchup.active_model.entities.add_line(b,p.position)
      creates a line, so setting an InputPoint to a given Point3d object works.

      Hope dis is whaat u r looking for ?

           Great!!  That's perfect Didier!  I think that will work!  Thankyou!
      
      posted in Developers' Forum
      W
      Whaat
    • Manipulating the InputPoint

      Take a look at the line tool. When you enter a length in the VCB and press 'Enter', a line gets created and the InputPoint for the linetool is set to the end of the new line, allowing you to inference from this new point.

      There does not seem to be a way to duplicate this behaviour in Ruby (i.e. setting an InputPoint to a given Point3d object). What would solve my problem is if there was a method to set the position attribute of the InputPoint. For example:

      ip=Sketchup;;InputPoint.new
      ip.position=Geom;;Point3d.new(0,0,0)
      

      Am I missing something here? Is there a workaround for this problem? I attempted a workaround by determing the screen coordinates (using view.screen_coords) of the input point and then calling InputPoint.pick(view,x,y) method using the screen coordinates. This does not work to an acceptable level of accuracy.

      Thanks.

      posted in Developers' Forum
      W
      Whaat
    • RE: Coming Soon:Profile Builder

      @unknownuser said:

      so any word on time frame for release???? My wife is looking for ideas for a Christmas present for me! πŸ˜›

      πŸ˜† As shown in the video, my best estimate is sometime between Jan-Mar 2009. Sorry, releasing before Christmas is highly unlikely.

      posted in Developers' Forum
      W
      Whaat
    • RE: Coming Soon:Profile Builder

      @unknownuser said:

      In case you hadn't already thought of it, could you please ensure that any guidelines drawn represent a profiles ORIGIN point eg Centre, Centre (if thats how a user has drawn a particular profile).

      Thanks, I've already thought of it.... πŸ˜„

      posted in Developers' Forum
      W
      Whaat
    • RE: About 'intersect_with' method

      I have used this method a few times. Look at my Zorro script for an example.

      entities.intersect_with recurse, transformation1, entities1, transformation2, hidden, entites2
      

      Let's say you want to intersect two groups. Assume that group 1 is a cube and group 2 is a sphere.

      First get the necessary entities objects:

      cube_entities=group1.entities
      sphere_entities=group2.entities
      

      Then, get the transformations of each group:

      cube_trans=group1.transformation
      sphere_trans=group2.transformation
      

      Let's ignore recursion.

      recursion=false
      

      To perform the intersection and make the intersection lines appear in the cube group:

      cube_entities.intersect_with(recursion,cube_trans,cube_entities,cube_trans,false,[group2])
      

      The API docs seem to be incorrect. The last argument of this method must be an array of entities, not an entities object. The last argument is the just list of entities that you want intersect with.

      To make the intersection lines appear in the sphere group:

      sphere_entities.intersect_with(recursion,sphere_trans,sphere_entities,sphere_trans,false,[group1])
      

      However, the following might also work but I haven't tried it this way:

      cube_entities.intersect_with(recursion,cube_trans,sphere_entities,sphere_trans,false,[group2])
      

      To make the intersection lines appear in some other entities object, I would try this (haven't tested):

      cube_entities.intersect_with(recursion,cube_trans,some_other_entities,some_other_entities_trans,false,[group2])
      

      @unknownuser said:

      Arguments
      recurse - true if you want this entities object to be recursed (intersection lines will be put inside of groups and components within this entities object)

      transformation1 - the transformation for this entities object

      entities1 - the entities where you want the intersection lines to appear

      transformation2 - the transformation for entities1

      hidden - true if you want hidden geometry in this entities object to be used in the intersection

      entities2 - an entities object, or an array of entity

      Hope this works...
      Dale

      posted in Developers' Forum
      W
      Whaat
    • RE: Is it possible...

      @unknownuser said:

      [I am afraid you have to code it as part of your tool, which is not too complex in general.
      Sorry for bad news, but maybe someone else has a trick.

      I'm not quite sure how to do this...I guess I'll start experimenting.

      posted in Developers' Forum
      W
      Whaat
    • RE: Is it possible...

      Good info, TIG. Thanks!

      Here's another one:
      Is it possible to use the arrow keys to lock axis inference in a user-defined tool?

      posted in Developers' Forum
      W
      Whaat
    • RE: Is it possible...

      Thanks Rick! (although not the response I was hoping for...)

      posted in Developers' Forum
      W
      Whaat
    • Is it possible...
      1. Is it possible to enter 'component edit mode' with Ruby?
      2. Is it possible to prompt the user to browse for a file folder (not a file)?

      If not, consider these requests for the next service release of SU.

      Thanks.

      posted in Developers' Forum
      W
      Whaat
    • RE: SU 7 - a serious discussion

      A quick test of Subdivide and Smooth showed now issues yet. I guess time will tell if there are any hiccups. 'Profile Builder' and 'SkIndigo' aren't showing any issues yet either from my brief amount of testing. (fingers crossed).

      I expect that most plugins should work fine. I use observers and webdialogs extensively (which are probably the most bug-prone things in the API) and have not had any problems yet.

      posted in SketchUp Discussions
      W
      Whaat
    • RE: Google Sketchup Pro 7 is out

      @remus said:

      Unless im mistaken, DCs arent ruby, theyre straight SU.

      I think you're mistaken. Strange that they would use Ruby for this one. Oh well...
      After a bit of initial disappointment, I am starting to get more excited about the new features of SU7. I think dynamic components will make things interesting. There's lots of potential there. I hope we'll get a detailed list of Ruby changes soon.

      posted in SketchUp Discussions
      W
      Whaat
    • RE: [Plugin] Zorro

      Did you check your 'tools' menu? πŸ˜„

      posted in Plugins
      W
      Whaat
    • RE: Still playing with SubSmooth

      Great work!

      posted in Gallery
      W
      Whaat
    • RE: Coming Soon:Profile Builder

      Thanks for the encouraging responses! Sorry, but I will not be taking any more requests for beta testing. If you have already PM'd me, chances are good that I will send you a message in the coming weeks (be patient...) to give you further details.

      I know there have been lots of questions about the plugin but I will have to keep a bit quiet for now πŸ˜„

      Cheers,
      Dale

      posted in Developers' Forum
      W
      Whaat
    • Coming Soon:Profile Builder

      I had a blast creating this video teaser of my next commercial plugin. Hope you enjoy it! I will try to post a list of features very soon.

      [flash=425,344:1i9xyycs]http://www.youtube.com/v/FcpGwlfu3vU&hl=en&fs=1[/flash:1i9xyycs]

      posted in Developers' Forum
      W
      Whaat
    • Group.make_unique (possible Ruby bug)

      I have an odd situation where I need to make sure that a group's component definition has only one instance (i.e. is unique).

      I notice that the group.make_unique method is deprecated but it still works. However, I get a warning message every time it is called.

      The problem arises when a user copies a group, thus creating another instances of the group's definition. Then, let's say my Ruby script attempts to erase all the edges in the currently selected group. Instead of just erasing the edges in the selected group, all instances of the group are affected which is not what I want. This seems like a bug with the Ruby API. In my mind, if you do any manipulation to a group's entities using Ruby code, the group should automatically be 'made unique' by SketchUp (just like what happens when you enter group edit mode by double-clicking a group).

      My question is:
      Is it possible to make a group unique without using the group.make_unique method (using Ruby)?

      posted in Developers' Forum
      W
      Whaat
    • 1
    • 2
    • 27
    • 28
    • 29
    • 30
    • 31
    • 41
    • 42
    • 29 / 42