Export mesh in different layers

Moderator: GiD Team

Posts: 2
Joined: Tue Mar 20, 2018 12:03 pm

Export mesh in different layers

Postby Ben_Workman » Tue Mar 20, 2018 12:45 pm


I started using GID recently and i found a difficulty that i will try to expose here in the forum.
I'm exporting the geometry from .dxf files, separately by blocks, which i assign in different layers in GID. And then I create the surfaces and volumes. Then I collapse the model, in order to have common lines and nodes, and perform a structured mesh and compatible within the different blocks.
My problem is when I'm exporting the model using a .bas file, where I loop the nodes and elements only for each layer (in order to have different files for each group), it don't write all the nodes in the interfaces (the nodes are not duplicated), and some are in one layer and others in another layer.
Which different strategy could I use in order to have the same results (to have the mesh separately in different export files)?

Thank you.
User avatar
Posts: 1699
Joined: Thu Sep 18, 2014 3:31 pm

Re: Export mesh in different layers

Postby escolano » Tue Mar 20, 2018 11:05 pm

for example you can have more control exporting the data from a Tcl procedure instead of using simple .bas templates

At Tcl level you can interrogate GiD to have the data you want, manipulate as you want with Tcl lists, arrays, ... and export what you want to files.

or you can simply manually send to the layer you want to export all dependent entities (e.g. all nodes of a selection of elements)
then you won't have the shared nodes missing.
do to it simply select the destination layer, click the icon that send entities to this layer with the 'Also lower entities' option enabled (default)
and select the same elements of the layer
(in screen or written in the lower line Layer:<layername>)
then the nodes of these elements will be also in this layer
Posts: 2
Joined: Tue Mar 20, 2018 12:03 pm

Re: Export mesh in different layers

Postby Ben_Workman » Wed Mar 21, 2018 4:34 pm

Thank you for the reply.

Return to “Import/Export”

Who is online

Users browsing this forum: No registered users and 2 guests