Page 1 of 1

Export mesh in different layers

Posted: Tue Mar 20, 2018 12:45 pm
by Ben_Workman
Hello,

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.

Re: Export mesh in different layers

Posted: Tue Mar 20, 2018 11:05 pm
by escolano
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

Re: Export mesh in different layers

Posted: Wed Mar 21, 2018 4:34 pm
by Ben_Workman
Thank you for the reply.