I am creating a retaining wall SA that daylights to a surface. The SA works as designed in both Layout and Roadway Mode. However, I would like to be able to specify the display height in LayoutMode. Currently, I am using "Slope to Surface" as the geometry definition and have set 0.1m as DeltaX for LayoutMode. This works well for me when the wall battter is defined between 3 and 6 degrees. However, if it starts getting closer to vertical the SA displays extremly tall and progressivly shorter above 6 degrees.
So, what I want to do is define the display height for LayoutMode and have DeltaX adjust to suit the desired display height and defined wall batter.
Here is the formula I already tried to use:
(WallHeight)*(math.tan(WallBatter))
Defined Variables:
WallBatter = 3
WallHeight = 3
For the above variables I would expect DeltaX to equal 0.157m. However, what I get is a link that has a DeltaX=0.428 and a Height=8.160. ?????
The other puzzeling fact is, if I change the wall batter from 3 degrees to 1 or 4 I get a slope in the opposite direction.
Can anyone help me figure out what is going on? Thx.
Solved! Go to Solution.
Solved by david.zavislan. Go to Solution.
Add a decision point to test for layout mode:
Enter the expression SA.IsLayout in the decision properties. This will return true if in layout mode, and false if in roadway (corridor) mode.
Under the true (Layout Mode) branch, place the points and links to draw the subassembly the way that you want during assembly layout.
Thanks David,
I indeed have that function in my complete SA. The one I posted is just a snipit showing the problem link.
Looked at your screen capture again. You were using the layout property in the slope to surface element. I think the problem is that you are not converting the WallBatter to radians in the DeltaX for Layout Mode, like you do in the slope property.
I usually create a variable "WallBatterRadians" with the WallBatter*(math.PI/180) calculation. Then use this variable in the point and link properties.
Of Course!! Wow, Can't believe I missed that.
You can't beat a pair of fresh eyes. Thx.