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.
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.
Here is one way:
Code:(vl-load-com) (vlax-invoke-method (vla-get-Documents (vlax-get-acad-object) ) 'Open "C:\\path\\mydrawing.dwg" )
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
Ted
____________________________________________________________________________________
AutoCAD 2012 - REVIT Structure 2012 - MicroStation V8i - Windows 7 Professional - (dabble with Inventor 2012)
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
Thanks Opie
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)
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
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
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!