Cancel
Showing results for 
Search instead for 
Did you mean: 

Tracking the amount of MUs on a Track/TwoLaneTrack

Creator
Creator

Dear community,

 

I am trying to figure out an easy way on how to track the amount of MUs that are located on a Track object.

Preferably, I would even like to differentiate between A and B Tracks for a TwoLaneTrack object for  this purpose.

Background is, that I want to delay the point of creation of the following MUs to use that TwoLaneTrack as long as a certain amount of MUs is still located on it. So far I thought about writing all present MUs in a TableFile which I can than put in an array to handle in the further creation method. 

Anyhow, is there maybe a more simple method or so that I can use on the Track object in order to return the MUs currently located on it? 

 

Thanks for any advice!

 

Best regards,

 

Timbo

2 REPLIES

Re: Tracking the amount of MUs on a Track/TwoLaneTrack

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
you can ask each lane for the number of MUs e.g.

track.A.numMus or track.B.numMus
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Tracking the amount of MUs on a Track/TwoLaneTrack

Creator
Creator

That worked fine thanks!