nicholas.hendrickx
2008-10-16, 01:31 PM
Hello everybody
I have to work on a project that involves the following problem:
I want to create a family for a lighting fixture, based on a rail
so I have a simple 3d rail, drawn in the family editor
Now on this rail, there can be various elements such as lamps, signs (such as exit signs), security lights, etc.
Therefor, I want to add an (integer) parameter that allows the user to set the amount of segments on this rail. Each segment can hold an element
For example, when you set the parameter to '3 segments', the rail will take a certain length and 3 elements, nicely divided over the length
When you set the parameter to '5 segments', the rail will get longer and 2 more elements are added automatically
I managed to do this using arrays, but the problem I have now is an obvious one:
the 'elements' I use are nested families (a simple baseplate with a series of nested elements such as lamps and signs)
Since it's an array, all the segments have the same element:
Here is a picture that shows my current test family and how it changes all my elements to the same one since it's an array
The main family is a rail, in this family I have a nested family which is a base plate that has yet another nested family inside (beeing a square, circle or a triangle)
http://users.pandora.be/dark-soul/array.gif
It's really hard to explain, but in general, the project I have to make is a rail and when you place it you can choose how many elements it has, and then one by one select the rail segments and pick an element from a list
Can somebody think of a way to do this please?
I have to work on a project that involves the following problem:
I want to create a family for a lighting fixture, based on a rail
so I have a simple 3d rail, drawn in the family editor
Now on this rail, there can be various elements such as lamps, signs (such as exit signs), security lights, etc.
Therefor, I want to add an (integer) parameter that allows the user to set the amount of segments on this rail. Each segment can hold an element
For example, when you set the parameter to '3 segments', the rail will take a certain length and 3 elements, nicely divided over the length
When you set the parameter to '5 segments', the rail will get longer and 2 more elements are added automatically
I managed to do this using arrays, but the problem I have now is an obvious one:
the 'elements' I use are nested families (a simple baseplate with a series of nested elements such as lamps and signs)
Since it's an array, all the segments have the same element:
Here is a picture that shows my current test family and how it changes all my elements to the same one since it's an array
The main family is a rail, in this family I have a nested family which is a base plate that has yet another nested family inside (beeing a square, circle or a triangle)
http://users.pandora.be/dark-soul/array.gif
It's really hard to explain, but in general, the project I have to make is a rail and when you place it you can choose how many elements it has, and then one by one select the rail segments and pick an element from a list
Can somebody think of a way to do this please?