I think I've almost got it now. I have one problem, summed up in this example script;
The last pline does not close. I thought that _C should close the line. As it is, it hangs as it is still looking for the next pline point. Any ideas? Am I missing some code?
_LINE -96.860,32.583 56.082,32.583 _CHPROP _L _C 2 _HATCH _P _S _L _CHPROP _L _C 1
_RECTANGLE -69.138,-14.067 -15.304,14.531 _CHPROP _L _C 2 _HATCH _P _S _L _CHPROP _L _C 2
_MTEXT 10,15 _H 2 15,17 hello
_MTEXT 10,13 _H 2 15,15 hello
_PLINE -79.289,-229.289 -79.289,-200 20.711,-200 20,711,-229.289 _C _CHPROP _L _C 6 _HATCH _P _S _L _CHPROP _L _C 6
I think that is all I need to do script wise. I now have to decide the best way to generate the script, i.e. how to get the coordinates out of the existing *.cel file. Originally I was going to write a macro in excel, but there may be an easier approach. For your information, the *.cel file has lines like
where the numbers in the second line are coordinates for a pline. I think it will be relatively straightforward to do extract the useful information, but I'm not sure of the most efficient way of doing it right now. I will try in excel and see where that gets me. The number in the first line is related to the colour I'd want for the lines/bhatch, but that's beyond what I want to do now.
DZ TL-0.079289,-0.229289; TL-0.079289,-0.200000; TL0.020711,-0.200000; TL0.020711,-0.229289;