[Magic-dev] Custom dstyle and cmap files
R. Timothy Edwards
tim at opencircuitdesign.com
Mon Dec 10 09:45:24 EST 2007
Dear Graham,
> I'm working on changing the colours and fill patterns for Magic. How can I
> call custom dstyle and cmap files? The only way I have found is to have local
> copies in the working directory, but this means duplicating the files.
I rewrote the code to make what you're doing easier, but I have not
tested it exhaustively, so please let me know if it doesn't work as
I describe it.
The default dstyle and cmap files are "mos.24bit.dstyle" and
"mos.24bit.std.cmap" (or, if you prefer the OpenGL interface, like
I do, it's "mos.OpenGL.dstyle" and "mos.OpenGL.std.cmap"). The
initial "mos" is significant in that it corresponds directly to the
line "styletype mos" in the techfile. Prior to changes I made to
version 7.3, changing the default would require intervention on the
command line. What I did in version 7.3 was to hold off loading the
colormap and display style files until the techfile was being read,
at which point the proper filenames would be derived from the
"styletype" line in the "styles" section.
So (theoretically) what you want to do is to use your own unique
styletype, e.g.,
styles
styletype custom
corresponding to the files:
custom.24bit.dstyle and
custom.24bit.std.cmap
If you're polite, you'll also provide the "7bit" and "OpenGL" style
files and colormaps. The load routines will look for the filenames
in "SysLibPath", which can be altered using the "path sys" command.
So instead of copying display and colormap files everywhere, you
should be able to put them in some obvious place, then copy only
a ".magicrc" file to every working directory, containing the "path
sys +<directory>" command, followed by "tech load <techfile> -noprompt".
And once again, let me know if you are not seeing the behavior as
advertised.
Regards,
Tim
+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim) | email: tim at opencircuitdesign.com |
| Open Circuit Design, Inc. | web: http://opencircuitdesign.com |
| 22815 Timber Creek Lane | phone: (301) 528-9364 |
| Clarksburg, MD 20871-4001 | cell: (240) 401-0616 |
+--------------------------------+-------------------------------------+
More information about the magic-dev
mailing list