s8utt Posted March 5, 2010 Posted March 5, 2010 Can someonehelp me automate the IGESIN command ? I have 100's of iges files I need to import into a drawing. I'd love to be able to use a script -igesin c:\test.igs 0,0 ( like the one above, import c:\test.igs onto co-ords 0,0 ) This doesn't work obviously, however does anyone know of a way of importing the file via code ? I can then write a loop to import all the files Many Thanks s8utt Quote
StevJ Posted March 9, 2010 Posted March 9, 2010 I use the following to insert a special block at a selected point: (COMMAND "INSERT" "C:/Steve/ACADstuffs/LISP/AutoLisp/tb08.DWG" pt1 "" "" "180") I'm not familiar with iges files, or if this will work at all for you, but you might give this a try on the chance something good might happen: (COMMAND "INSERT" "c:/test.igs" "0,0" "" "" "0") Be sure the path to your iges file is correct. If you paste it to your command line and it works, you should be able to use it as a macro or something. Good luck, Steve . Quote
s8utt Posted March 9, 2010 Author Posted March 9, 2010 thanks for the suggestion but alas it dont work looks like if it aint dwg or dxf it dont like it. Quote
StevJ Posted March 10, 2010 Posted March 10, 2010 Sorry about that. I knew it was long shot, but it's the only thing I have that inserts something into a drawing, and I figured trying something was better than doing nothing. Hopefully, someone will have an answer for you. Steve Quote
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.