JOIN Command Not works

Hello,

I'm using DraftSight 2023 Sp2.

In that ,the command "JOIN" cannot joins all entities together.

Instead of , it creates 2 or 3 polylines.

The dwg file which I worked was exported from SOLIDWORKS. 

Had anyone face the same problem, could help me?