Hi Joe
There is a way with g file.. after all its just a text file..
If you a complete database of the specific tag location of the
individual template to be inserted..
I think it should be possible...
Then you would have to identify the g file command to use in-order
insert new pre-configured g file template..
But it is too much hassle compared to manually copy paste directly into
the un-configured graphics..
The only advantage of sed command method is that if you are duplicating
the whole graphics files ( and icc print files too ) with some preset
fixed format..
We have tested it in our previous project..
God knows best..
Best regards..
Hizamri
On 8/31/2016 4:12 AM, Currano, Joe wrote:
Is there a way to automatically insert all the generated objects back into
one fdf file (in desired locations...) or do I have to copy and paste each
one?
-Joe
On Aug 28, 2016, at 10:38 PM, "Hizamri Johari" <hizamri@xxxxxxxxxxxxx> wrote:
Dear Mr Joe
Create a template.fdf object consisting a dummy connection..
Convert to template.g file
make a list file with fields to replace the dummy connection..
Use shell script combining sed ( stream editor command )
the example below will create new individual.fdf files to be imported in
your display file ( method suggested by Sifu Alex Johnson )
God knows best..
Best regards..
Hizamri
Eg of shell script :
#!/bin/ksh
cat mytag.lst.txt | while read x1 x2 x3 x4; do
{
print "s?AAAA?$x1?g"
print "s?BBBB:CCCC?$x2?g"
print "s?DDDD?$x3?g"
print "s?EEEEE?$x4?g"
} > $x1.sed.txt
sed -f $x1.sed.txt template.g > $x1.g
/usr/fox/wp/bin/tools/g_fdf $x1.g
done
Eg of mytag.lst.txt :
PZS091 WLPC_ROP:PZS_091 PE 091
PZS093 WLPC_ROP:PZS_093 PE 093
PZS094 WLPC_ROP:PZS_094 LZHH 094
PZS095 WLPC_ROP:PZS_095 PEH 095