Cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Adding a command to a TxWeldOperation

Experimenter
Experimenter

Greetings Everyone,

 

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.

operationHeader.CreateCommand(newCommand);

 

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.

 

Regards.

1 REPLY

Re: Problem Adding a command to a TxWeldOperation

Phenom
Phenom

@VSH

 

Try it like this and see if fix the problem:

 

TxRoboticCommand command = operationHeader.CreateCommand(newCommand);
            command.Text = "Text";

Regards,