• Login
sketchucation logo sketchucation
  • Login
โš ๏ธ Libfredo 15.4b | Minor release with bugfixes and improvements Update

[RESOLVED] Guide-Points in Groups or Components

Scheduled Pinned Locked Moved Plugins
5 Posts 2 Posters 396 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.
  • P Offline
    pilou
    last edited by pilou 10 Nov 2016, 14:01

    I want each Guide-point as a Component!

    I have something named Convert in Single Components (or Groups)
    but alas that convert only one Guide-Point from a selection of guide-points in Component! (or group)
    So not each guide-point as Component! ๐Ÿ˜ฒ
    You must relaunch for a new conversion (and again only one) so not very practical! ๐Ÿ˜ฎ

    Loose to groups curioulsly gives also only guide-point as group! ๐Ÿ˜ฎ

    If you have some ideas don't hesitate! ๐Ÿ˜„


    comp.jpg

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

    1 Reply Last reply Reply Quote 0
    • S Offline
      sdmitch
      last edited by 10 Nov 2016, 16:26

      Select Guide Points. Right click on anyone of them. Choose "Guide Points to Components"

      unless file_loaded?((__FILE__))
       UI.add_context_menu_handler do |menu|
        if Sketchup.active_model.selection.first.is_a?(Sketchup;;ConstructionPoint)
         menu.add_separator
         menu.add_item('Guide Points to Components') {
          Sketchup.active_model.start_operation "Guide Points to Components"
          cps = Sketchup.active_model.selection.grep(Sketchup;;ConstructionPoint)
          cps.each{|cp|
           grp = Sketchup.active_model.active_entities.add_group(cp)
           grp.to_component
          }
          Sketchup.active_model.commit_operation
         }
        end
       end
       file_loaded((__FILE__))
      end
      
      

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

      http://sdmitch.blogspot.com/

      1 Reply Last reply Reply Quote 0
      • P Offline
        pilou
        last edited by 10 Nov 2016, 16:56

        Cool that's works! ๐Ÿ‘
        So with your fabulous Component Random Replacement ! ๐Ÿ˜‰
        Here Guides-Points are 8 vertices of a box! ๐Ÿค“

        GIF_comp1.gif

        PS Can we have a little rb file for have it in the SDM Tools Menu ?

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

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdmitch
          last edited by 10 Nov 2016, 19:20

          @pilou said:

          PS Can we have a little rb file for have it in the SDM Tools Menu ?

          Usage: Plugins>SDM Tools>CorG Tool>Guide Point to Component

          Works from the Plugins menu or by Right click.


          Guide Point to Component.rb

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

          http://sdmitch.blogspot.com/

          1 Reply Last reply Reply Quote 0
          • P Offline
            pilou
            last edited by 10 Nov 2016, 22:42

            Excellent! ๐Ÿ˜Ž ๐Ÿ‘

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

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

            Advertisement