Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, October 17, 2007 6:42:50 AM(UTC)
ArtFenerty

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
File Attachment(s):
100mmbox.zip (1kb) downloaded 23 time(s).
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, October 18, 2007 12:39:28 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 1 time(s) in 1 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:14:10 PM(UTC)
ArtFenerty

Groups: Registered
Posts: 13


Hi:

Thanks, that helped. All is well now..

Art
 
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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.156 seconds.