Jump to content

tulach

Members
  • Posts

    248
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by tulach

  1. I thought I would be easy to change Write step, but the fact each replication is in a separate file has a reason.


    Simio can run multiple replications at once. And using External it crates say 4 processess each with one replication. Each process can run in a different thread.

    But these processess cannot write in one file simultanously.

    So I recommend using this Makro to join files together.


    Sub LoopThroughFiles()

    Application.DisplayAlerts = False

    i = 0

    Dim StrFile As String

    StrFile = Dir("C:\Users\.....\NameOfExcelFile*")

    Do While Len(StrFile) > 0



    Workbooks.Open Filename:=StrFile

    Sheets("Sheet1").Activate

    Range("A1").Select

    Range(Selection, Selection.End(xlToRight)).Select

    Range(Selection, Selection.End(xlDown)).Select

    Selection.Copy

    Workbooks("vysledky_makro.xlsm").Activate

    Sheets("Sheet2").Activate

    If Range("A1") = "" Then

    Range("A1").Select

    Else

    Range("A1").End(xlDown).Offset(1, 0).Select

    End If


    Selection.PasteSpecial xlPasteAll

    i = i + 1

    Workbooks(StrFile).Close

    StrFile = Dir

    Loop

    End Sub

  2. I had a model containing those trains. Since train vehicle was not available then, I used my subclassed vehicle with as many stations as I wanted for wagoons.


    This train had the disadvatage, that it did not animated turning on corners (it was a long vehicle) but for the purpose of simulation it was not necessary.


    I would recommend to look for train here in forums and change the symbols for cars and locomotives.

  3. By default found branch (token) is executed first and then the original. This is unless you have a delay in found branch. If so, (and the delay is at least math.epsilon) original token is executed before the delay and than found token executes.


    If you can send a screenshot of your process it will be easier to give precise help.

  4. I always wanted an easy way to make my models look tidy.

    One of our developers created this add-in which can align and evenly distribute nodes or objects added to a list.


    I think usage is pretty easy and will help in building models with many nodes etc.


    Feel free to use it as a early christmas gift from LOGIO.

    SimioAlignAddon (2).rar

     

    Would be nice if someone in SIMIO will integrate the code into standart product in future, so we can just select multiple objects and align with rightclick.


    Petr

    alignAddin.png.844830ce4b37e645505c65f43b81b525.png

    • Like 1
  5. Thanks for immediate reply David, I just find the route step option myself, but it is good to know that there is no other elegant option. :-)


    But as I want to transfer some entity to the node from node list not using a path, I use this construction.


    Route -> Assign (NodeState:=Model.Entity.DestinationNode) -> Transfer (to node: NodeState)


    I would be nice if we can just pick a random node form list with something like this


    List.MyListName.random


    Something we can do with populations.

  6. I need to select Node from NodeList, but based on random. All nodes should have equall probability of beeing selected.


    Does anybody know if this is possible?


    I made a workaround with assigning each node a number from 1 to N and then first generate the random number and then search for appropriate Node using SearchStep, but this requires for setting numbers for each node manually and I have a lot of nodes in my model.


    Is there a way to use a rank of node in the node list?


    Thanks for help.


    Petr

  7. It is ModelEntity.Sequence.CurrentJobStep expression which will return what you want to know.

    It points at the row in sequence table, so you can get it this way.


    You can even change your entity sequence by using SetRow step for sequence table.

    For doing this, you must ensure, that you have your entity as an associated object of the process and than you can SetRow to anything.

  8. Hi,


    I tried this library and it is a nice thing to work with. Few suggestions:


    1.) It took me some time to get the difference between ForwardandBack and LeftandRight.


    2.) Crane can, to my great suprise, transfer entities to nodes out of Bay. This happens only if the node is outside bay in the direction of cab movement. If it is outside bay in the direction of Bridge movement, warning appears.


    3.)If Crane initialnode must be the same as bridge initialnode, it should be nice to have this set by default. This is not possible in Simio at the moment I think.:-)


    4.) It would be nice to have transparent Bay with borders only (Or a choice to . Sometimes we have layout of factory and bay does not look good and hides important things on layout.

    Ok I found that I can change bay as any other object but still transparent color for objects would be nice.:-)


    5.) Crane and other crane components do generate a lot of data in trace. It would be nice to have possibility to swich this off just for some steps inside crane and co. I used it in a model that has a simulation time of 1 month and this made my trace impossible to filter and analyse.


    6.) If I have Bridge1 initialNode and CraneInitialNode the same as node where my entities go to be transfered, I get this error. I has something to do with fact, that bridge does not have to move, so it has movement.rate == 0


    7.) In one model the lift started to fall into depth. This happens if entity has destination node set to specific and to the same node where it is. (e.g. if TransferNode1 is set to Entitity destination type specific, NodeName = TransferNode1) then crane will fall in the depths.

    craneerror.png.1fc636be4eb9c15e21abf1f9afe38aa3.png

  9. Hi, nice topic.


    The use of IDEF-SIM seems promissing, especially for bigger projects with more than one modeler. Thanks for pointing this out.


    I often use pencil and paper or whiteboard & whiteboard marker, if there are more people around.


    As we often do VSM mapping in manufacturing prior to making models I often have VSM maps, that sometimes contain neccesary data, but not always. (And sometimes the are not all relationships shown).


    But my models are often done on a tight schedule and even me myself have problem to look deep down my own models, which is a shame.

×
×
  • Create New...