distance and height of displayed entities

Discussion in 'AutoCAD' started by Brent, Jul 2, 2003.

  1. Brent

    Brent Guest

    I'm using Acad2002.

    Here's my need, I have a drawing with 3 entities on a thawed layer, it so
    happens that these entities are circles in this particular drawing with
    other drawings it could be blocks or lines or whatever. These entities are
    some distance apart from each other. ie:

    O
    O

    O

    Is there a way, programmatically, to find the outside distance (in drawing
    units) between the farthest apart entities and the outside height of the
    farthest apart entities? I've tried all of the acad variables limmax,
    limmin, viewsize, vsmax, vsmin, screensize and I don't get what I need. The
    closest I've come to getting those outside dimensions, is by using zoom
    extents
    and storing the viewsize variable and then rotating the drawing and resizing
    it and getting
    the viewsize again. However, depending on the placement of the different
    entities, I don't get the true distances. I'm looking for a more accurate
    method.

    Any input would be appreciated.

    Thanks, Brent
     
    Brent, Jul 2, 2003
    #1
  2. Brent

    Jürg Menzi Guest

    Brent

    Make a temporary block with all entities and GetBoundingBox...
    get the distance of the X- and Y-part of GetBoundingBox.

    Cheers
     
    Jürg Menzi, Jul 2, 2003
    #2
  3. Brent

    Brent Guest

    Thanks Jürg
     
    Brent, Jul 2, 2003
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.