I have a custom subassembly that does have the "Side" assigned to "Right", but when I mirror it, it doesn't mirror correctly. I do have a Decision node in the flow, so there are two conditions. It seems like it is jumping to the other condition when I mirror it, but I can't figure out why in Subassembly Composer.
(Civil 2023.2.1 Update)
For some reason the forum is not allowing me to attach the .pkt file.
Edit: .pkt file is now attached. Thanks, @Wojtek_Garczewski
Solved! Go to Solution.
Solved by Wojtek_Garczewski. Go to Solution.
Hi @jameshitt
Try to ZIP your PKT or you may use WeTransfer.com
Looks like your custom PKT would be needed to narrow down the issue.
Thanks,
Wojtek
Just giving this a bump in case I missed the normal crowd over the weekend. I will likely just make a right and left side subassembly as a workaround, but I'd still love to understand why it isn't mirroring correctly in the first place.
Thanks in advance!
Hi @jameshitt
Thanks for subassembly.
I checked on that, and I think I found the cause of the behavior.
Subassembly works as you asked it to work, and behavior is driven by the decision you applied in the flowchart.
AP1.Offset > AP2.Offset
When you assign it to the left, your AP1 Offset values are negative. That's why AP1.Offset is smaller than AP2.Offset, which changes the decision to a false and different path in the flowchart.
Please see:
To solve it you need work on absolute values, then the decision condition should look like :
math.abs(AP1.Offset) > math.abs(AP2.Offset)
Please see:
Please note that Preview geometry should be set to Layout Mode.
Layout Mode = how subassembly looks like in Assembly.
Roadway Mode = behavior of subassembly in Corridor based on targets etc.
Let me know if that helps.
Thanks,
Wojtek
______________________________________________________________
If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!
I was starting to feel like it must be in the Decision expression. Thanks!
Can't find what you're looking for? Ask the community or share your knowledge.