pcb

EPS HID: no option --as-shown anymore

Bug #1753853 reported by KaiMartin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pcb
Incomplete
Undecided
Unassigned

Bug Description

The regular print dialogue of pcb does not quite produce the output I need for my archive (black/white, four pages -- top/bottom, refdes/value, all in one PDF). So I whipped up a script to do the job for me. At its heart, pcb gets called along these lines:

$PCB -x eps \
  --action-string 'DISPLAY(NameOnPCB)' \
  --element-color '#000000' \
  --pin-color '#cccccc' \
  --layer-color-1 '#cccccc' \
  --layer-color-2 '#dddddd' \
  --layer-color-3 '#eeeeee' \
  --as-shown \
  --only-visible \
  --layer-stack "outline,comment,elements,top" \
  --eps-file $TMPDIR/toprefdes.eps \
  $PCBFILE

This worked for me since about 2011. However, since I upgraded to pcb 4.02 the application exits immediately with
          unrecognized option: --as-shown
Apparently this option was removed in some revision. The option is needed to make the --layer-color options apply to the print. Without --as-shown objects are colored like they would on screen.

I see two alternative ways to resolve:
a) reconstitute the option --as-shown
b) let the color options on the command line override the settings loaded from a color file.

---<)kaimartin(>---

Revision history for this message
Chad Parker (parker-charles) wrote :

I think that the color settings on the command line should always override the default color settings. If that's not happening, then it's definitely a bug. You shouldn't have to specify --as-shown for that to happen... I don't think that is the purpose of that option.

The --as-shown option was not removed, it was renamed --screen-layer-order in pcb 4.0.0 in order to clarify what the option is actually supposed to do.

Revision history for this message
KaiMartin (kmk-familieknaak) wrote :

Thank you for pointing me to "--screen-layer-order". Now my print script works with pcb 4.1 as intended.
Colour settings on the command line do indeed always override the default colours. However, the options --mirror and --layer-stack only apply properly if --screen-layer-order is in place. If I skip this option, the command seems to always print all available layers. Since I gave explicit b/w colour only for some layers, the print contained coloured lines. This confused me into thinking --layer-color-* does not override.

IMHO, the print HIDs should not require --screen-layer-order to make --mirror and --layer-stack work. This made me scratch my head when I assembled my print scripts.

Thank you for taking care of these bug reports,

---<)kaimartin(>---

Revision history for this message
Chad Parker (parker-charles) wrote :

Again, sorry for the delay, I didn't get subscribed. I'm not sure why... I didn't used to have to do that explicitly.

Anyway, I agree that --mirror should not require --screen-layer-order. I'm not sure exactly what the --layer-stack option is supposed to do, but I trust that you're also correct about that. Could you please file those as a new bug report, and if possible attach an example image and minimal board?

Changed in pcb:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.