Junior Member
Join Date: Nov 2005
Posts: 28
|
I suspect that I am doing something wrong -- that's usually the case!
I have an option that adds an item when the option is selected. When I change the minimum and maximum range to 1, the item is not added. I have check via my pre-link script that the option working as I expected and 'selection' is returning 1: var num as number num = selection name = "foo" & num I have verified that it does revolve around the min and max in my linkset. If I have the minimum to 0 and the maximum to 1 and set the initial value to 1, the item is added as I would expect. However, if I move the minimum to 1, the item is not added. Any ideas? Regards, Todd |
#1 |
Senior Member
Volunteer Data File Author
Join Date: Mar 2005
Posts: 345
|
have u tried it in post-link so it process later?
|
#2 |
Junior Member
Join Date: Nov 2005
Posts: 28
|
Sorry, I mis-typed. I added the test to the Eval script within the option, so I know that the option is actually being processed and that selection is returning 1.
What I don't understand is why the child link is not added? |
#3 |
Junior Member
Join Date: Nov 2005
Posts: 28
|
Latest experiment. I changed the Nature of my option to "include".
The link is not added as long as minimum equals maximum. If minimum and maximum are different, the link is added. Is this the expected behavior? Regards, Todd |
#4 |
Junior Member
Join Date: Nov 2005
Posts: 28
|
There is an easy way to reproduce this effect. In the example files, edit the unit.dat file in ABCreator.
1. Open the unit steeljaw. 2. In the option vu_electro, set a min and max constraint to the same value to the same value. 3. Make sure the Nature of the link is set to Include The child link Electromag Plating will not be added if the min and max are set to the same value. If they are different values, the child will be added. |
#5 |
Junior Member
Join Date: Nov 2005
Posts: 28
|
I found a workaround, but I'm not too happy with the results.
1. Make the minimum and maximum different numbers. 2. Use the start value to be the desired value 3. Hide the option using by setting "Start Visible?" to "No". This has the effect of changing the options displayed, but at least the user cannot change the values. |
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
This definitly sounds like a bug to me. :-(
-Rob At 10:38 PM 1/31/2006, you wrote: Quote:
|
|
#7 |
|
|