• Login
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

Adding instances to a new group bug?

Scheduled Pinned Locked Moved Developers' Forum
2 Posts 2 Posters 185 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.
  • C Offline
    Chris Fullmer
    last edited by 26 Nov 2009, 03:33

    I'm sure I've come across this before, but I am not finding the thread where its been discussed. But when adding new component instances to a group, I am getting weird behavior afterwards where I can't select that component as expected. Its bounding box ends up somewhere near the world axis, and the componentinstances are not within the displayed bounding box.

    Is that a new bug? Or is the same old thing that has always existed? How do I fix this in code? Do I need to create another new group, add my group to that, then explode my group or something? Does this sound familiar to anyone?

    Chris

    Lately you've been tan, suspicious for the winter.
    All my Plugins I've written

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 26 Nov 2009, 09:29

      ...
      tr=Geom::Transformation.new(group.transformation.origin)
      instance=group.entities.add_instance(definition,tr)

      or work out where the insertion_point is relative to the group's origin

      something like...

      insertion_point=[x,y,z]
      insertion_point.transform!(group.transformation.inverse)###???
      tr=Geom::Transformation.new(group.insertion_point)
      instance=group.entities.add_instance(definition,tr)

      A group's origin is at ORIGIN [0,0,0] even when it's miles away so you need to move any insert backwards ?

      This is untried but my first thoughts...

      TIG

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

      Advertisement