sketchucation logo sketchucation
    • Login
    ๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    [REQ] Inflate Components...

    Scheduled Pinned Locked Moved Plugins
    3 Posts 2 Posters 413 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pilouP Offline
      pilou
      last edited by

      I have these components on the left
      How make a "Strip" around each for have the red ones? (here in 2D but will fine also in 3D)
      (When i say a strip : just rectangle becomes larger inflate by 0.05 m)
      A sort of Scale ?...

      Seems "Scale Rotate Multiple" by Chris Fullmer can make the trick but curioussly not! ๐Ÿ˜ฎ

      So have you a little trick or a little plugin for that? ๐Ÿ˜„

      strip_component.jpg


      strip_ component.skp

      Frenchy Pilou
      Is beautiful that please without concept!
      My Little site :)

      1 Reply Last reply Reply Quote 0
      • sdmitchS Offline
        sdmitch
        last edited by

        Try this

        @mod = Sketchup.active_model
        @sel = @mod.selection
        cmps = @sel.grep(Sketchup;;ComponentInstance)
        cmps.each{|ci|
         ctr = Geom;;Point3d.linear_combination(0.5,ci.bounds.corner(0),0.5,ci.bounds.corner(3))
         xscl = (ci.bounds.width+0.1.m)/ci.bounds.width
         yscl = (ci.bounds.height+0.1.m)/ci.bounds.height
         tr = Geom;;Transformation.scaling(ctr,xscl,yscl,1.0)
         ci.transform! tr
        }
        

        Nothing is worthless, it can always be used as a bad example.

        http://sdmitch.blogspot.com/

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          Excellent! ๐Ÿ‘

          Can you put this in a little plugin with one input variable measure?

          And something for any forms? Separated Components on the left: Gap = 0.2m
          little_gap.jpg

          Here big size of scale for avoid overcrossed arc-lines!

          My workflow for create separate Components from a general drawing (above previous post from Protrude by Jim)

          • Multiple Offset by Remus
          • Select Only Simple Face by TIG ?
          • Copy move
          • Loose to Group by Chris Fulmer
          • Groups to Components by ThomThom
          • new code Inflate By Sdmitch (works fine for quads forms) Not yet for these forms above! ๐Ÿ˜‰

          But maybe some one has a more tricky tip?


          little_gapv6.skp

          Frenchy Pilou
          Is beautiful that please without concept!
          My Little site :)

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement