Well, some new tests. I have a single line in Civil 3D and these are the properties:
The angle in XY is 20.66 and a slope angle of 45. I want to align blocks along this line. The block is a box and this is the desired result in 4 viewports:
So, if I give the block a rotation of 20.66 in the Node BlockReference.Create, the blocks are rotated correctly. I calculate the angle of the line between the X-Axis of the Coordinate Systems along this line and a global X-Axis (and needs a correction of 90 degrees because of the design of the block):
In Civil 3D it is like this:
From above the blocks are perfectly aligned to the line as seen in viewport 1.
Now I need a normal to rotate the block in the Z direction perpendicular to the line. If I check the Z-Axis of the desired result, I get this vector:
And it is (not incidentally) the same value of the Z-Axis of the collected Coordinate Systems:
So, I want to use this value to feed the Normal Parameter of the BlockReference.Create Node which needs a vector. But, the result in Civil 3D is this:
The rotation in XY plane is not 20.66 anymore (seen in viewport 1) and the extrusion (Z-Axis) is not related to any probability:
It is not the same as the feeded Z-Axis and also not a global Z-Axis.
Is it a bug? Or do I feed something other than the Z-Axis (maybe the Normal Parameter is not the Z-Axis)? And why is the rotation changing? Questions…