Author Topic: viewport dxf codes  (Read 3365 times)

0 Members and 1 Guest are viewing this topic.

Amsterdammed

  • Guest
viewport dxf codes
« on: February 17, 2006, 07:31:42 AM »
Morning Gentlemen,

I wonder in what dxf code i can find the zoom factor of a viewport. None i found makes sense  :-o

Thanks in Advance,

Bernd

whdjr

  • Guest
Re: viewport dxf codes
« Reply #1 on: February 17, 2006, 08:29:14 AM »
Quote from: AutoCad 2006 Help File
Note The ZOOM XP factor is calculated with the following formula: group_41 / group_45 (or pspace_height / mspace_height).

41    Height in paper space units
 
45    View height (in model space units)
 

HTHs,

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: viewport dxf codes
« Reply #2 on: February 17, 2006, 04:42:10 PM »
Not DXF but.
http://www.theswamp.org/forum/index.php?topic=2478.msg31472#msg31472


Also :
Code: [Select]
(setq etxt (entget (car vpobj)));---store symbol table for object selected
(setq vpscale#denom (cdr (assoc 41 etxt)));---base scale factor
(setq vpscale#num (cdr (assoc 45 etxt)));---scale factor value
(setq vpscale# (/ vpscale#num vpscale#denom));---returns absolute viewport scale as integer
« Last Edit: February 17, 2006, 04:45:44 PM by CAB »
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Crank

  • Water Moccasin
  • Posts: 1503
Re: viewport dxf codes
« Reply #3 on: February 18, 2006, 04:38:04 AM »
Take a look at VPscale.lsp of the express tools.
Vault Professional 2023     +     AEC Collection

Amsterdammed

  • Guest
Re: viewport dxf codes
« Reply #4 on: March 05, 2006, 04:13:22 PM »
Thank you all and sorry for the late reply, I was skiing in Austria.......