mantri-govind / diy-layout-creator

Automatically exported from code.google.com/p/diy-layout-creator
0 stars 0 forks source link

Components "squished" together upon reload. #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Not sure if this is a general problem, or a problem trying to read 3.0.6 files 
in 3.0.7.

What happens is that when a file is loaded, the components are squished much 
more closely together than when it was saved.  I think perhaps it has something 
to do with user defined grid spacing being ignored at some point, perhaps when 
file is saved or reloaded.

Attached is a file that appears squished when reloaded. Grid spacing is 0.125" 

Also attached is a png of the same circuit before it was squished.

Original issue reported on code.google.com by pmfawc...@gmail.com on 27 Feb 2011 at 4:13

Attachments:

GoogleCodeExporter commented 9 years ago
I think I know what's going on here. Between the two versions I increased 
resolution from 92 (or so) to 150 pixels per inch. DIY files reference 
coordinates in pixels, so now it appears like everything is squished down. I 
can't do anything about it automatically because there's no way to tell if it's 
created with version 6 or 7, but if you have a lot of files created with 6 I 
could make a quick utility that multiplies each coordinate with a factor of 
150/92.
Cheers

Original comment by bancika@gmail.com on 27 Feb 2011 at 9:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hmm.. well, another good reason for including version metadata in saved files, 
I guess. It's probably not to late to add this, and have your program check.. 
if the field is missing, assume it's pre 3.0.8 anyway.

I really haven't done that much, so for me a converter isn't necessary... I was 
waiting on tube sockets to start my next big project...

Original comment by pmfawc...@gmail.com on 27 Feb 2011 at 5:48

GoogleCodeExporter commented 9 years ago
I added version info and changed coordinates to be stored in inches rather than 
pixels, to avoid problems like this in the future. Also, that leaves 
possibility of having custom screen resolution later.
Cheers

Original comment by bancika@gmail.com on 28 Feb 2011 at 10:54