Collaboration with other software
About model and data exchange with 3rd party solutions: Revit, Solibri, dRofus, Bluebeam, structural analysis solutions, and IFC, BCF and DXF/DWG-based exchange, etc.

Mesh from DWG survey with lines as Z Values

johanSR
Booster

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


Front View - Survey.jpgPlan View - Survey.jpg
6 REPLIES 6
Barry Kelly
Moderator

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.

One of the forum moderators.
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
johanSR
Booster

Hi Barry.
That's exactly what I'm looking for... How to create the .txt or .xyz files from the autocad file...

Screenshot 2025-01-21 113900.png

johanSR
Booster

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.

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.

One of the forum moderators.
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
Lingwisyer
Guru

Here is a thread regarding an Autolisp that converts lines to points, and here is one about xyz files.

AC22-28 AUS 3001Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Barry Kelly
Moderator

If the DWG contains 3D information, it can be opened as an object ...

 

https://community.graphisoft.com/t5/Collaboration-with-other/dwg-to-3D-mesh/m-p/181484/highlight/tru...

 

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.

One of the forum moderators.
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

Setup info provided by author