Message 1 of 2
Hide window indicating that a single-occurrence group has been modified
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
When I modify a group instance of a GroupType composed of only one instance, I get this window:
(Un groupe a été modifié hors du mode d'édition de groupe. Comme il n'existe qu'une occurrence de ce type, la modification est autorisée.)
I've noticed that the window no longer opens if I move the group and put it back in its place.
I'd like to know if this behavior is normal and what is the best way to prevent it.
Thank you in advance.
Here is my code:
public void AdaptToLevel()
{
Document.Edit("Adaptation du module au niveau", () =>
{
Group.UngroupMembers();
PlancherBas.SetAboveLevel();
PlancherHaut?.ResetSuperiorOffset();
ResetWallSuperiorOffset();
LayWallsOnFloor();
Group group = GroupService.CreateGroup(Document, GetElementIds());
XYZ movingVector = new XYZ(1, 1, 0);
ElementTransformUtils.MoveElement(Document, group.Id, movingVector);
ElementTransformUtils.MoveElement(Document, group.Id, movingVector.Negate());
});
}
Lines 14, 15 and 16 prevent the window from opening.