rookie37 Posted August 12, 2008 Posted August 12, 2008 How do I write a lisp programe to insert xref xr-survey as an attachment at 0,0? Quote
borgunit Posted August 12, 2008 Posted August 12, 2008 Maybe like this... (setvar "FILEDIA" 0) (command "-xref" "ATTACH" "c:\\temp\\1234.dwg" "0,0" "1" "1" "0") (setvar "FILEDIA" 1) Quote
rkmcswain Posted August 12, 2008 Posted August 12, 2008 Just a note, you don't have to change FILEDIA. The following will also work. (The period prefix ensures that you are using the core command and the underscores ensure that it will work in non-english versions.) (command "._XREF" "_A" "C:\\Temp\\1234.dwg" "0,0" "1" "1" "0") Quote
rookie37 Posted August 14, 2008 Author Posted August 14, 2008 I tried to modify it so that I will be in model space before I insert the xref. However, it don't work. It worked great before my addition. Thank you! (DEFUN C:XR2 () (command "MS" "" "._XREF" "_A" "m:\\7635-87\\acad\\XR-Cadastral_MODIFIED EASEMENTS.dwg" "0,0" "1" "1" "0")) tried both (DEFUN C:XR2 () (command "MS" "._XREF" "_A" "m:\\7635-87\\acad\\XR-Cadastral_MODIFIED EASEMENTS.dwg" "0,0" "1" "1" "0")) Quote
borgunit Posted August 14, 2008 Posted August 14, 2008 Try adding this before the command for XREF (setvar "TILEMODE" 1) Quote
Gringo Posted August 14, 2008 Posted August 14, 2008 i would also check to make sure you UCS is set to world coordinates and that your units are set correctly to whatever you use. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.