Hi everyone,
I've had some trouble with spawning certain objects from families based on the value of global or array variables.
I've got a family with roughly 10 objects in it. Each object type has a unique family instance variable called "ObjectNumber". I want to spawn only the object within this family which has 'ObjectNumber = X' where is X is a global variable or an array value.
So far I've been trying out code similar to this:
CONDITION:
Family, ObjectNumber = X
ACTION:
System, Create object Family on layer 0 at (0, 0)
And many many versions of the above using picking, for each loops etc.
I know I could use if statements and write the code out separately with a separate spawn action for each value of X but it makes the code long and makes it time consuming to make small changes to the code.
Anyone have any idea where I'm going wrong?