Changing Elements Inside Group Problem

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have been working on some code that will change walls in a group to a different type. Apparently, it is not possible to change elements inside of a group via code. I have followed the suggested path of ungrouping, making the change, regrouping, and changing all other group instances to the new group. This changes the walls as desired, but rotates some of the group instances (not a minor rotation, but one that is greater than 90 degrees, placing elements outside of the building).
I have tried to fix this by taking a vector from the group's centroid to the first element's location before and after the change. I then try to adjust by reversing the rotation. This doesn't work for all groups. Perhaps the order of elements in the group is changing.
I am hoping someone has some solutions that may help me For instance:
- Is there a way to change an element in a group without ungrouping? (this should be possible!)
- Is there an orientation property for a group element, so that I can track the dynamics?
Has anyone dealt with this problem?