LEADTOOLS Support
General
General Questions
HPGL and Gerber files incorrect in size.
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, October 17, 2007 6:37:50 AM(UTC)
Groups: Registered
Posts: 13
When enumeration hpgl files in LeadTools15, when the LineDescr is returned during the enumeration ( or any object description ) , the coordinates of the returned objects are not converted in pel's or any unit of measure I can figure. IF loading an hpgl file of a simple box, ( 4000 x 4000 in size in hpgl units which is 100mm by 100mms) , the enumerator shows a size of 1,181.3349 x 1,181.3349 . So the unit of conversiona appears to be .29533725 units per pel? An HPGL unit though is always .025mm per unit, Is there any way for me to know or set what this scale is during enumeration?
I include a simple 100x100mm box file..
Thanks
Art
#2
Posted
:
Thursday, October 18, 2007 12:34:28 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
In general, dimensions in our
vector toolkit do not have specific units such as mm or inch. We only load the
values in correct proportions to other dimensions in the same file.
However, I will try to explain
where the scaling factor came from.
When loading HPGL files, our
vector engine looks for a scale factor stored in the file, or paper size
defined in the file itself, and decides based on these values how to scale the
resulting vector objects. If neither exists as is the case with your small
sample file, a default scaling factor of 3.386 is used.
My guess is that this value
corresponds to:
(25.4 mm per inch)/( 0.025 mm per unit) / 300
#3
Posted
:
Friday, October 19, 2007 6:09:10 PM(UTC)
Groups: Registered
Posts: 13
Hi:
Thanks, that helped. All is well now..
Art
LEADTOOLS Support
General
General Questions
HPGL and Gerber files incorrect in size.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.