exported selected to dwg or iges file in maxscript?

does anyone how to export selected to dwg or iges files in maxscript ?
because i searched through the internet and i found there is a script related to this
but it is solely export selected to 3ds file..

any help is greatly appreciated
cheers

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Christopher Grant's picture

Check your maxscript help

Check your maxscript help reference for "exportFile" ... you just need to give it a path string and specify to only output the selected objects.

Example: exportfile "c:/test.dwg" selectedOnly:true

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.