[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Howto not rotate text



On Thu, 2008-06-12 at 12:08 +0000, Kai-Martin Knaak wrote:
> On Thu, 12 Jun 2008 12:03:04 +0000, Kai-Martin Knaak wrote:
> 
> > Most of the time I don't want rotated text in my designs. However, the
> > symbols and footprints frequently need to be rotated or even flipped.
> > Currently, I need to un-rotate the text when I am done with the symbol
> > or footprint. Is there a way to avoid this tedious procedure by not
> > rotating the associated text in the first place?
> 
> Forgot to mention: This question refers to both, gschem and pcb. 

For gschem, you might want to take a look at Carlos's attribute
auto-place work. This _WILL NOT_ preserve existing attribute placement
when you alter components, since it is quite difficult to figure out how
to place the same text after rotating a component. Attributes are
positioned according to rules defined in
$PREFIX/share/gEDA/scheme/default-attrib-positions.scm

(I don't claim to understand that file very well).


Find your system-gschemrc file, and uncomment the lines:

ABOUT LINE 868:

; Comment in this to load the functions to place the attributes automatically.
(load-from-path "auto-place-attribs.scm")


ABOUT LINE 889:

(add-hook! add-component-object-hook (lambda (object)
	(autoplace-object-attributes object)) #t)
(add-hook! rotate-component-object-hook (lambda (object)
	(autoplace-object-attributes object)) #t)
(add-hook! mirror-component-object-hook (lambda (object)
	(autoplace-object-attributes object)) #t)
(add-hook! add-attribute-hook (lambda (object)
	(autoplace-object-attributes object)) #t)
(add-hook! complex-place-list-changed-hook (lambda (object)
         (autoplace-object-attributes object)) #t)



> ---<(kaimartin)>---
-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user