Empty Container via Script

Hey everyone!

Is there a possibility to empty a container? I have some sort of index table that rotates and I want the objects to be deleted at a certain point. Just like they disappear after a conveyor.

I can’t find anything regarding this in the F1-Help.

Best regards
Dubsepp

Hi,

a container behaviour has a proptery Components that is a list of all components stored in the container. You can run a loop overall components in the container and remove them with the deleteComponent() method of the vcApplication instance.

app = getApplication()

for component in conatiner.Components:
app.deleteComponent( component )

Hi Ralle!

Thanks for your answer, that solved it!

BR
Dubsepp

how can i implement it in VC 4.4?