DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Import ASCII files

Started by jrstrange1, May 16, 2011, 02:07:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jrstrange1

Can DC 3D MAX 19 import ASCII files?  I will be conducting a survey of an unexcavated archaeological site in Israel using a total station that will dump my survey data onto my computer hard drive in ASCII format. It would be wonderful if DCAD can import that information in a form that I can manipulate.

Rob S

Yes, it can, and it does a fine job of it too.  I have often imported files from surveyors into the program.

The data needs to be in x,y,z format.

It can automatically draw a line from point to point, or just import the data as pointmarks.
User since forever

Mark Laing

Rob's answer was a definite yes. Total stations typically output files
with Point Numbers, x, y, z, and Labels, and they can easily be accomodated by Designcad. Takes like 20 minutes to set something up. Go for it.

jrstrange1

Thanks for the good news, guys! I may soon post another question, Rob S. Namely, How do I "set something up"?

Rob S

#4
Get a data file from your total station, and look at it in a text editor like notepad.

If it looks anything like the following, just go ahead and run the import, Designcad ignores the labels.

From the menu, choose "file, import", and in the file dialog, pick "xyz" in files of type, click setup and choose how you want the points displayed or connected, and OK

If it doesn't look like this, and you have to fix it, that might take 20 minutes

1,1000.000000,1000.000000,100.000000,RB
2,1133.540000,901.245000,101.702000,RB
3,1019.833000,1015.418000,97.773000,SC
4,998.438000,1027.345000,96.841000,RB
5,950.478000,1037.206000,81.722000,RB
6,915.315000,1048.099000,69.964000,RB
7,903.557000,983.844000,64.962000,RB
8,949.191000,984.690000,79.800000,SC
9,991.711000,980.298000,94.606000,RB
14,1015.297000,973.741000,97.798000,OIP
15,1017.873000,977.491000,98.815000,SPK
16,984.873000,971.637000,91.709000,OIP
17,998.188000,982.424000,95.978000,OIP
21,825.372000,1055.126000,108.870000,RB
24,813.771000,1006.393000,99.954000,RB
27,803.874000,982.955000,94.881000,OIP
28,713.557000,945.689000,102.943000,RB
600,907.678000,993.903000,0.000000,PAD
601,909.091000,1006.013000,0.000000,PAD
602,890.926000,1008.132000,0.000000,PAD
User since forever

Dr PR

Rob,

While we are on this topic, please clarify for me what the fourth data item is in your examples. This is the "RB," "SC," "OIP" and other such items.

I was under the impression that DesignCAD XYZ text files were of the following format:

;comment line A
AX1,AY1,AZ1
AX2,AY2,AZ2
AX3,AY3,AZ3

;comment line B
BX1,BY1,BZ1
BX2,BY2,BZ2
BX3,BY3,BZ3

etc.

Each line contains three numerical X, Y and Z values, all separated by commas. Comments can be added by preceding the text with a semicolon. Blank lines separate collections of points.

In this example there are two lines, A and B, each made up of three points (1, 2 and 3). A line can have a large number of points. Anyone know the maximum number of points that can be in a line?

Does the program just ignore all of the data after the third value on a line?

Phil
DesignCAD user since 1987

Rob S


All I know is, I imported that file as is successfully, so it must ignore them.

It would be real nice if DCAD could insert text labels containing the fourth item near the points.

OIP = "Old Iron Pin" in Surveyors language

SPK = "spike" i think

PAD = corner of Crane Pad (this project only)

Not sure what RB and SC means
User since forever

jrstrange1

Thank you, Rob.  My file does indeed look like yours, it is a text file, and I view it in Notepad. I do not see it, however, when I use the import function you mention. Specifying XYZ type of file does not make my file visible.  I paste my file below (I surveyed my front sidewalk and driveway, and a bit of my garage). Any suggestions, Rob or Mark?

