cancel
Showing results for 
Search instead for 
Did you mean: 

How to clean OLP commands from a location?

Genius
Genius

Hello!

 

I developed an utility to switch location position, where the user selects a pair of locations and their position inside an operation is switched.

 

I want to add to this utility the capability to also switch OLP commands between locations. For doing that, I need to first clean/clear the OLP commands from one of the locations to only then apply the OLP commands. Creating a new command is not an issue, but I'm not being able to remove existing commands.

 

Is there any way of cleaning the "Commands" propertie from a robotic location? Is there any other way to implement this API?

 

Thanks!

 

 

 

 

2 REPLIES

Re: How to clean OLP commands from a location?

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

Hi,

 

Just use Delete() on the olp object.

 

Regards,

Moshe

Re: How to clean OLP commands from a location?

Genius
Genius

Hello Moshe!

 

It doesn't get more simple! I was trying to use Clear in the Commands propertie, forgot to try this option in the object level instead of the collection!

 

Thank you very much!

 

Regards