Answer:
In RFEM and RSTAB, you can define a "scissor hinge" for this. Thus, crossings of members are possible without influencing their moment, shear, or axial force distribution.
Create a new member hinge and select the Global reference system. Then, activate the scissor hinge options and define the released axes.
As shown in the example, you can define the rafters as continuous and rigid. It is then necessary to provide the crossing purlins with the scissor hinge at the common nodes.