sketchucation logo sketchucation
    • Login
    1. Home
    2. Didier Bur
    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!
    Sketchucation Tools 5.0.7 | Licensing improvements and bug fixes Learn More
    Offline
    • Profile
    • Following 0
    • Followers 3
    • Topics 167
    • Posts 1,507
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Vector.angle_between() -- Direction?

      Where's this gem, Rick ? I don't see it at smustard 😲

      posted in Developers' Forum
      Didier BurD
      Didier Bur
    • RE: Vector.angle_between() -- Direction?

      The angle_between method returns a value between 0 and PI, so 270° is the same for it than PI/2 😒
      This is really a weird way of returning angle IMHO 8O
      Nobody knows (at least not me) why 'they' coded this that way.
      I'm afraid you'll have to test the two vectors to know in which trigonometric quadrant (0Β°->90Β°,90Β°->180Β°,180Β°->270Β°,270Β°->360Β°) they are, to get the "real" angle between them.
      But perhaps you could also use this:
      your_component_instance.transformation.yaxis = your_angle
      Hope this helps πŸ˜•

      posted in Developers' Forum
      Didier BurD
      Didier Bur
    • RE: New script or know of a script like this???

      Hi,

      @unknownuser said:

      if i can re-pay you some how let me know

      Simple: please send a credit transfer of Euros 100.000 and we'll be good friends. πŸ˜†

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: New script or know of a script like this???

      Hi,
      Never tried it with V6 πŸ˜• , but the script exists for v5.
      Download ADO.zip at my site, Files-Converters-Misc section.
      Regards

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: REQUEST (perhaps needs another subsection?)

      Done (see depository). I hope it's the right script. 😳

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: New Ruby Scripts Depository forum

      Hi Alex,
      My site (see sig) is also a good place to find all free scripts that have been published since 2004.
      No advertising and such πŸ˜‰

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: Housebuilder ruby script

      Ok Juju,
      It's a matter of hours or days...
      Tomorrow maybe, if I can get it to work OK with these fu***g 😑 PNG icons that sometimes don't display correctly on some machines (still don't know why, maybe I'll provide Gif's instead).
      Regards,

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: Housebuilder ruby script

      Juju,

      Last version at my site, because I made the metric version myself.
      If you want another sections, you would have to give them to me and I will implement them because they are "hard-coded" in some way.
      Cheers,

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: [Plugin] Align 2d

      Hi TIG,
      I see that you're online now and I've got a small problem:

      Rotating groups/components work with this attached version EXCEPT with Y match, and I don' know why. Can you have a look at it ?
      Thanks in advance.


      align_2D.zip

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: [Plugin] Align 2d

      Coen,
      NO, I cannot upload a rb file 😒
      Here is the zip instead 😎


      align_2D.zip

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: [Plugin] Align 2d

      Here is an update with some fixes, thanks to TIG for pointing out.
      All alignments are now done regardless of altitudes of selected groups/components.
      It also checks for impossible alignments, for instance aligning vertically along a line which is parallel to Y axis is not allowed. πŸ˜‰

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: [Plugin] Align 2d

      Bug found: it happens when either the 2 points that define the alignment line or the origin of groups/components are not on the same plane.

      I'm considering to provide an additionnal option to align groups/components axis with the alignment line. Does it make sense or do you think this will be useful ?

      Regards,

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: [Plugin] Align 2d

      Thanks for the bug report TIG
      I'll check that soon (and the selection issue as well) 😳

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: [Plugin] Align 2d

      Well, so here it is.
      Give it a try πŸ˜„


      Unzip in Plugins folder.
      I know you know...

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: [Plugin] Align 2d

      Oops, where's the rb ??? I've attached it and nothing shows up ? 😳

      Coen, I just retried and it tells me that rb extension isn't allowed. 8O
      Any fix for this ?

      posted in Plugins
      Didier BurD
      Didier Bur
    • [Plugin] Align 2d

      Hi all,
      Here is the beta of my new Align 2D script (the Align 3D script has been released yesterday, available at the old SU Ruby forum and at my site).

      How it works ?

      1. Make a selection (other objects than groups or components are ignored)
      2. Select "Align 2D" in the context menu or in the Tools menu
      3. Click 2 points that define a line for the alignement.
      4. A construction line is temporarily drawn and a dialog box is displayed
      5. Choose your options:
      • horizontally align all groups/components along X axis at the intersection with the cline
      • vertically align all groups/components along Y axis at the intersection with the cline
      • perpendicularly align all groups/components along a perpendicular virtual line at the intersection with the cline.
      1. Other options self-explanatory

      Experiment by yourself and have fun !
      Regards,

      Please get the latest version from the PluginStore
      http://sketchucation.com/pluginstore?pln=align_2D

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: Scripy sticks?

      Hi CadFather,

      is it possible to create a scipt that saves the toolbar workspace (you know what i mean) or at least opens all the toolbars in one go so that i can then place them.. please tell me yes
      

      I tell you YES. πŸ˜‰

      Opening all toolbars will be quite simple, restore the workspace may be less simple, as the location of toolbars are saved in the registry AFAIK. But why not ? Pure Ruby makes them "readable/writable", so...
      It's on my list...

      posted in Developers' Forum
      Didier BurD
      Didier Bur
    • I'm the first

      Cool to be the first one.
      Welcome all and thanks Coen for providing this forum !

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: Working with selection - ungrouped or within a group

      Yes it is doable.

      For instance:

      def editing_group?
      if Sketchup.active_model.active_entities.parent.class == Sketchup::ComponentDefinition and Sketchup.active_model.active_entities.parent.group?
      return true
      else return false
      end

      Will return a boolean to tell the script if the user is currently editing a group. BUT using methods of the selection class is independant of that.
      Even if the user is editing a group, Sketchup.active_model.entities can be accessed the usual way, and Sketchup.active_model.active_entities will return a collection of entities of the active group/component.

      If you have to check wether selection is a group or not, use this test:
      Sketchup.active_model.active_entities.parent.class == Sketchup::ComponentDefinition
      (because group are stored as if they are components !)
      and if you have to check wether a particular selected object is part of a group or not, use this test:

      if editing_group? and Sketchup.active_model.active_entities.include?( object_id ) ...
      Hope this helps,

      posted in Developers' Forum
      Didier BurD
      Didier Bur
    • RE: Working with selection - ungrouped or within a group

      No.
      You cannot have a selection of entities in and out a group/component at the same time.

      Shetchup.active_model.active_entities returns the whole model if you aren't editing a group/component, and returns the collection of entities of the group/component if you are editing a group/component.

      Shetchup.active_model.selection is completely different from that.
      Hope this helps,

      posted in Developers' Forum
      Didier BurD
      Didier Bur
    • 1
    • 2
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 72 / 76