Mail Archives: geda-help/2013/01/12/14:22:14
On Sat, 2013-01-12 at 01:15 +0200, Duncan Drennan wrote:
> > The easiest (only?) way is to hack the sources. Look in src/draw.c
> > starting with DrawEverything()
>
> I see that DrawElementName checks the HIDENAMESFLAG, but
> DrawEverything() uses the DrawLayer() function to draw the top and
> bottom silk layers for exporting.
>
> I guess one way would be to check the layer name and the HIDENAMESFLAG
> and then skip this step in DrawLayer()
You could hide the name on every element on the board (I think the
keyboard short-cut is "h"), or: apply something like the following
patch. It may not apply cleanly, as it is from a personal stack of
commits on the top of my OpenGL branches.
I have needed this before myself, as typically - on boards where I'm not
going to have a silk-screen produced, I won't go to the effort of moving
every silk annotation into the correct place.
commit 9db0771b89bf5bc854dd0ecada544502e4e88517
Author: Peter Clifton <pcjc2 AT cam DOT ac DOT uk>
Date: Thu Nov 15 01:46:48 2012 +0000
Comment out check for GUI HID when considering hidenames
Yes - I want to hide them for a print!
diff --git a/src/draw.c b/src/draw.c
index 96e2473..8f91ba6 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -184,7 +184,7 @@ void ghid_set_lock_effects (hidGC gc, AnyObjectType *object);
static void
draw_element_name (ElementType *element)
{
- if ((TEST_FLAG (HIDENAMESFLAG, PCB) && gui->gui) ||
+ if ((TEST_FLAG (HIDENAMESFLAG, PCB) /*&& gui->gui*/) ||
TEST_FLAG (HIDENAMEFLAG, element))
return;
ghid_set_lock_effects (Output.fgGC, (AnyObjectType *)element);
> /* draw the layer text on screen */
> r_search (Layer->text_tree, screen, NULL, text_callback, Layer);
>
> but that doesn't seem very elegant....too much of a special case in a
> generic function.
--
Peter Clifton <peter DOT clifton AT clifton-electronics DOT co DOT uk>
Clifton Electronics
- Raw text -