This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
howtos:toolcoding:subroutinepackage [2013/02/20 17:23] marcus.williams |
howtos:toolcoding:subroutinepackage [2013/06/04 12:31] shona.weldon |
||
---|---|---|---|
Line 10: | Line 10: | ||
Please consider these **use at your own risk**. We are not supporting them but are just providing them as a starting point from which you can modify them as you wish! | Please consider these **use at your own risk**. We are not supporting them but are just providing them as a starting point from which you can modify them as you wish! | ||
- | **whatIf? Team members**: Please look in /models/caness/V5/subroutines for the most current subroutines and under there find TemplateExamples for the most up to date templates. | + | **whatIf? Team members**: Please look in /models/caness/V5/views/subroutines for the most current subroutines and under there find TemplateExamples for the most up to date templates. |
===== Setup of installed files ===== | ===== Setup of installed files ===== | ||
- | Once you have extracted the files there are 4 files you must copy and adjust for your current model/version | + | Once you have extracted the files there are 2 files you must copy and adjust for your current model/version |
getModelVersion_CopyAndCustomize.t | getModelVersion_CopyAndCustomize.t | ||
Line 19: | Line 19: | ||
* copy this file and re-name it to: getModelVersion.t | * copy this file and re-name it to: getModelVersion.t | ||
* Edit the file and adjust the version number | * Edit the file and adjust the version number | ||
- | |||
- | getProjectNames.t | ||
- | * This file is used to manage the names of various projects which might be running out of this model | ||
- | * For now the only thing it is used for is makeing export directories for each project and is related to the getProjectExportPath.t subroutine | ||
- | * copy this file and re-name it to: getProjectNames.t | ||
- | * edit the file and adjust the project names | ||
- | |||
- | getProjectExportPath.t | ||
- | * This subroutine will prepare for you a path with a project specific path (by reading getProjectNames.t above) for exporting data. | ||
- | * Given a root directory which you have to create it will make a sub-directory under that automatically for whatever project you choose | ||
- | * It will return a full path to that sub directory | ||
- | * Example for using it is in: views/subroutines/TemplateExamples/usingGetProjectExportPath.t | ||
informs_CopyAndCustomize.samm | informs_CopyAndCustomize.samm |