sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Adding instances to a new group bug?

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 164 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.
    • Chris FullmerC Offline
      Chris Fullmer
      last edited by

      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
      • TIGT Offline
        TIG Moderator
        last edited by

        ...
        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
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement