I looked for a way to embed conditional strings into the label for library objects. For example, if a parameter is not null then print a string: << ... /@ac_flag () ... >> begingate
mark ... { () @ac_flag ne {(AC)}if } ... label Or something like that. I looked in file.c and it appears that there isn't support for embedded PS in the mark macro. I tried a bunch of different ways to wiggle this in. What I'm trying to do is define an independent voltage source that can optionally have the AC and DC parameters. By default these are not defined, but if they are, then include that information in the label. This is only for aesthetic purposes. What really matters is getting these things into the spice card if needed, and I've figured that out: mark (\)) @sin_phase ( ) @sin_theta ( ) @sin_td ( ) @sin_freq ( ) @sin_va ( ) @sin_vo ( SIN\() @ac_phase ( ) @ac_mag ( ) @ac_flag ( ) @dc_value ( ) @dc_type ( ) @dc_flag ( ) ( %ps.p %ps.m ) @index (spice:V) {/Times-Roman cf} ctmk 20 0.000 1.000 -336 -160 infolabel Thanks. _______________________________________________ Xcircuit-dev mailing list Xcircuit-dev@opencircuitdesign.com http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev