TheSwamp

Code Red => .NET => Topic started by: hobbs1210 on April 22, 2018, 10:12:46 AM

Title: Autocad Import command
Post by: hobbs1210 on April 22, 2018, 10:12:46 AM
Hi,
I am currently working on a way to import inventor ipt files into Autocad using C#. Im currently using  AcadDocument.sendcommand, but this requires user interaction. Is there an alternative ways to interface with the import command?
Title: Re: Autocad Import command
Post by: WILL HATCH on April 23, 2018, 02:30:14 AM
Define requires user interaction?
Beyond setting filedia to 0? (I've never used the import .ipt feature)
Title: Re: Autocad Import command
Post by: hobbs1210 on April 23, 2018, 12:12:48 PM
"Processing background job" dialog would pop up requiring the user to close it.
Title: Re: Autocad Import command
Post by: lamarn on April 23, 2018, 05:38:04 PM
This inventor import functionality will not work if your Inventor files come from a later version than the AutoCAD version.
It would be nice if user would get a notification of that. But it doesn't.
Title: Re: Autocad Import command
Post by: ChrisCarlson on April 26, 2018, 08:31:04 AM
You'll have to play with the hidden message settings of FixedProfile.

http://adndevblog.typepad.com/autocad/2013/07/disable-task-dialogs-programmatically.html
Title: Re: Autocad Import command
Post by: BIGAL on April 27, 2018, 03:10:26 AM
In lisp a lot of the Command type can be run manually with some file dia and a - sign eg -line try it as -import.