User Tools

Site Tools


02_user_tutorials:13_rgg:99_xparametric-model

Differences

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

Link to this comparison view

Next revision
Previous revision
02_user_tutorials:13_rgg:99_xparametric-model [2025/12/12 12:04] – created groimp02_user_tutorials:13_rgg:99_xparametric-model [2025/12/12 12:25] (current) – [Forward parameters from the command line to a project] groimp
Line 3: Line 3:
  
 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. 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. +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 16: Line 20:
 </code>  </code> 
  
-This works with multiple parameters and is especially useful in the [[user-guide:additional_interfaces:headless|headless mode]]:+This works with multiple parameters and is especially useful in the [[01_user_documentation:10_additional_interfaces:headless|headless mode]]:
  
 <code java> <code java>
02_user_tutorials/13_rgg/99_xparametric-model.1765537448.txt.gz · Last modified: 2025/12/12 12:04 by groimp