BuildingCoder.CmdDuplicateElements.CreateGroup C# (CSharp) Метод

CreateGroup() публичный Метод

Create a new group of the specified elements in the current active view at the given offset.
public CreateGroup ( Document doc, ICollection ids, XYZ offset ) : void
doc Document
ids ICollection
offset XYZ
Результат void
        void CreateGroup( 
            Document doc,
            ICollection<ElementId> ids,
            XYZ offset)
        {
            Group group = doc.Create.NewGroup( ids );

              LocationPoint location = group.Location
            as LocationPoint;

              XYZ p = location.Point + offset;

              Group newGroup = doc.Create.PlaceGroup(
            p, group.GroupType );

              group.UngroupMembers();
        }
CmdDuplicateElements