Visual Components' Community

New Thinking for Factory Simulation
Welcome to Visual Components' Community Sign in | Help
in Search

Change the Human component's targets

Last post pe, joulu 12 2008 11:19 by leonarul. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • to, huhti 24 2008 14:57

    Change the Human component's targets

    The Human component (worker or any other resourcing component) is capable of doing several tasks such as to work, transport, load and unload. These tasks are functions inside the Brain script: VC_ACTION_WORK, VC_ACTION_MOVE, VC_ACTION_LOAD, VC_ACTION_UNLOAD and VC_ACTION_TRANSPORT. The User's Manual > Python Reference > Action Container has more details about them.

    Normally the Human interacts with other components in a certain position which is a frame called ResourceLocation. To be able to add several human interaction points inside one component there needs to be several frames. The Human component will then locate these frames and interact the component from these points. To make the Human component look for these frames, they need to be specified in the action line. The actions have optional keyword called ToLocation. This is a vcMatrix type location.

    Example in the Python script:

    comp= getComponent()
    resources = comp.findBehaviour("ActionContainer")

    feat1= comp.findFeature("WorkFrame")
    place1 = comp.WorldPositionMatrix * feat1.NodePositionMatrix

    resources.use("",VC_ACTION_WORK,WorkTime=comp.CycleTime,Location=place1)



    Ricardo Velez
    Research and Development Manager
  • pe, joulu 12 2008 11:19 In reply to

    Re: Change the Human component's targets

    Can you give 1 example file that work on Human walk from point A to point B(for example).

    "ENGINEERING THE NEXT BREAKTHRU"
Page 1 of 1 (2 items)