You originally said a format with a height (Z) value, then it was omitted in post #5. If you are collecting data using a total station, what happened to your Z values? Normally data from a total station has a Z value, if you use it that is a different matter, but I wouldn't simply discard it from my raw data.
Edit: Then in post#14 your data has a Z value. Do you also need to insert blocks and automatically join lines?
Do you have a fixed code list that you use for every survey and do you have your CAD standards already set up; layer name, colour, linetype, line thickness, etc?
Get those sorted out first and then tailor your LISP / VBA to suit.
no 1,2,3 ... are the points IDs. It's ideal to have Z, but, optional. I just want for every code ( the description of the point ) to have a different color so that i can join them with a polyline more easely (manualy). The best way is probably by puting different point descriptions on different layers. In the folowing picture, i.ve observed some points. The 4 red points represent a building (for ex) and I know that I should draw the pl throu them and them alone, because they are red ( they have the same description).
Sorry for my english, i'l get better I promise here is the print screen http://dl.transfer.ro/transfer_ro-20sep-f35f9fc01ef122.zip
points with description S are placed on layer S
points with description x are placed on layer x
...............................................................
i don't even need the point ID, a circle would be sufficent
The answer to do this properly is to look at the descriptor it either has a look up table that says its a point or it has within the code a control that identifies it as a string or a point. eg 00pom v's 01pom the 00 is a point no matter howmany but the 01pom says join string 1 poms together string 02pom is not joined to 01pom!
This is basic surveying technique used by all surveyors using total stations.
For those wanting to write a string program I would start by sorting all points on the point number first then secondly on the descriptor this way they are grouped and recorded in the order surveyed. Then a simple read line program would work. Next step is if a point what block to attach.
For those that know 01F*03F this is a point which is a building line intersection with fence 03 your plan would draw a T connecting all line work Fence 01 & 03
It does not matter in your descriptors wether there numbers, alpha or combination.