sketchucation logo sketchucation
    • Login
    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!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    How to insert components by guide points (point clouds)?

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    3 Posts 2 Posters 471 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.
    • R Offline
      rulyfauzi
      last edited by

      hello everyone,
      i am desperate in locating lots of components on an exact points imported by points cloud (points from station total in format: x,y,z). Practically i want to put several different components (eg. bone, stone, pollen) on their exact position (xyz). i have tried to work by layers, several csv files, and group the points. But the problem is the points only look different by its color. For advance presentation, i want to change groups of points by components such as i have mentioned above.
      Is there anybody know the sollution of this issue?

      regards,
      ruly fauzi

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Let's assume you have the objects imported into a SKP as components with logically placed axes/insertion points [and with NO instances!].
        Let's assume you have a set of points in a CSV file and you import them into this 'empty' SKP.
        Ensure Layer0 is the active layer.
        Select them and make a group.
        Name the group after the objects the points will eventually represent.
        Put the group on a new layer [also named after the object] and switch it off.
        Repeat for other CSV files/objects.
        Now you have a set of grouped points logically named on their own layers.
        Switch all layers back on.
        Use the Outliner to enter the edit context of a group.
        Select all to pick the points and run this one-liner in the Ruby console to add a component instance at each point.

        m=Sketchup.active_model;a=m.active_entities;m.selection.each{|p|next unless p.is_a?(Sketchup;;ConstructionPoint);a.add_instance(m.definitions["COMPO"],Geom;;Transformation.new(p.position))}
        

        where COMPO is replaced with the desired component-definition's real name inside ""...
        An instance of the specified component is placed at each point.
        You can always clear the guides after you have used them all.

        TIG

        1 Reply Last reply Reply Quote 0
        • R Offline
          rulyfauzi
          last edited by

          Super! Thanks a lot Tig, i have also found out that the plugin guide tools (insert components at Cpoint) is so helpfull. But it seems your method is more simple.
          thanks,

          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