zousgr
28th Jul 2006, 03:46 pm
[using AutoCAD 2006]
Hi. This is about my university project and i have some problems.
What i have to do is to insert a raster image at AutoCAD (which is like a small map), and convert it to vector. So the result is a map at a dwg file that the roads are represented from lines.
I've done this part succesfully and now I have a total of 2500+ lines.
What I want to do now is to create a script file (*.scr) that contains the coordinates (StartX, StartY, EndX, EndY) of all 2500 lines so as to load the *.scr file at a new AutoCAD drawing later and to create the initial map.
Copying-pasting 4*2500 8-digit numbers is kinda tiring so i used an autolisp to export the coordinates of every single line to a *.doc file.
As most of you may know the *.scr should contain the data like that (always according to the instructions of my professor):
line
StartX,StartY
EndX,EndY
The problem is that even if i am 100% i do the *.scr perfectly, when i load it at a new AutoCAD drawing this message will appear: Zero length line created at (73.7644, 93.1040)
Specify next point or [Close/Undo]:
Of course the numbers will change depending on which line is first.
Anyway, i initially thought that the autolisp didn't export the coordinates accurately so i took 100 lines and did it by copy-paste at a new *.scr file.
The same message would appear...
The fact is that I compared my whole project with many of my co-students (every student has unique project) and after many many hours i couldn't file a single difference!!
What could my mistake be? I mean, why is AutoCAD recognising all lines as zero-lengthed?
Hi. This is about my university project and i have some problems.
What i have to do is to insert a raster image at AutoCAD (which is like a small map), and convert it to vector. So the result is a map at a dwg file that the roads are represented from lines.
I've done this part succesfully and now I have a total of 2500+ lines.
What I want to do now is to create a script file (*.scr) that contains the coordinates (StartX, StartY, EndX, EndY) of all 2500 lines so as to load the *.scr file at a new AutoCAD drawing later and to create the initial map.
Copying-pasting 4*2500 8-digit numbers is kinda tiring so i used an autolisp to export the coordinates of every single line to a *.doc file.
As most of you may know the *.scr should contain the data like that (always according to the instructions of my professor):
line
StartX,StartY
EndX,EndY
The problem is that even if i am 100% i do the *.scr perfectly, when i load it at a new AutoCAD drawing this message will appear: Zero length line created at (73.7644, 93.1040)
Specify next point or [Close/Undo]:
Of course the numbers will change depending on which line is first.
Anyway, i initially thought that the autolisp didn't export the coordinates accurately so i took 100 lines and did it by copy-paste at a new *.scr file.
The same message would appear...
The fact is that I compared my whole project with many of my co-students (every student has unique project) and after many many hours i couldn't file a single difference!!
What could my mistake be? I mean, why is AutoCAD recognising all lines as zero-lengthed?