1,5000.000000,5000.000000,500.000000,Start
2,5004.283744,5000.073651,500.063573,sidewalk
3,5007.124511,5000.533367,500.162561,sidewalk
4,5006.724975,5001.552823,499.939642,sidewalk
5,5010.644832,5001.888148,499.986012,sidewalk
6,5010.360689,5000.849730,500.032430,sidewalk
7,5017.858651,5000.885411,500.099761,sidewalk
8,5023.982808,5000.427112,500.183060,sidewalk
9,5029.940685,4999.580180,500.246678,sidewalk
10,5029.807500,4998.145272,500.287337,sidewalk
11,5023.776259,4998.963754,500.211563,sidewalk
12,5019.767683,4999.280910,500.167591,sidewalk
13,5018.664663,4999.344954,500.149510,sidewalk
14,5013.309783,4999.475765,500.073470,sidewalk
15,5010.355540,4999.328623,500.062474,sidewalk
16,5010.453536,4997.030449,500.186936,sidewalk
17,5010.681924,4992.512870,500.340285,sidewalk
18,5010.944479,4989.746886,500.403813,sidewalk
19,5011.793568,4986.765644,500.446078,sidewalk
20,5012.644063,4983.715191,500.502794,sidewalk
21,5012.745377,4977.139693,500.581053,sidewalk
22,5005.953824,4977.036609,500.577173,sidewalk
23,5006.052687,4983.112014,500.461464,sidewalk
24,5007.129553,4986.916231,500.425601,sidewalk
25,5007.750034,4989.776643,500.365067,sidewalk
26,5007.531682,4994.765670,500.215479,sidewalk
27,5007.259685,4999.031924,500.032956,sidewalk
28,5004.445428,4998.594570,499.981945,sidewalk
29,5001.430603,4998.080408,499.951102,sidewalk
30,5012.721098,4977.077010,503.371428,garage
31,5005.951113,4976.998414,503.357137,garage
32,5005.963260,4976.934864,500.690911,garage
33,5006.087597,4970.184323,500.681563,garage


Rob S

#8
You can either rename your text file to *.xyz, or you can put *.*  into the filename, and enter, and DCAD will display all files in the dialog.

Meanwhile, enclosed below are the results.

ps BIG EMBARASSMENT   :(

I  DID NOT NOTICE THE POINT NUMBERS IN THE FRONT.  sO WHAT i HAD POSTED WAS ALL WRONG

Redone import direct to designcad with those point numbers deleted now attached below, I just went into the notepad file and deleted the first column by hand.  I also inserted a blank line between Sidewalk and garage, and chnaged the color of one of the resulting lines
User since forever

RWSurvey

#9
I would suggest chucking your point file into Excel and deleting the first column and the last column, the point numbers and the description keys respectively. Then try to import JUST the x,y,z data. When obtaining ascii point files from surveyors make sure you get the format that they used also. There is a BIG difference between pnezd and penzd. What you need for DCad is the nez or enz coordinates only.

Rob, I took a look at your file and the northings vary from 987 to 993 and the eastings vary from 279 to 285. That is not close to the coordinates you show.  ???

jrstrange, Attached is your plot of the coordinates you posted. I took the liberty of assuming that they are in northing and easting format common to the US. This was done by connecting the consecutive points by hand and using the description key for the layer. I did not let Design cad connect the dots. For assumed coordinates like this best practise would be to make say the northing 5000 and the easting 10000, less chance of getting the two confused then using 5000, 5000.

I should mention that I plotted the points in Civil 3D 2012, connected the points and then copied and pasted just the line work into DesignCad. there were only 3 garage corners so I copied the two adjacent sides to get the remaining corner
Gary E. PS

jrstrange1

Thank you, Rob and Gary. This is most helpful. I'm still having the devil of a time making sense of the image I get.  Gary, yours looked like my sidewalk, driveway, and garage but it was in 2D.  Rob's was a 3D image but allowing DCAD to connect the dots did not work.  I was able to import something similar but to connect the dots myself.  In 3D view, the "side" view looks right, but it should be the top view.  Rotating the image on the various axes does not produce something that looks like my property.  I'll keep fiddling with it.
Thanks again,
James

DrollTroll

In DesignCAD, X is left-to-right, Y is up-and-down, and Z is forward-and-backward. You may have to load the data into a spreadsheet and swap your Y and Z columns to get it right in DesignCAD.
25 years with DesignCAD

jrstrange1

Thank you.  Once it's in the spreadsheet, how do I import it into DCAD?
James

Dr PR

One way is to copy the spreadsheet table and paste it into Word. Then convert the table to comma delimited text.

Copy and paste the text into Notepad and save it as a "filename.txt" file.

Then rename the "filename.txt" file to a "filename.xyz" file.

****

You can save ASCII .txt files directly from Word I am told, but Microsoft has a habit of putting all sorts of hidden garbage in Word files that could confuse DesignCAD's XYZ import. I prefer to copy/paste into Notepad because Notepad saves true ASCII text files with no included garbage. What you see is what you get.

Phil
DesignCAD user since 1987

DrollTroll

Just save the spreadsheet data in .txt or .csv format. Then rename it with a .xyz extension.

You may also have to remove that first column of data -- I'm not certain DesignCAD will properly digest the point indices in front.
25 years with DesignCAD