Extract points from 3D face

Anonymous

Extract points from 3D face

Anonymous
Not applicable

Dear community,

 

I have a problem where a TIN (object class 3D face) is given(see attached) and my aim is 1. to extract the points at the vertices of the triangles, 2. remove the duplicates and 3. create a .txt file containing the X,Y,Z coordinates of the remaining points. Which do you think is the best command sequence to do that using AutoCAD Map 3D 2013;

0 Likes
Reply
Accepted solutions (2)
10,673 Views
12 Replies
Replies (12)

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

create a new drawing, use command _ADEDRAWINGS to attach your drawings with the 3D-Faces.

Next use command _ADEQUERY to create a report, that report gathers the data

X1,Y1,Z1

X2,Y2,Z2

X3,Y3,Z3

X4,Y4,Z4

 

After you got the ASCII-file from that you should continue in database like functionality to get the colums for value 2, 3 and 4 as additional records into columns X1,Y1,Z1 and requery with DISTINCT to get only the first of the doubled values.

 

HTH, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2025
------------------------------------------------------------------------------------

(not an Autodesk consultant)

Anonymous
Not applicable

Hi Alfred,

 

thanks for your time! After creating the ASCII-file, I think lost you somewhere along the line but I 'll try to figure it out.

 

Stefanos

0 Likes

antoniovinci
Advisor
Advisor
Accepted solution

Another way is the following one:

  1. explode your Tin up to lines
  2. save as DXF
  3. run the free Dxf2xyz to get 304048 redundant triples
  4. run the free Notetab to automatically remove the duplicates, getting 19114 unique triples (check the attachment)

καλησπέρα !

Anonymous
Not applicable

Hi Antonio,

 

well at first I tried to explode the 3d faces but this object class cannot be exploded. After, searching in the forum I discovered that I could explode the 3d faces only If I had converted them in regions or surfaces. The problem there is that out of the approximately 30000 3d faces,  8000 cannot be converted to regions and the message on the command line states that : "1 closed, degenerate or unsupported object rejected". So, I cannot proceed with the other steps..

 

Grazie per l'attenzione

 

0 Likes

antoniovinci
Advisor
Advisor

stepolitis wrote:
this object class cannot be exploded

I used this one, sir.

braudpat
Mentor
Mentor
Accepted solution

 

Hello

 

To complete the good answer of Antonio & Alfred sometimes on 3DFaces, I need to get 3D Points !

So I use a Lisp routine which draws a 3DPoint at each 3DFace vertex !

Don't forget that you will get many duplicate 3D Points ...

 

With the tool "_DataExtraction" you can easily extract the 3D Point Info (XYZ) to Excel (.CSV) or to .TXT

and then please eliminate/purge duplicate points ...

 

Warning : Please run the routine "3DF_to_3DPoint" into the GCS not into an UCS !!

 

Happy Sunday, Patrice

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Anonymous
Not applicable

Well thank you Patrice for your great advice! I think I am going to use map cleanup first for removing the duplicates.

0 Likes

braudpat
Mentor
Mentor

 

Hello

 

1) The advantage to use the Lisp routine (to get 3D Points)  is that you don't need MAP

 

2) To run the command MAPCLEAN (a powerful feature of MAP) you need an AutoCAD MAP (or AutoCAD CIVIL) ...

but to erase duplicate Points, you can use the OVERKILL command (it's pure AutoCAD coming from the Express Tools) 

 

Happy Week, Regards, Patrice

 

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Anonymous
Not applicable

I tried to enter the command _ADEDRAWINGS and Autocad came back with unknown command.  I have Autocad Lt. do I need the full autocad?

0 Likes

АлексЮстасу
Advisor
Advisor

This command exists only in AutoCAD Map 3D and Civil 3D.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes

h.youssefKLBHF
Observer
Observer

where should i write the commands??

0 Likes

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> where should i write the commands?

Into the AutoCAD command line.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2025
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes