You can utilize Allegro variable substitution.
- Record a starting script
- edit the file to add variable substitutioncapability
Example if you want dxf output file to be variable in your just recorded script you will see a line the script like:
FORM dxf_out dxffile foo
Change this to take advantage of variable substitution:
FORM dxf_out dxffile $mydxfile
Now you can either call this script from another script or take advantage of command chaining to set the variable
"set mydxffile foo; replay myscript"
If you worry about the script being called without the variable being set add before the variable an ifnvar line to defauly the variable to a default value:
ifnvar mydxfile "set mydxfile foo"