I am trying to invoke the WireCut command from a C# program. Before I run the WireCut script, I pre-select the object to be cut and then send the WireCut command (with all necessary parameters).
But this is not working and I see the following in the command history:
Cannot use these objects. Removing them from selection.
I cannot understand why the object is being removed. (Though GetObject.ObjectCount remains 1).
I tried SelBadObjects command and found the object is valid:
No objects added to selection.
No bad objects selected.
Preseleting the object to be cut works when commands is issued manually.
So what am I doing wrong in the program?
(GetObject options are set as follows:
go.SubObjectSelect = false;
go.DeselectAllBeforePostSelect = false;
Can someone please help?