Jump to content

Recommended Posts

Posted

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

Posted

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

.

Posted

thanks for the suggestion but alas it dont work

 

looks like if it aint dwg or dxf it dont like it.

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...