@ME7CADGuy wrote:
I am going to try and decipher the latest sqaure manhole soloution, please wish me luck.
It is a bit complicated. There are three visibility states. One has the diagonal lines straddling the corner, the second has the lines ending at the vertical edge, the third has the lines ending at the horizontal edge. The appropriate stretch actions are added to the appropriate diagonal lines so that for their given state they are stretched correctly. There is a position parameter added to the 10,0 point. That point is moved left when the vertical linear parameter is made larger, and right when it is made smaller. That point is also moved left when the horizontal linear parameter is made smaller and right when it is made larger. That movement means that the transitions between states of the block occur when that point parameter is equal to 6,0 and 11,0. Between those two points, the lines need to straddle the corner, above 11 the lines both end at the horizontal edge, and below 6 the lines end at the vertical edge. Turn on the grip for the point parameter if you want to see the behavior in real time. I then added a double lookup with the appropriate range values to switch the visibility state based on the position of that point parameter. That would have been enough if the block didn't have the rotate action. To accommodate that movement and the rotation of the two main linear parameter, I had to use another trick.
There are two gripless chained linear parameters added that are the same length as the main linear parameters and those added linear parameters are scaled by the main linear parameters so that they are always the same size as their respective main linear parameter. Those chained linear parameter are not rotated and so they have the move actions added to them to move the point parameter.
Hopefully that all makes sense as you look at the block. If not, then report back with your questions.