Closed hzxie closed 3 years ago
That is very odd, but I would need to see sample files and a project folder. I don't see anything that might change the scope of the inserted object in your code if all you added was the lamp check. Maybe it is the r(0,90,0) in the second rule call?
If you uncomment out the "@Hidden" Handle Parameters, I would just turn the lamps off manually using Handles.
Code modifications to the Complete Street Rule are outside the scope of the repository. I would be interested in your final CGA code post modifications for review if you are willing to share that. However, I am closing this issue for now.
Please try this file. Bridge-Test.zip
Similar to bridge piers, the lamps also overlap with the bridges above.
I tried to add an empty bounding box by
extrude(y, 6.5)
to test whether the lamps overlap with the bridges above.However, it sometimes changes the orientation of the lamps, i.e. some lamps are not in the correct orientation, as shown in the figure below
How to solve the problem?