Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to open XREF after selecting it

  1. #1
    I could stop if I wanted to
    Join Date
    2003-11
    Posts
    427

    Default How to open XREF after selecting it

    I would like to open an xref by selecting the xref. I don't want to use REFEDIT. There isn't a command line version of the OPEN command, so I am not sure where to start.

  2. #2
    Certified AUGI Addict rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Houston
    Posts
    7,520

    Exclamation Re: How to open XREF after selecting it

    Here is one way:

    Code:
    
    
    (vl-load-com)
    (vlax-invoke-method 
      (vla-get-Documents 
        (vlax-get-acad-object)
      ) 
      'Open
      "C:\\path\\mydrawing.dwg"
    )
    
    

  3. #3
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    6,836

    Default Re: How to open XREF after selecting it

    Which AutoCAD version are you using? XOPEN has been available since 2004.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  4. #4
    AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    2,298

    Default Re: How to open XREF after selecting it

    Quote Originally Posted by Opie View Post
    Which AutoCAD version are you using? XOPEN has been available since 2004.
    Wow, that's neat! (nice reminder)
    I think I had heard that command before, but never used it and didn't know what it was for.

    Thanks Opie
    Ted
    ____________________________________________________________________________________
    AutoCAD 2012 - REVIT Structure 2012 - MicroStation V8i - Windows 7 Professional - (dabble with Inventor 2012)

  5. #5
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    6,836

    Default Re: How to open XREF after selecting it

    Quote Originally Posted by tedg View Post
    Wow, that's neat! (nice reminder)
    I think I had heard that command before, but never used it and didn't know what it was for.

    Thanks Opie
    I've remapped my double-click action in my CUI from REFEDIT to XOPEN. It makes it tons easier.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  6. #6
    I could stop if I wanted to
    Join Date
    2003-11
    Posts
    427

    Default Re: How to open XREF after selecting it

    Thanks Opie

  7. #7
    AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    2,298

    Default Re: How to open XREF after selecting it

    Quote Originally Posted by Opie View Post
    I've remapped my double-click action in my CUI from REFEDIT to XOPEN. It makes it tons easier.
    I agree, I like to open and edit the xref and reload it instead of using refedit.
    I've been using the "open" button in the xref dialog ..until today!

    I added an alias in my acad.pgp for it: "xo" = xopen

    Refedit seems to cause problems now and again, like continually asking you to reload the xref after you, or someone else has edited it though refedit. The way I've found to overcome that is to go into the xref drawing, "save" it and get out.
    Ted
    ____________________________________________________________________________________
    AutoCAD 2012 - REVIT Structure 2012 - MicroStation V8i - Windows 7 Professional - (dabble with Inventor 2012)

  8. #8
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    6,836

    Default Re: How to open XREF after selecting it

    Quote Originally Posted by tedg View Post
    I agree, I like to open and edit the xref and reload it instead of using refedit.
    I've been using the "open" button in the xref dialog ..until today!

    I added an alias in my acad.pgp for it: "xo" = xopen

    Refedit seems to cause problems now and again, like continually asking you to reload the xref after you, or someone else has edited it though refedit. The way I've found to overcome that is to go into the xref drawing, "save" it and get out.
    I've had Refedit rotate an xref because the ucs had been rotated. Since changing the double-click action to xopen, I have not had that problem.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  9. #9
    All AUGI, all the time gfreddog's Avatar
    Join Date
    2003-07
    Location
    Pequannock NJ US of A
    Posts
    639

    Default Re: How to open XREF after selecting it

    Quote Originally Posted by Opie View Post
    Which AutoCAD version are you using? XOPEN has been available since 2004.
    Okay I can go home now, my day is complete, I learned something new!

    Thanks Opie!
    George V. Fournier Jr., CTS
    Sr. Sales Engineer - Autodesk Product Design Suite Premium 2014
    2006 AUGI DAWG (7th) - NJ AUGI Camp
    Volunteer Firefighter since 1985 & Bagpiper Wanna-be
    With the freedom of expression comes great responsibility


  10. #10
    Certifiable AUGI Addict irneb's Avatar
    Join Date
    2007-07
    Location
    Jo'burg SA
    Posts
    4,344

    Default Re: How to open XREF after selecting it

    XOPEN is standard with the right-click menu as well: Select XRef, right-click, choose Open XRef.
    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

Page 1 of 2 12 LastLast

Similar Threads

  1. Selecting Xref
    By rpdrui in forum AutoCAD General
    Replies: 1
    Last Post: 2009-09-04, 02:25 PM
  2. Selecting a Xref seems to take forever
    By aaronlogan in forum AutoCAD General
    Replies: 5
    Last Post: 2007-06-04, 11:08 AM
  3. Detach Xref by Selecting
    By wommack in forum AutoLISP
    Replies: 3
    Last Post: 2006-05-17, 10:55 PM
  4. Selecting all XREF's
    By leonard.72630 in forum VBA/COM Interop
    Replies: 1
    Last Post: 2004-11-10, 07:51 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
  •