- This repository is a basic example for GiD problemtype developers. Download GiD from the website Download
- You can get up to 3 free 1 month GiD license
- Create a folder called 'cmas2d_customlib.gid'
- Clone this repository inside
mkdir cmas2d_customlib.gid
cd cmas2d_customlib.gid
git clone https://github.com/jginternational/cmas2d-customlib.git
- Create a link to the project inside the GiD problemtype directory
- Windows: A basic shortchut is enough
- Open GiD and go to Data -> Problemtype -> cmas2d_customlib
- Fork this repository
- Follow the Basic rules
- Follow the customization course
- Read the documentation
A GiD problemtype must have a name, and it's mandatory files must have this name.
In this example, the name is 'cmas2d_customlib', so all the files will have this name.
- cmas2d_customlib.xml
- cmas2d_customlib.tcl
- cmas2d_customlib_default.spd
- cmas2d_customlib.win.bat
- cmas2d_customlib.unix.bat
This file contains basic information about the problemtype, such as the version number
This is the main tcl file. Here you can:
- Implement GiD Events
- Load your own tcl files and namespaces
- Implement your custom tcl/tk windows
This file defines the data tree shown in the left side of the GiD window.
This file must follow the CustomLib rules. (The web documentation is hard to follow. It's easier to read the 4.3 section of the PDF version)
This is the launch script that GiD will use to run your executable. If you want your problemtype to run on windows and unix systems, you'll need a bat file for each system.