Question

Writing TIN to .dwg

  • 2 November 2022
  • 3 replies
  • 23 views

Badge +1

Hi.

I generated a TIN using the TINGenerator transformer. I write this TIN to a DWG (real dwg). When opening the data in CIVIL 3D, it does not show as a surface.

 

Does any one know how I can write the TIN to a dwg as a surface?

 

Thanks.


3 replies

Userlevel 2
Badge +17

Hi @johsflesj​,

 

The TINSurface output of the TINGenerator is written to AutoCAD as a mesh, which does not appear to be suitable for conversion to a Civil 3D surface.

 

Instead, connect the Triangles output of the TINGenerator to a FaceReplacer to create faces from the triangles, then write the faces to AutoCAD.

 

In Civil 3D, create a new surface in the Prospector tab of the TOOLSPACE side menu. Right-click on the Definition - Drawing Objects of the new Surface, then choose Add. In the dialog that opens, set Object type to 3D Faces and check the 'Maintain edges from object' box. Select all the faces in the DWG, then accept to add them to the Surface.

 

Screen Shot 2022-11-02 at 4.07.06 PM

Badge +1

Thanks @daveatsafe​.

 

I would like to avoid manually processes in AutoCAD, if possible. My intention is to automate a workflow where writing TINs to DWG is crucial. Is there any way I can automate this process?

Userlevel 2
Badge +17

Thanks @daveatsafe​.

 

I would like to avoid manually processes in AutoCAD, if possible. My intention is to automate a workflow where writing TINs to DWG is crucial. Is there any way I can automate this process?

Perhaps an AutoCAD script (SCR)? They can be run from the command line without human intervention, and you can include the save and quit commands in the script to have them exit Civil3D automatically when done. You would need to find the commands for the TIN creation and surface conversion, though, since SCRs can't pick from the menu.

Reply