LISP OR A FIELD TO READ ANOTHER FILE NAME

LISP OR A FIELD TO READ ANOTHER FILE NAME

mGamalFJH34
Explorer Explorer
516 Views
4 Replies
Message 1 of 5

LISP OR A FIELD TO READ ANOTHER FILE NAME

mGamalFJH34
Explorer
Explorer

hello, is there is a field or a lisp that can read another dwg file name not the current dwg file? so that if the file's name is changed the text change automatically 

0 Likes
Accepted solutions (1)
517 Views
4 Replies
Replies (4)
Message 2 of 5

Moshe-A
Mentor
Mentor

@mGamalFJH34 hi,

 

You want to draw a text that has a link to dwg file - got it right?

say your current drawing has a text with a reference to "c:\folder\out.dwg" - ok?!

now out.dwg is renamed to out1.dwg and you want to know that this event occured?

to maintain such a thing you have to run a loop that check after out.dwg every second?!

and what would happend if your current is close and the file is renamed?

at next open you want to know about that?

 

Moshe

 

0 Likes
Message 3 of 5

mGamalFJH34
Explorer
Explorer

in your example, lets assume that out.dwg is a nother drawing not the current drawing, i want to add a field text in current drawing that link to the out.dwg file name and can read "out.dwg" and if out.dwg file name is changed to out1.dwg the field text will change automatically to "out1.dwg"  

0 Likes
Message 4 of 5

Moshe-A
Mentor
Mentor
Accepted solution

yes i understand that but what if your current dwg is close\sleep and some one changes out.dwg

how do you expect the link in current to know that? 

 

i assume you know what xrefs are? if some one rename an attched\xref file, AutoCAD will not find it - do you agree?!

 

 

 

 

 

0 Likes
Message 5 of 5

mGamalFJH34
Explorer
Explorer

yes i understand you, any way i solved it by creating sheet set and then linked the text with sheet set name which can be changed in its properties. 

0 Likes