User Tools

Site Tools


tutorials:xparametric-model

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
tutorials:xparametric-model [2025/01/17 09:36] Timtutorials:xparametric-model [2025/06/03 17:07] (current) tim2
Line 2: Line 2:
  
  
-It is possible to forward parameters from the command line to GroIMP using additional parameters beginning with an capital X. +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:
tutorials/xparametric-model.txt · Last modified: 2025/06/03 17:07 by tim2