AnsweredAssumed Answered

Delete many components (C#)

Question asked by Bratitsa Vlaids on Mar 9, 2017
Latest reply on Mar 9, 2017 by Peter Brinkhuis

Hi guys Help me please to understand. I use C# to develop software for solidworks.

There are many lines as following. After each of them a component is selected and function EditDelete is called.

 

DocumentExtension.SelectByID2("Name@" + NameDownPanel + "-1@" + AssemblyName, "FTRFOLDER", 0, 0, 0, false, 0, null, 0);

SolidWorksDocument.EditDelete();

 

What is the way to put each component to array so it is possible to delete them altogether? Should I use ISelectorMgr?

Outcomes