How do I store a user dictionary in one file and load the same dictionary at the beginning of another file? This should give the same result as if the dictionary was defined at the top of the same file.
More explicitely: I have written a global dictionary ObjDict, containing several variable and procedure definitions.
!%PS-Adobe-3.0 EPSF-3.0
/ObjDict 30 dict def
ObjDict begin
...
/particle
{
/posy exch def
/posx exch def
...
} bind def
...
end %ObjDict
%%EOF
Now I want to call the procedure particle with the corresponding positions posy posx from a different file, that I want to be created by my simulation program. eg:
!%PS-Adobe-3.0 EPSF-3.0
ObjDict begin
0.5 0.5 particle
0.1 0.0 particle
0.3 0.3 particle
end %ObjDict
%%EOF
Is there a simple way to let the second file know about the dictionary ObjDict defined in the first file? Thanks in advance!