Hello All,
I am trying to create an expression in SAC and am having trouble getting it to work the way I want. The goal is to have the subassembly figure out what slope to use. If I do not have superelevation, I want it to use the grade for the in the input.output parameters. If I do have superelevation, I want it to use the super settings. So far I have this
IF((Side=Left)AND(SE.HasLeftSO),SE.LeftSO,CType(ShoulderSlope,Double))
This works if I am only creating a left side. However, I want it to decide which side super elevation settings by the input parameter side....Hope this makes sense..
I would do this inside of SAC instead of trying to do it in a single statement. You can add a flow chart to the flow chart if you don't want to see it. I would first test for left or right, then I would check for the super value, if that isn't found, then go to the input value. Then bring the branches together and take it from there.
Cheers,
Peter Funk
Autodesk, Inc.
Thanks Peter. I was trying to avoid my subassembly from having to make that decision simply because I have found that on some machines, SAC eats the memory and will not display the flowchart completely when it gets to large. I found a way to do what I was asking though. The formula is below.
IF((Side=Left)AND(SE.HasLeftSO),SE.LeftSO, IF((Side=Right)AND(SE.HasRightSO),SE.RightSO,CType(ShoulderSlope,Double)))
Jay,
Can you post some snapshots of this.
I am trying to apply super in SAC to no avail..
Thanks.
I have another question with SAC when you get a chance...
Can't find what you're looking for? Ask the community or share your knowledge.