Unbind xrefs with option to reattach "unbinded" files problem...

Unbind xrefs with option to reattach "unbinded" files problem...

danglar
Advocate Advocate
1,120 Views
3 Replies
Message 1 of 4

Unbind xrefs with option to reattach "unbinded" files problem...

danglar
Advocate
Advocate

I tried to modify existing routine (see attached lisp .. I dont' know who created it) in oredr to add function to reattach "unbinded" xrefs, but when programm tried to attach new created

file I have a problem with a path to this file and program can not determine where to find recently created file

I think a problem hidden in this string

(command "attach" (strcat (getvar "dwgprefix")(vl-filename-base fname)) "o" "0,0,0" "" "" "")

Any help will be very appretiated.

0 Likes
1,121 Views
3 Replies
Replies (3)
Message 2 of 4

paullimapa
Mentor
Mentor

maybe try changing the wblock line to this:

(command "wblock" (strcat (getvar "dwgprefix") fname) "" "0,0" xsels "")

 

 

Area Object Link | Attribute Modifier | Dwg Setup | Feet-Inch Calculator
Layer Apps | List on Steroids | VP Zoom Scales | Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 4

danglar
Advocate
Advocate

Hi Paul Li!

Thank you for your answer.

If you have a large drawing with many binded and exploded xrefs program working slowly and in a some cases causes to AutoCAD to crash.. I make some “investigation” and sow, that wblock command make a real problem when we talking about large drawings.. Is it possible to change wblock command to “save as” command for example and to save “efforts” to autocad?

The problem is: we need to remain in a main drawing..

0 Likes
Message 4 of 4

paullimapa
Mentor
Mentor

Unfortunately the answer is NO.

AutoCAD's SAVEAS command takes everything in the current drawing and allows the user to save it as another named drawing.

There's no option with this command to only save the objects that are selected...thus the need for the WBLOCK command.

 

 

Area Object Link | Attribute Modifier | Dwg Setup | Feet-Inch Calculator
Layer Apps | List on Steroids | VP Zoom Scales | Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes