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...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement