Page 1 of 1

Create Edit Multiple Break Types from VL

Posted: Thu Oct 29, 2015 4:16 pm
by DJHarris71
Hello,

I am working on a VL routine to read Acivity performance data from a spreadsheet object.
Some of the activities have more than one break type.

Modifying the first break type is easy by using the following code:
Set MTBF Style Loop_Obj , Count only busy time
Set Object Distribution Parameters Loop_Obj , Efficiency Work Time , Exponential , 0 , 0 , 0 , 0
Set Object Distribution Parameters Loop_Obj , Efficiency Repair Time , Exponential , 0 , 0 , 0 , 0
SET Loop_Obj.Efficiency Repair Time = ss_WSData[5,tvi_Loop1]
SET Loop_Obj.Efficiency Work Time = ss_WSData[4,tvi_Loop1]

Next comes the tricky part: I figured out how to create a new downtime using this code:
Create Break Type Loop_Obj , ["Break Type "+BTCount]

This sets a global text variable (that I had to create) alled "Breakdown_Type" to the name I gave above.
However, I have no idea how to edit this break type.
I'd like to edit the same paramaters I set above: MTBF Type, Work Time, Repair Time and the distribution types.

Anyone know how to do this?

Thanks,
Doug