Mesh from DWG survey with lines as Z Values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2025-01-21 10:30 AM
Hi all.
I am trying to create an automatic mesh from a DWG file.
The DWG have contour lines with Z Values to each node/point on the lines. Is there anyway to create a mesh from these files?
Operating system used: Windows 11

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2025-01-21 10:35 AM
You need the X, Y & Z co-ordinates, which I believe you can get from the DWG file (not that I have tried, but I recall reading about it in another post).
You can then use the option to 'Place mesh from surveys data' to create a mesh from the text file containing the co-ordinates.
But the mesh will not automatically generate contour lines.
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2025-01-21
10:40 AM
- last edited on
‎2025-01-23
03:08 PM
by
Laszlo Nagy
Hi Barry.
That's exactly what I'm looking for... How to create the .txt or .xyz files from the autocad file...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2025-01-21 02:04 PM
There is a way to create points from lines in Autocad, but it's the same manual input you would need from Archicad...
You have to select each line seperately and do a point exercise. I couldn't find a way to select all the lines and create points on all at the same time.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2025-01-21 02:07 PM
If you can make it into a dxf file first, this online converter should work (haven't tried it).
https://imagetostl.com/convert/file/dxf/to/xyz
Alternatively, there's also this app:
https://www.guthcad.com/dxf2xyz.htm
bT Square Peg
https://archicadstuff.blogspot.com
https://www.btsquarepeg.com
| AC INT | Win11 | Ryzen 5700 | 32 GB | RTX 3050 |

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2025-01-22 01:35 AM
I thought there was some way to read the XYZ info from the DWG.
I could be wrong, it is not something I have ever had to do.
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2025-01-22 02:49 AM
Here is a thread regarding an Autolisp that converts lines to points, and here is one about xyz files.
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2025-01-22 03:52 AM
If the DWG contains 3D information, it can be opened as an object ...
I think this is the post I was thinking of where you can then open the script for that object and then extract the XYZ information.
As I said, I have never done this.
https://community.graphisoft.com/t5/Modeling/From-DWG-to-MESH-a-trick/m-p/167437?p=183356
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11