Results 1 to 3 of 3

Thread: Open Xref to a specific location

  1. #1
    I could stop if I wanted to
    Join Date
    2001-01
    Posts
    257
    Login to Give a bone
    0

    Smile Open Xref to a specific location

    Hi All-

    I really like the Open Xref command, but I am wondering if there is any way that a user can select an xref and have it open it, zoomed up to the location they selected on. Typically, I xref my building sections into a drawing and I open as many viewports as are necessary. Occasionally, I find that I would love to edit the xref by opening up the viewport and selecting the xref. Once the xref is open I find that I have to search around until I locate the exact portion of the drawing that I was viewing through the viewport. I know that I could probably write a routine that could store the point where you select the xref and then proceed to open the selected file. However, I am not quite sure how one goes about translated the coordinates from one drawing to another. Any help or suggestions are greatly appreciated. Thanks.

    Manuel A. Ayala
    CAD Concepts

  2. #2
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Open Xref to a specific location

    Just thinking out loud.....Grab the VIEWCTR, VIEWSIZE, and VIEWTWIST from the main drawing, then after opening the xref, use ZOOM and maybe DVIEW to set up the view.
    R.K. McSwain | CAD Panacea |

  3. #3
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Open Xref to a specific location

    After obtaining the values as rkmcswain indicates you'd probably need to convert them from the current UCS to the position / scale / rotation / mirror of the xref object. This so you can apply the converted values to the next DWG after opening. Unsure if the trans function could work. It's supposed to be able to convert 3d points from one UCS to another: e.g.
    Code:
    (trans pt 1 en) ;pt is the point to convert, en is the ename of the xref like with (car (entsel))
    This converts the current UCS (that's why the 1) to the object UCS of the xref - usually 0,0 is "moved" to the xref/block's insertion point and rotations applied to Z Y & X axses as needed. I'm unsure how any mirrors will work - but you probably don't have any for xrefs.

Similar Threads

  1. Xref only Specific Layer
    By rmjcorp596401 in forum AutoCAD General
    Replies: 4
    Last Post: 2012-02-23, 01:18 PM
  2. 2010: disable xref location prompt on file open
    By theloit in forum AutoCAD General
    Replies: 2
    Last Post: 2011-11-03, 11:46 AM
  3. find text at specific location
    By rwbaker54 in forum VBA/COM Interop
    Replies: 5
    Last Post: 2007-10-24, 05:45 AM
  4. Replies: 5
    Last Post: 2006-12-20, 04:11 PM
  5. Snapping spot elevations to a specific location?
    By Jason in forum Revit Architecture - General
    Replies: 8
    Last Post: 2005-03-28, 07:03 AM

Posting Permissions

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