When I try to add a new command to an existing operation,
I do the following,
TxWeldOperation operationHeader = (Get From Active Selection);
TxRoboticCommandCreationData newCommand = new TxRoboticCommandCreationData();
newCommand.Text = "Text"; // Robot command goes in here as far as I understand.
The problem is that the operation creates, but the Text property is not assigned and I see that it is empty.
Afterwards I see the command in the object but it does not have any text.
Maybe I am doing something wrong, but it looks like the only way to add a command to a TxWeldOperation and a TxRoboticViaLocationOperation.
Try it like this and see if fix the problem:
TxRoboticCommand command = operationHeader.CreateCommand(newCommand);
command.Text = "Text";
Watch Replays of Previous Topics