Reply

SelectSet problem in draft

Hi all, I need to select all items in a sheet, move them and finally delete a block and his occurrences.

 

This is the code I use to move objects:
SolidEdgeFramework.SelectSet selectSet = this.draftDocument.SelectSet;
selectSet.RemoveAll();
selectSet.AddAll();
this.draftDocument.ActiveSheet.MoveSelectSet(xFrom, yFrom, xTo, yTo);
selectSet.RemoveAll();

 

After that, if I try to delete the group manually or programmatically, the deletion time is about 5 minutes.

 

If I select all manually, instead of programmatically, the deletion time is about 2 or 3 seconds.

 

Could you help me to solve my time problem?

 

Thanks in advance
Massimo