pmxcad Posted March 28, 2015 Share Posted March 28, 2015 Hello all, i`ve made a script that makes a layer "XREF" and make it current. And set the layout to modelspace. Aftert that i want to attach a XREF. This xref drawingfile is in a subfolder of the main drawing. Because the file name of the xref is always different so i used a * (asterik) as filename. So this is not working. There is always just one Xref file in the subfolder. See script: -LAYER MAKE XREF LAYOUT SET MODEL -XREF ATTACH .\XREF\*.DWG 0,0,0 1 1 0 Is there a way to get this working, script or lisp? Problem is the * as filename. Thanks, PmxCAD Quote Link to comment Share on other sites More sharing options...
vernonlee Posted April 4, 2015 Share Posted April 4, 2015 Not sure about the whole script but perhaps instead of just a * you can try at least a partial name that hopefully is common. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted April 5, 2015 Share Posted April 5, 2015 if you use lisp you can use the findfile function to look in the current dwg directory and load any other dwg's there. A script will need an actual name. Another way is you can do lisp in a script so if you know name you can type it and then use (command "Attach" filename) Quote Link to comment Share on other sites More sharing options...
abra-CAD-abra Posted April 6, 2015 Share Posted April 6, 2015 Alternatively, and if you don't mind paying $10, Consider this application. It will process your XREFs without opening any drawings. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.