Hi all,
I'm trying to run an ulp after eagle has started and loaded a project.
I what to use this ulp to check the status of the loaded files in
regard of RO flags, VCS locking and some other eagle related settings.
Using the -C command line option looked like the right way to go.
But using the -C option prevents eagle to write to eaglerc.usr.
So if I want normal operation regarding eaglerc.usr, I can't use the
-C option (unless someone knows a way to work around the eaglerc.usr
write block).
I then tried to use the -S command line option to start my ulp via a
intermediat script. At first glance that seamed to work, but only so
long as I didn't use an actual project.
eagle -S redirect.scr dummy.sch
(where dummy.sch doesn't exist yet) works.
As does reopening an allready loaded file via the file/open recent
menu.
But reopening a project via eagle.epf does not run the script.
So it does seem, the -S command line option is similar to -U as it
allows to tell eagle to use an alternative to eagle.src which is only
run when a new file (schematic, board, library) is loaded into an
editor. Reopening a project does not count as new here.
So -S isn't an option either.
I could perhaps use a wrapper batch around eagle to do some of what I
want to accomplish, but then I can't use a dlgDialog to show the
results and do the eagle related stuff.
--
Lorenz (using eagle 6.6.0 on win7-64 professional SP1)