Adding instances to a new group bug?
-
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
-
...
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...
Advertisement