making ports of collection property via generator |
Post Reply |
Author | |
edward22243
Major Contributor Joined: 19.Apr.2019 Points: 41 |
Post Options
Thanks(0)
Posted: 08.Sep.2022 at 09:20 |
I have an object AssemblyOperation which has a property object MaterialDef, which has a collection property Inputs of object PhysicalInterfaceIn. See picture below.
Once a MaterialDef property is assigned to AssemblyOperation I want to have ports (in AssemblyOperation) with all the Inputs of the contained collection. I am having trouble achieving this. I only can get the first element of the :Inputs collection. "foreach :Inputs; " gets syntax error (in the generator). How can I do this? |
|
stevek
MetaCase Joined: 11.Mar.2008 Points: 641 |
Answer Post Options Thanks(1) |
Looks like all you are missing is a newline in the inner block "Generator: use a set of objects retrieved by a generator. The generator must output the objects one per line, and the template will pick up the first Live Code hyperlinked object on each line."
|
|
edward22243
Major Contributor Joined: 19.Apr.2019 Points: 41 |
Post Options
Thanks(0)
|
Thanks. That was it.
Sometimes it can take a while to figure this out, so thanks for the quick answer.
|
|
Post Reply | |
Tweet |
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |