Cancel
Showing results for 
Search instead for 
Did you mean: 

Delete 1000 parts from store every 24 hours

Creator
Creator

Guys I need help with writing a method that will delete 1000 parts from store every 24 hours.

Does anybody have any idea on how to do that?

1 REPLY 1

Re: Delete 1000 parts from store every 24 hours

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
take a generator (distance one day) and assign a method (distance)
in the method you can use a loop to delete 1000 parts

for var i:= 1 to 1000 loop
if store.cont /= void then
store.cont.deleteObject
end
next
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net