The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

View only topic: Collection of Best Practices edited by the moderator. (Please post your tips into one of the topics under section II.)

Moderators: ejrolon, Barry Kelly, Karl Ottenstein, LaszloNagy, gkmethy

User avatar
By NandoMogollon
#183556
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
Attachments
Screen shot 2011-01-28 at 5.54.40 PM.png
User avatar
By Matthew Lohden
#183559
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.
User avatar
By vistasp
#183560
Matthew Lohden 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. :(
User avatar
By Karl Ottenstein
#183561
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
By ravoneldar
#183562
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.
Attachments
(49.58 KiB) Downloaded 1066 times
User avatar
By Erich
#183563
It seems to me that this needs to be copied into the reference section. What do the administrators think?
User avatar
By NandoMogollon
#183564
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
By jonyyybe
#183565
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.
Last edited by jonyyybe on Mon Jan 31, 2011 2:33 pm, edited 3 times in total.