Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Xref binding with error correction???

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
144 Views, 3 Replies

Xref binding with error correction???

I want to have a lisp that will bind all the xrefs in a drawing. I'm planning on using this lisp in a script so I can do multiple drawings. I know i could get a script to do this, but I'm wanting some sort of error correction. Sometimes, i run across a file where the xref wont bind for one reason or another. I would like a lisp that would write out to a textfile (same directory and same name as the drawing) that contains the xrefs that wouldn't bind. This would be great, so if I ran a script on fifty drawings, I would instantly know which drawing the binding didn't work on. Any ideas on how to do this? Any help would be appreciated
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Ask and ye shall receive!

 

This is an unedited version of my routine that does
exactly what you are asking for....  It does some extra stuff too, that is
used in our drawings, but I believe it will work as-is, and you can clean it up
for your purposes....

 

This will bind all XREFs, and if any cannot be
bound, it creates a file called "DWGNAME-XREF-REPORT.TXT" in the same directory
as the drawing that lists all of the XREFs and which were not found....  In
the routine, the lines that create a report that lists all successfully bound
XREFs are remaked out since if they are bound, I don't need to know, but you can
probably un-remark them and get that report as well....

 

HTH,

Eric Eden

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
want to have a lisp that will bind all the xrefs in a drawing. I'm planning on
using this lisp in a script so I can do multiple drawings. I know i could get
a script to do this, but I'm wanting some sort of error correction. Sometimes,
i run across a file where the xref wont bind for one reason or another. I
would like a lisp that would write out to a textfile (same directory and same
name as the drawing) that contains the xrefs that wouldn't bind. This would be
great, so if I ran a script on fifty drawings, I would instantly know which
drawing the binding didn't work on. Any ideas on how to do this? Any help
would be appreciated
Message 3 of 4
Anonymous
in reply to: Anonymous

Hey Eric!!

Imagine my utter disappointment when i selected the xrefreport.lsp and got a "no attachment" window. Think you could email it direct?? Please 🙂

I would be ever so appreciative.
Anybody else can't D/L attachments???
Message 4 of 4
Anonymous
in reply to: Anonymous

I had no trouble downloading it....  I'll send
it directly...

 

Eric


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hey
Eric!!

Imagine my utter disappointment when i selected the xrefreport.lsp and got
a "no attachment" window. Think you could email it direct?? Please 🙂

I would be ever so appreciative.
Anybody else can't D/L
attachments???

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost