Results 1 to 2 of 2

Thread: Convert pickbox size from pixels to dwg units

  1. #1
    Member
    Join Date
    2015-01
    Posts
    43
    Login to Give a bone
    0

    Default Convert pickbox size from pixels to dwg units

    I'm writing a routine where I need to know the size of the pickbox in dwg units in order to account for the tolerance of points returned by entsel. I drew a 10"x10" box in the drawing, zoomed out until my size 10 pickbox matched the box as close as I could get it and used the following code to get the size of the pickbox in dwg units:

    (* (getvar "PICKBOX") (/ (getvar "VIEWSIZE") (cadr (getvar "SCREENSIZE")))))

    This code consistently returns a number close to 5 rather than 10 so it appears to me that the pickbox size is the number of pixels from the crosshairs to the edge of the box rather than the outside edges of the box. Can someone please confirm that my code is correct and that this is actually how the pickbox is sized?

    Thanks for your help

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,420
    Login to Give a bone
    0

    Default Re: Convert pickbox size from pixels to dwg units

    I'm not sure about where it is measured, but a pixel is 1/72".
    C:> ED WORKING....


    LinkedIn

Similar Threads

  1. How to convert SI Units l/h instead of l/s in REVIT MEP 2010??
    By ncostab in forum Revit MEP - General
    Replies: 0
    Last Post: 2010-03-09, 01:17 PM
  2. Nested Fields - Convert units for Northings/Eastings?
    By keelay711 in forum AutoCAD Fields
    Replies: 5
    Last Post: 2007-03-05, 07:24 AM
  3. Convert Civil drawings using decimal units into Arch. units
    By tlarocco in forum AutoCAD Civil 3D - General
    Replies: 4
    Last Post: 2006-07-17, 05:52 PM
  4. How to convert units according to Encient style?
    By oshenic2004 in forum AutoCAD Customization
    Replies: 1
    Last Post: 2005-02-18, 04:13 PM
  5. How do you convert units inside Revit??
    By Richard McCarthy in forum Revit Architecture - General
    Replies: 2
    Last Post: 2004-10-25, 02:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •