"Pete Dibbs" <pe...@modelshop.bc.ca> wrote in message
news:97A6740BFB590EC6...@in.WebX.maYIadrTaRb...
>
> but for the dialog box try cammand dialog (CMDDIA), and put the setting
to 1.
(defun C:XREF ()
(command "._-LAYER" "s" "0" "")
(vla-sendCommand
(vla-get-activedocument
(vlax-get-acad-object)
)
"._XREF\n"
)
(princ)
)
"justindavidwerner" <justinda...@hotmail.com> wrote in message news:f17bd...@WebX.maYIadrTaRb...
> Why is it that whenever I try to use the XREF command in a lisp routine, the xref command goes to the command line? I
have FILEDIA set to 1. Is there a way to make the dialog box pop up. I'm trying to make it so all xrefs come in on layer
0 with following lisp:
> (defun c:xref () (command "-layer" "s" "0" "" "xref")(prin1))
>
> Any help very much appreciated!
>