@skagli wrote:
Hi,
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:Select object:
Cannot use these objects. Removing them from selection.
Command: WireCutI cannot understand why the object is being removed. (Though GetObject.ObjectCount remains 1).
I tried SelBadObjects command and found the object is valid:Command: SelBadObjects
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.EnablePreSelect(true, false);
go.SubObjectSelect = false;
go.EnableClearObjectsOnEntry(false);
go.EnableUnselectObjectsOnExit(false);
go.DeselectAllBeforePostSelect = false;
)Can someone please help?
Thank you,
Swaroop.
Posts: 3
Participants: 2