User Tools

Site Tools


tutorials:xparametric-model

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tutorials:xparametric-model [2024/05/03 16:13] – created TimObtutorials:xparametric-model [2025/06/03 17:07] (current) tim2
Line 1: Line 1:
-It is possible to forward parameters from the command line to GroIMP using additional parameters beginning with an capital X. +====== Forward parameters from the command line to a project ====== 
-This parameter can than be accessed by all models opened.+ 
 + 
 +It is possible to forward parameters from the command line to GroIMP using additional parameters beginning with an capital X.This parameters need to be added before other specifications such as --headless or the path to a model
 +This parameter can than be accessed by all models opened. 
 For a model that is suppose to greed the user this additional parameter could be the name, therefore the command line parameter would be ''-Xname="gaetan"''. For a model that is suppose to greed the user this additional parameter could be the name, therefore the command line parameter would be ''-Xname="gaetan"''.
 To access this parameter than in GroIMP the function getProperty of the class Main needs to be called: To access this parameter than in GroIMP the function getProperty of the class Main needs to be called:
Line 13: Line 16:
 </code>  </code> 
  
-This works with multiple parameters and is especially useful in the headless mode:+This works with multiple parameters and is especially useful in the [[user-guide:additional_interfaces:headless|headless mode]]:
  
 <code java> <code java>
Line 32: Line 35:
 } }
 </code> </code>
 +
 +This provides the possibility to forward knowledge/information or the path to specific configuration to a GroIMP model without changing the model.
 +
 + 
tutorials/xparametric-model.1714745630.txt.gz · Last modified: 2024/05/03 16:13 by TimOb