GiD - The personal pre and post processor

Tcl plug-in

If a file with extension .tcl is located inside the GiD 'plugins' folder, with the same name as the folder containing it, then it is automatically sourced when starting GiD.

To avoid source some unwanted tcl file is is also required the existence of an XML file with the same name as the folder and .xml extension, and a syntax like this:

<InfoPlugin version="1.0">
  <Program>
    <Name>Collada</Name>
    <Version>0.1</Version>
    <MinimumGiDVersion>14.1.8d</MinimumGiDVersion>
    <Description>GiD plugin to import Collada .dae files</Description>    
    <NewsInVersion version="0.1" date="2019-11-01">
      * First version import triangles mesh with texture
    </NewsInVersion>
  </Program>
</InfoPlugin>


This allow to do what the developer want, with Tcl language, e.g. change menus, source other Tcl files or load a 'Tcl loadable library' that extend the Tcl language with new commands implemented at C level.


To know how to create a 'Tcl loadable library' some Tcl book must be read.


See chapter about 'C Programming for Tcl' of
"Practical Programming in Tcl and Tk" by Brent Welch, Ken Jones, and Jeff Hobbs at http://www.beedub.com/book

COPYRIGHT © 2022 · GID · CIMNE