Author Topic: Is it possible to determine the visible drawing units?  (Read 1349 times)

0 Members and 1 Guest are viewing this topic.

huiz

  • Swamp Rat
  • Posts: 919
  • Certified Prof C3D
Is it possible to determine the visible drawing units?
« on: May 17, 2012, 10:51:10 AM »
There is a setting in AutoCAD named Screensize which gives the size of the visible drawing area in screen pixels. Is it also possible to find the same window but then in Drawing Units?

I need to draw something in the drawing at 10% of the visible area, but 10% of the screen in pixels is not the same as 10% of the drawing units.
The conclusion is justified that the initialization of the development of critical subsystem optimizes the probability of success to the development of the technical behavior over a given period.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Is it possible to determine the visible drawing units?
« Reply #1 on: May 17, 2012, 03:40:37 PM »

Have a look at VIEWCTR and VIEWSIZE .. may help
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

huiz

  • Swamp Rat
  • Posts: 919
  • Certified Prof C3D
Re: Is it possible to determine the visible drawing units?
« Reply #2 on: May 17, 2012, 04:04:41 PM »
Thank you Kerry, that helped me a lot!  :)

VIEWSIZE is what I need now, but VIEWCTR is also a very interesting one to keep in mind.
The conclusion is justified that the initialization of the development of critical subsystem optimizes the probability of success to the development of the technical behavior over a given period.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8820
  • AKA Daniel
Re: Is it possible to determine the visible drawing units?
« Reply #3 on: May 17, 2012, 08:37:19 PM »
Also look at these method for translating pixel coordinates to/from Points
Editor.PointToWorld
Editor.PointToScreen