Bugs item #3162395, was opened at 2011-01-19 23:19 Message generated for change (Comment added) made by gustep12 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=409538&aid=3162395&group_id=33921
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Gerber Parser Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Sebastian (gustep12) Assigned to: Julian Lamb (thepurlieu) Summary: gerv-2.5.0 aperture macro problem Initial Comment: I had some gerber files here which were displayed incorrectly in v2.5.0 and also v2.4.0. I spent some hours trying to figure out where the problem occurred, until I determined that it must be related to the following aperture macro statement: %AMROTRECT*21,1,$1,$2,0,0,$3*% This macro is apparently used to define "rotated rectangle" apertures like this: %ADD21ROTRECT,0.087X0.087X270*% %ADD26ROTRECT,0.084X0.084X180*% Any aperture based on this macro was not parsed correctly. I know that rotations occur only at 90 degree intervals in the file in question, so I was able to fix the RS-274X file by converting the offending (rotated rectangle) statement to a normal rectangle macro like this, by swapping the width for the height. This works for 90 and 270 degree rotations, while for 180 degree rotated rectangles I just converted them to normal rectangles without swapping X and Y: %ADD21R0.087X0.087*% %ADD26R0.084X0.084*% However, a better fix would be to ensure that the macro in question works as intended to begin with... Just trying to be helpful. Thanks very much for releasing v2.5.0! Sebastian ---------------------------------------------------------------------- Comment By: Sebastian (gustep12) Date: 2011-01-23 18:05 Message: Oh, and I am using the Windows version. ---------------------------------------------------------------------- Comment By: Sebastian (gustep12) Date: 2011-01-23 18:03 Message: Hi Julian, I investigated a bit further, and the error depends on the rendering mode. In "fast" rendering modes everything looks o.k., but in "normal" and HQ modes the file which I attached looks messed up. See the following two screenshots: gerbv250problem_fastrender.png gerbv250problem_normalrender.png Sebastian ---------------------------------------------------------------------- Comment By: Julian Lamb (thepurlieu) Date: 2011-01-20 06:14 Message: Sebastian, Thanks for the detailed report. Unfortunately, I can't seem to see the problem on my machine. Could you possibly attach a screenshot zooming in on the erroneous rendering portion? Also, are you using the Windows version or Unix version? Cheers-- Julian ---------------------------------------------------------------------- Comment By: Sebastian (gustep12) Date: 2011-01-20 01:09 Message: P.S. Here are some syntax details for the RS-274X macros: G04 - Example Circle: 1 %AM<Name>*1,<Exposure>,<Diameter>,<Xcenter>,<Ycenter>*% G04 - Example Vector Line: 2 or 20* %AM<Name>*2,<Exposure>,<Width>,<Xstart>,<Ystart>,<Xend>,<Yend>,<DegreesRotationAroundCenter>*% G04 - Example Rotated Box Centered: 21* %AM<Name>*21,<Exposure>,<Width>,<Height>,<Xcenter>,<Ycenter>,<DegreesRotationAroundCenter>*% G04 - Example Rotated Box Lower Left Corner: 22* %AM<Name>*22,<Exposure>,<Width>,<Height>,<XLowerLeft>,<YLowerLeft>,<DegreesRotationAroundCenter>*% G04 - Example Polyline: 4* %AM<Name>*4,<Exposure>,<# of points>,<X1>,<Y1>,<X2>,<Y2>,...,<Xn>,<Yn>,<DegreesRotationAroundStartpoint>*% G04 - Example Regular Polygon: 5; if rotation = 0, one vertex is towards the right at 3 o' clock* %AM<Name>*5,<Exposure>,<# of sides>,<Xcenter>,<Ycenter>,<Diameter>,<DegreesRotationAroundCenter>*% G04 - Example Moire Bullseye: 6* %AM<Name>*6,<Xcenter>,<Ycenter>,<Diameter>,<CircleWidth>,<GapWidth>,<# of circles>,<CrossHairWidth>,<CrossHairLength>,<DegreesRotationAroundCenter>*% G04 - Example Thermal Relief: 7* %AM<Name>*7,<Xcenter>,<Ycenter>,<OuterDiameter>,<InnerDiameter>,<GapWidth>,<DegreesRotationAroundCenter>*% G04 For Addition details see http://www.ucamco.com/public/Gerber_RS-274X_Format_Specification_201012.pdf Pages 16 - 21 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=409538&aid=3162395&group_id=33921 ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Gerbv-devel mailing list Gerbv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gerbv-devel