This macro retrieves the nodes from 1D mesh which are not shared with 2D mesh:
Load script from File -> Load -> Script
Or by using Extensions