Is it possible to pass variables to script from inside SKILL function,
And then replay the script??
You can use the output of function axlUIPrompt to store in your variable.
In reply to Pawandeep:
I want to record script and then replay it but with another value.
For example i want to export DXF file so i go to : File -> Script -> Record
I record the script filling the form window with name "First".
Now i want to export DXF file named "Second" using the same script,
So i want the name "Second" to be filled instead of "First".
Is it possible to do so?
In reply to Kadar:
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"
In reply to fxffxf:
You've understood my question in exact way!!!
Crystal clear answer!!!!
Huge thank YOU !!!