@Lee Mac:
Don't mention it, you've seriously helped me a lot!
@roy:
the (setq nStr "") becomes necessary, once the handling for closed LWPolylines is implemented or you get this junk for a reasult:
LWPOLYLINE,0,0,0,1,1,NILNILNILNILNILNILNILNILNILNILNILNILNIL
-1147.9919,-46.9602
-1147.9919,-46.9602
-1147.9919,-46.9602
-1147.9919,-46.9602,0,0,0,0,0,0,0
-935.5212,-196.4767
-935.5212,-196.4767
-935.5212,-196.4767
-935.5212,-196.4767,0.6809,-855.8716,-83.2904,4.0992,0.2071,-3.8921,138.4022
-720.4273,-54.8295
-720.4273,-54.8295
-720.4273,-54.8295
-720.4273,-54.8295,-1.9278,-486.2267,-5.6169,5.2628,3.3487,-1.9141,239.3153
-361.0632,-209.5922
-361.0632,-209.5922
-361.0632,-209.5922
-361.0632,-209.5922,4.5555,-97.1909,-639.6171,2.1212,1.2568,-0.8644,504.5295
58.6321,-159.7533
58.6321,-159.7533
58.6321,-159.7533
58.6321,-159.7533,-6.047,241.0924,402.1413,5.054,4.3984,-0.6555,590.7769
438.9809,-154.5071
438.9809,-154.5071
438.9809,-154.5071
438.9809,-154.5071,-0.2075,-230.5228,1728.7663,4.2355,5.054,0.8185,1998.7382
438.9809,-154.5071,-0.2075,-230.5228,1728.7663,4.2355,5.054,0.8185,1998.7382