Jump to content

pbecker

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by pbecker

  1. 'wild' guess, try Entity.SeizedResources.ItemAtIndex(Entity.SeizedResources.IndexOfItem(resource)) -Phil
  2. The Simbit "Select server with shortest line" might be what you're looking for. Create a list that contains the possible input nodes and set the transfernode destination type to "Select from List". Selection Goal: "Largest value" ("Random" if the score is always random and just a means to select a random server every time) Selection Expression: Depends on where the score information is stored, maybe "Candidate.Node.AssociatedObject.score" Another way would be to set the destination beforehand. For example, if the entities come from a source, you could add an add-on process trigger @ "Created Entity" which calls a routing process that you can define. The process would determine or at least read out the random scores and set the entity destination accordingly, using the "Set Node" step. The transfer node could then be set to Entity Destination Type = "Continue".
  3. Thanks Dave, works like a charm. It still requires me to assign every table to each object individually, as selecting multiple objects --> right click --> set referenced property doesn't work. But that's okay, since the column assignments are automatically taken care of. Sorry Adam, I don't know the answer to your question.
  4. Thanks Adam, things make a lot more sense now. Maybe I'll ask them if anything can be done to make the assignments easier. Cheers, -Phil
  5. Hey everyone, After reading the documentation and various topics here, I still have a few questions concerning Repeat Groups and tables. -Are Repeat Groups in submodels essentially copied tables, meaning the submodel gets passed a clone of the top level's table? I guess I'm confused because of this sentence in the Reference Guide: If data should only exist on the top level, why not just reference it from the submodel? Sounds like the reference is discarded for a copy, which contradicts the first premise? - Or is the Repeat Group a "Table of references"? In which case it still seems overly complicated to me, couldn't we simply pass the name of the table, without having to pass all columns? Alternatively, why not adding the ability to reference a table from a submodel in the form "Location.Parent.Model.TableName"? The reason I'm asking is that I have a model with many submodels, that all need to access a huge data table. If I'm not mistaken, Repeat Groups require you to pass every single column to every single submodel by hand, since selecting multiple submodels and right-clicking to choose "Select referenced property" doesn't work. I ended up creating a state variable that copied the data table, which I can access from the submodels via "Location.Parent.Model.ArrayName". Although the information is then 'pulled', this sentence adds to the confusion: I might be overthinking this, but storing information in an entity that is sent into an object passes information without properties as well? I'd just like to understand Repeat Groups and moreover I'd like to be able to use the Search Step from the submodel, which doesn't work with the array. I might give the find step a shot at this. Sorry for the lengthy post - any insights are appreciated! -Phil
×
×
  • Create New...