From DWG to MESH... a trick

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-01-29
01:55 AM
- last edited on
ā2023-05-23
04:45 PM
by
Rubia Torres
You all may be familiar with the AC14 new option
It is a really fast way to create real terrains with just a few clicks. The only problem is that you will need a txt or a xyz file, and not all surveys provide with them, some will give you a dwg containing contour lines at real height.
- 1- open the DWG as an object
2- copy the 3D script to a text editor (just the lines) and save it as txt
3- open the file in MS excel (using commas as separators)
3- use find & replace to replace theLIN_text with a space
4- at this moment you will have 6 columns
5- take the last 3 and place them at the end so you can have a list of X, Y and Z values
6- save it as a txt , again using commas as separators
It worked for me with more than 12000 points, so it pretty reliable.
just be aware of the amount of polygons generated when viewing on 3D.
Let me know if any clarification is needed.
Regards
Nando
Director @ BuilDigital
nando@buildigital.com.au
Using, Archicad Latest AU and INT. Revit Latest (have to keep comparing notes)
More and more... IFC.js, IFCOpenShell
All things Solibri and BIMCollab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-01-31 02:24 PM
jonyyybe wrote:The "lines" are "LIN_" statements that define lines in 3D. These are the source for the XYZ coordinates.
Nando, can you by more explinable.
Can you explain the exactly the steps in the ravoneldar dwg file uploaded.
1- open the DWG as an object - i understand
2- copy the 3D script to a text editor (just the lines=what lines? there are many lines) and save it as txt - i don't understan what lines, but to save to a txt yes.
3- open the file in MS excel (using commas as separators=???) - Using commans as separator?This is a basic spreadsheet standard. Text files converted to spreadsheets typically have commas or tabs as the separators between the data in the cells.
3- use find & replace to replace the LIN_ text with a space - same ????This is to delete the LIN_ command which the XYZ file does not need.
4- at this moment you will have 6 columns - remaning to be seen...This isolates just the XYZ coordinate values in the spreadsheet. I'm not clear about the instruction to place the columns at the end as I assume the procedure is simply to delete all but the thee columns.
5- take the last 3 and place them at the end so you can have a list of X, Y and Z values - ??????
6- save it as a txt , again using commas as separators - ?????See above.
If you are still not clear on this you will have to wait for Nando to put together his tutorial.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-01-31 05:10 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-01-31 05:19 PM
The DWG provided by Ravoneldar
But it serves a good example:
The main difference in the process is that instead of finding
The TXT created with this DWG requires a bit more of "cleaning" before you save the final TXT for import into Archicad.
I'll try to find the time to explain this later... in a more "Human" way
Regards
Director @ BuilDigital
nando@buildigital.com.au
Using, Archicad Latest AU and INT. Revit Latest (have to keep comparing notes)
More and more... IFC.js, IFCOpenShell
All things Solibri and BIMCollab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-01-31 05:28 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-02-01 06:22 PM
ravoneldar wrote:I try not to do baby sitting when helping others. Nevertheless this is not an
could you please send the .pln file to my e-mail?
It's ravoneldar@gmail.com
I need it so much!!!
Here is the TXT file you will need to create your Mesh, it is important for you to try to understand the procedure. Then you do your mesh.
The procedure to obtain this TXT file was:
1- Open the DWG as an Object
2- Copy the 3D script and Paste it into a simple text editor like Notepad/Textedit
3- Save it as TXT
4- Open the TXT in MS Excel
5- Clean the content in order to obtain separate columns with
6- Save it again as (the final)TXT
Director @ BuilDigital
nando@buildigital.com.au
Using, Archicad Latest AU and INT. Revit Latest (have to keep comparing notes)
More and more... IFC.js, IFCOpenShell
All things Solibri and BIMCollab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-02-01 10:02 PM
NandoMogollon wrote:
I try not to do baby sitting when helping others. Nevertheless this is not an"out-of-the-book"procedure so I can offer you a deal:
Here is the TXT file you will need to create your Mesh, it is important for you to try to understand the procedure. Then you do your mesh.
you're absoloutly right. I'm sorry for bothering you but i'm trying this stuff for days. The problem was I had nothing to get an example. Anyway I have an example right now. Thank you for helping me again.
And I know how to do it now. I got my mistake. It was commas and so many numbers after the point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-10-14 01:34 AM
Got it to work on 2 big sites. One had LIN_ and the other had PLANE_.
When I copied the GDL in Excel I had 85000 points, so I added another column to concatenate X-Y-Z and then clicked Remove Duplicates based on this column.
Whether it's LIN_ or PLANE_ there is bound to be lots of duplicates because the start point of LIN_ or PLANE_ is likely to be the end point of another (or several others for PLANE_).
After Removing the Duplicates I ended up with 21000 points.
ArchiCAD imported it instantly and the Mesh is super fast and clean in both 3D and elevation and the file size is still small.
Thanks Nando !

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-10-14 10:46 AM
HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-10-14 11:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2017-04-13 06:04 AM
First up - where has the "Place mesh from Surveyors Data" command gone? Doesn't seem to be in the design menu in AC20 (it is in AC19).
Second - does anyone understand line 5 in Nando's description?
5- take the last 3 and place them at the end so you can have a list of X, Y and Z valuesI don't quite understand.
I do re-save as a .txt file (without step 5) but I keep getting an error message saying "The selected file is not a Text files (*.txt) file. Please select a valid Text files (*.txt) file."
Help would be appreciated, thanks.