Jump to content

Recommended Posts

Posted

How do I write a lisp programe to insert xref xr-survey as an attachment at 0,0?

Posted

Maybe like this...

 

(setvar "FILEDIA" 0)
(command "-xref" "ATTACH" "c:\\temp\\1234.dwg" "0,0" "1" "1" "0")
(setvar "FILEDIA" 1)

Posted

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")

Posted

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"))

Posted

Try adding this before the command for XREF

 

(setvar "TILEMODE" 1)

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...