We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Modeling
About Archicad's design tools, element connections, modeling concepts, etc.

From DWG to MESH... a trick

NandoMogollon
Expert
Hi,
You all may be familiar with the AC14 new option "Place Mesh From Surveyors Data"...

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.

There is a workaround to use the "mesh from surveyors" option with that dwg file:
  • 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 the LIN_ 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
now you can use the "mesh from surveyors" option by selecting the txt file.

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

Screen shot 2011-01-28 at 5.54.40 PM.png
Nando Mogollon
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
15 REPLIES 15
Anonymous
Not applicable
Cool. I'll have to add this to my bag of tricks. Thanks.
Anonymous
Not applicable
Could you explain it a little bit more? I couldn't understand.
Anonymous
Not applicable
ravoneldar wrote:
Could you explain it a little bit more? I couldn't understand.
What he is doing is editing the text of the 3D script to convert lines into XYZ point coordinates. If your library part script has LIN_ statements in it (which it probably will if it is not binary) these will each have six arguments (the XYZ coordinates for the start and end points). He is then copy/pasting the text into a text editor and then exporting to Excel to extract just the end point XYZ values as an ordered list. This can then be converted to a mesh in AC14.

This might work for your Google Earth terrain if the GDL script has the stuff you need.

BTW: To open the library part the easiest way is to select it and press command/control + option/alt + O (that's the letter O not zero). You can also find it under the file menu.
vistasp
Advisor
Matthew wrote:
This might work for your Google Earth terrain if the GDL script has the stuff you need.
A GE snapshot that I opened has a bunch of TEVE statements which I suppose should give the coordinates in x y z. Also noticed that the TEVE was preceded by different MUL for all three. Why does that happen I wonder.

Don't have 14 so can't bring it back into AC as a mesh to check if it works.
= v i s t a s p =
bT Square Peg
https://archicadstuff.blogspot.com
https://www.btsquarepeg.com
| AC 9-27 INT | Win11 | Ryzen 5700 | 32 GB | RTX 3050 |
Karl Ottenstein
Moderator
Great trick/tip, Nando!

In case it is not obvious to folks, this still does require that the DWG contain a 3D terrain representation. If your surveyor only sends a 2D DWG (as 2D site contours), you won't have any elevation data.

Cheers,
Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
Could you try it on this file? I really didn't understand what I should do. If you can help me, I'll be so appreciated.
Erich
Booster
It seems to me that this needs to be copied into the reference section. What do the administrators think?
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
NandoMogollon
Expert
Hi all,
I'm glad you all find it useful ! (not bad for friday problem-solving-thinking)

And yes, I have to clarify that contour lines on real height are required in the original DWG.

I'll do a graphic tutorial for my office wich I expect to publish soon.

Best regards

Nando
Nando Mogollon
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
Anonymous
Not applicable
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?
3- use find & replace to replace the LIN_ text with a space - same ????
4- at this moment you will have 6 columns - remaning to be seen...
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 - ?????

later edit: Matthew thnaks, but i will wait to se the tutorial, because i do not understand many things.