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

    Aibonewt

    @Aibonewt

    10
    Reputation
    1
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Aibonewt Unfollow Follow
    registered-users

    Latest posts made by Aibonewt

    • RE: [Plugin][$] Curviloft 2.0a - 31 Mar 24 (Loft & Skinning)

      @dave r said:

      @aibonewt said:

      Yeah, that took like under a minute to fix.

      Happy to know it got you sorted out.

      Because I'm nosy, what are you modeling?

      Hi Dave,

      I'm making resin pendants from 3D printed moulds, and the lofts are part of the bails that contain the cord. I've done hexagonal and circular previously, now I need to create one to fit the square (rotated 45Β°).

      Hexagonal
      Circular
      Square (Prototype)
      Thanks for you interest,

      Thomas (T/A @lightandmagik)

      posted in Plugins
      AibonewtA
      Aibonewt
    • RE: [Plugin][$] Curviloft 2.0a - 31 Mar 24 (Loft & Skinning)

      @dave r said:

      Since the arc at the left end is flat, you could put in an edge to fill that face.
      Then run Curviloft for the rest of it.

      Your smaller one has some stray edges sticking out and there are some strays off at a long distance from the rest of the model. One of them is over 100 meters from the origin. Might want to delete those things.
      [attachment=0:1af6ujpi]<!-- ia0 -->Screenshot - 2_4_2022 , 1_21_59 PM.png<!-- ia0 -->[/attachment:1af6ujpi]


      Dave, that is incredible, thank you! 😍

      Yeah, that took like under a minute to fix.

      I owe you one, seriously 😎

      Thomas

      posted in Plugins
      AibonewtA
      Aibonewt
    • RE: [Plugin][$] Curviloft 2.0a - 31 Mar 24 (Loft & Skinning)

      Hi,

      I've been bashing away at this for hours now, and simply can't find a solution anywhere or work this out for myself. I'm so frustrated with this I've even considered switching to Blender, but wouldn't know where to start with a shape as wonky as this.

      Smaller curves good, larger (newer) bad

      The smaller (older) set of curves skin fine in Curviloft, but the others report an error. This is one of the side faces of a jewellery bail, something I've modelled using Curviloft many times over without issue. It strikes me that the curves that skin aren't as clean and smoothly defined as the new ones, but other than that I have no clue.

      Any ideas?

      Thanks in advance,

      Thomas


      Smaller curves good, larger (newer) bad

      posted in Plugins
      AibonewtA
      Aibonewt
    • Rotation of Component Axes with Ruby

      Hi Guys,

      There are quite a few threads on the forum concerning the translation of a component's axes, but I can't find any information on how to rotate them, while retaining the original orientation of the component itself. I've read through the API reference on vectors, but as a beginner I must admit to being rather flummoxed. πŸ˜•

      I have models (of cabinets) comprised of flat panel components and would like to be able to extract the co-ordinates of their face details as if each panel were flat on the X/Y plane (vector [0,0,1]) in order to generate simple GCode for CNC.

      Any ideas?

      Thomas

      posted in Dynamic Components sketchup
      AibonewtA
      Aibonewt
    • RE: Getting Component Size with Ruby

      @kaas said:

      Getting the size of an element with Ruby can be done with the boundingbox method.
      http://www.sketchup.com/intl/en/developer/docs/ourdoc/boundingbox

      Just get your box definition into a variable (for instance box_def) and use the methods
      box_def = Sketchup.active_model.definitions["Box"] bbox = box_def.bounds w = bbox.width (same for depth and height)

      Oh wow!

      That works brilliantly, thank you!

      The naming convention of width, depth and height seem the wrong way round but I can live with that. The code snippet below outputs the dimensions in the format 'name x y z'

      # this lists component name and bounding box dimensions
      
      model = Sketchup.active_model
      entities = model.entities
      entities.each { |entity|
        if entity.class == Sketchup;;ComponentInstance
          name = entity.definition.name
          defn = entity.definition
          bbox = defn.bounds
          w = bbox.width.to_l.to_s
          h = bbox.height.to_l.to_s
          d = bbox.depth.to_l.to_s
          puts name + " " + w + " " + h + " " + d
        end
      }
      
      

      P.S. Sorry about the thumbs down, I hit it by mistake and it wouldn't let me change it πŸ˜•

      posted in Dynamic Components
      AibonewtA
      Aibonewt
    • Getting Component Size with Ruby

      Okay,

      I've been lurking here a while, but now it's time to raise my head above the parapet!

      Been an AutoCAD user for about 25 years and coded various widgets in AutoLISP, Visual Basic (and a bit of C/Arduino), and I'd really like to get started with Ruby.

      I've already built a few DCs from the GUI, quite happy with building parametric components and even building simple models from Ruby, but here's the problem...

      Is there any way to get dimensions (lenx/y/z) values without setting attributes?

      If I make a box, and convert it into a component called 'Box', about the only thing I can get from Ruby is it's name. Lenx for example, returns zero until I go to the GUI and add the attribute manually. Is there any way to set attributes to their default so they can be read by Ruby?

      If I use an attribute explorer, I can see real dimensions in _last_lenx/y/z so theymust be readable somehow?

      Many thanks in advance!

      posted in Dynamic Components sketchup
      AibonewtA
      Aibonewt