View Full Version : Determining AutoCAD screen resolutions
Terry Cadd
2006-07-31, 04:18 PM
I'm searching for a topic on determining the AutoCAD screen resolution when designing images in dialogs. If I design the images for my screen resolution of 1024x768, the images do not appear correctly on other computers using higher screen resolution such as 1152x864 or 1280x1024. Has this been discussed before?
Thanks for your help.
Terry Cadd
rkmcswain
2006-07-31, 05:01 PM
Determining the "AutoCAD" screen resolution (application or editor window?)
-or-
Determining the Windows screen resolution?
If the latter, see: http://vbnet.mvps.org/index.html?code/screen/displaysettings.htm for one solution.
Tom Beauford
2006-08-01, 07:30 PM
The system variable "screensize" will give you current viewport size in pixels (X and Y).
Terry Cadd
2006-08-02, 04:27 PM
Thanks for your tips and advice. Sorry about the delay in getting back here, as I had a project that I had to get out a.s.a.p.
I ran some test on the attached dialog image as an example to see if the Windows Screen resolution had an effect on the return of the dimx_tile and dimy_tile variables. Some Engineers prefer higher Windows Screen resolutions than others, and I was wondering why the dialog images appeared taller and shorter on some computers, and if there was something I could do in my code to adjust the image ratio based upon different Windows Screen resolutions.
To test the return of the dimx_tile and dimy_tile variables I changed my Windows Screen resolution from 1024x768 to 1600x1024 and a few other resolutions and re-ran the program in AutoCAD. The Windows Screen resolution had no effect on the return of the dimx_tile and dimy_tile variables. The dialog image appeared to fine in all cases, just taller or shorter with different Windows Screen resolutions. For now I'm not going to be concerned about it. It's up to the Engineer what Windows Screen resolution he wants to work with.
: row {
: image {
key = "BP_Image";
width = 35.92;//216 pixels
height = 13.51;//176 pixels
fixed_width = true;
fixed_height = true;
aspect_ratio = 1;
color = -2;
}
}
http://web2.airmail.net/terrycad/Images/BP-dcl.jpg
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.