Sofimhc

DO we have a direct code to create a new line (sln) referring(using) already created line.
I defined a line sln 1(in xy plane) i want to create another line sln 2 which is parallel to sln 1 but with offset of 5 m in x direction.

Don’t know of a way to do it with a SLN.
However you can do it indirectly via SPT, e.g.:
SPT No 1 x 0 0 0 Nx 0 0 1 SX 1 0 0 $ Specify the local coordinate system, since offsets are in this system
SPT No 2 x 10 REF PT nref 1 $ inherits local coord sys since it refers to another spt
SPT No 3 y 5 REF PT nref 1
SPT No 4 y 5 REF PT nref 2

SLN no 1 npa 1 2
SLN no 2 npa 3 4