www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/02/03/22:39:50

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: geda-user AT delorie DOT com
From: Kai-Martin Knaak <knaak AT iqo DOT uni-hannover DOT de>
Subject: Re: [geda-user] Print layout hangs - followup
Date: Wed, 04 Feb 2015 04:45:22 +0100
Organization: Institut =?UTF-8?B?ZsO8cg==?= Quantenoptik
Lines: 62
Message-ID: <mas46q$h60$1@ger.gmane.org>
References: <54C2D537 DOT 1050804 AT sbcglobal DOT net> <54D1566F DOT 6060707 AT sbcglobal DOT net>
Mime-Version: 1.0
X-Complaints-To: usenet AT ger DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: 130.75.103.107
User-Agent: KNode/4.14.1
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t143cLGf025417
Reply-To: geda-user AT delorie DOT com

Girvin Herr wrote:

> Below is a snippet of the .pcb file definition for one of the instances
> of my terminal footprint.

I pasted the snippet into a footprint, inserted it in a layout and tried 
to print. The postscript output failed exactly as you reported.

 
> Element["" "E-200x095.fp" "E4" "unknown" 100000 30000 15000 -5000 0 100
> ""]
> 
> (
> 
>      Pin[0 0 20000 2000 20600 9500 "1" "1" ""]
> 
>      ElementArc [0 0 11000 11000 270 90 1000]
> 
>      ElementArc [0 0 11000 11000 0 90 1000]
> 
>      ElementArc [0 0 11000 11000 90 90 1000]
> 
>      ElementArc [11000 0 0 0 0 90 1000]
                           ^^^
This statement triggers the failure. If I remove it, the layout prints 
fine. The third and fourth parameter of ElementArc represent the height 
and width of the arc. 
	ElementArc [X Y Width Height StartAngle DeltaAngle Thickness]
 (from http://pcb.geda-project.org/pcb-cvs/pcb.html#ElementArc-syntax )

Width and height at exactly 0 probably results in some kind of numerical 
exception. Think division by zero...

The arc statement can represent a full circle. Just put 360 as DeltaAngle 
parameter:
      ElementArc [0 0 11000 11000 0 360 1000]

By the way, I very much recommend Bert Timmermanns patch for improved arc 
creation in the GUI. It provides support for angles other than 90°. Would 
be happy to see this patch applied to the main branch of pcb.

---<)kaimartin(>---
-- 
Kai-Martin Knaak                                  tel: +49-511-762-2895
Universität Hannover, Inst. für Quantenoptik      fax: +49-511-762-2211	
Welfengarten 1, 30167 Hannover           http://www.iqo.uni-hannover.de
GPG key:    http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019