Move entities to a group?
-
Just noticed this warning in regards to
.add_group
http://code.google.com/apis/sketchup/docs/ourdoc/entities.html#add_group@unknownuser said:
NOTE: calling add_group with entities in its parameters has been known to crash SketchUp. It is preferable to create an empty group and then add things to its Entities collection.
How would I move existing entities to an group? Seeing how it's recommended that you don't call it with entities argument.
-
Personally, I've not seen that crash happen, but that doesn't mean it can't happen. The problems I've noticed come when trying to create a nested group when not in the same nesting level. Perhaps that is what was meant by the warning.
-
Is there a method to copy or duplicate entities?
-
You could add it all to a group, then copy the group, then explode both groups. Feels like a bit of a workaround though.
-
But that's the problem. I want to add it to a group. But I experience crashes. Like the manual says. So how do you add entities to a group after you make an empty group?
-
Hmm, I spent a bit of time working on a method that would take a selection and make an array of all its points and lines and then go create those inside the group. Turns out it was rather crazy. The faces would get all mangled because of making them with vertices in the wrong order and stuff. So I guess that's not an option.
-
@thomthom said:
But that's the problem. I want to add it to a group. But I experience crashes. Like the manual says. So how do you add entities to a group after you make an empty group?
See here... http://www.sketchucation.com/forums/scf/viewtopic.php?p=140959#p140959
Advertisement