Using -XREF in ACCORECONSOLE.EXE

Using -XREF in ACCORECONSOLE.EXE

dlowe
Enthusiast Enthusiast
327 Views
2 Replies
Message 1 of 3

Using -XREF in ACCORECONSOLE.EXE

dlowe
Enthusiast
Enthusiast

Hello, I have a very simple Lisp routine that changes all XREF path types to Relative. The rpath.lsp file contains just the following:

(defun c:rpath ()
    (command "-XREF" "T" "*" "R")
    (princ)
)

 

It works perfectly when I run it from within AutoCAD. However, when I run it in ACCORECONSOLE.EXE, it runs but does not actually change the paths. Here's the script:

(load "S:\\Doug\\rpath.lsp")
rpath
qsave

 

When I specify this script on the ACCORECONSOLE.EXE command, I get the message "2 path(s) not changed."

The drawing in question has two XREFs, both with absolute (Full) paths. As I said, if I open the drawing in AutocAD, load the rpath.ls file and run the rpath command, both XREFs get changed to Relative paths. But no change is made when I run the same Lisp file from ACCORECONSOLE.XE.

 

Any suggestions?

 

 

0 Likes
Accepted solutions (1)
328 Views
2 Replies
Replies (2)
Message 2 of 3

paullimapa
Mentor
Mentor
0 Likes
Message 3 of 3

dlowe
Enthusiast
Enthusiast
Accepted solution

I know -- yesterday I searched for & couldn't find my original post, but I since found it. Sorry! 

0 Likes