According to sofimshc manual, a coupling can be defined between two spts using command sptp. This works well when the coupling is oriented by default but i cant set a different orientation. According to the manual:

The direction of the support or the coupling can be set independantly from the local coordinate system of the point at the parameters X,Y,Z.

The following code does not work:

SPT #GR+3 X #XPI+#DSIN(#BETAPI) Y #YPI+#DCOS(#BETAPI) Z #ZPI3 SPTP TYPE PZPY REF #GR+6 GRP #GR+1 X COS(#BETAPOTPI) Y -SIN(#BETAPOTPI) Z 0

Also rotating the spt #GR+3 local coordinates doesnt work.

Is there any example of how to code this rotated coupling?

Partially solved, using TYPE LPZPY in command SPTP made it work with the local coordinate system of the node.
Still no solution for setting independatnly from the local coordinates system of the point using X Y Z parameters of the SPTP command.

In fact, i found that only SPTS works well when you are doing TH3 calculations.
Beams with shear hinges doesnt work properly as well as couplings with shear hinges. This is not clearly specified in the manual.