inventor and AutoCAD dwg file difference

inventor and AutoCAD dwg file difference

Anonymous
Not applicable
726 Views
4 Replies
Message 1 of 5

inventor and AutoCAD dwg file difference

Anonymous
Not applicable

Hi

 

I'm looping through files in a folder/subfolders with VBA and collecting iproperties, but I get an error when I hit an AutoCAD dwg.  the error handler doesn't seem to pick it up

0 Likes
Accepted solutions (2)
727 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
any ideas?
0 Likes
Message 3 of 5

Anonymous
Not applicable
Accepted solution

I am not sure on VBA. But using .Net API you can use "FileManager.IsInventorDWG". This might help you.

I tried this last year with Apprentice Server(Inventor 2013) & C#.

 

Hope it might help

Message 4 of 5

Anonymous
Not applicable
Accepted solution

figured my  problem out, I had break on all errors selected instead of on unhandled errors

0 Likes
Message 5 of 5

Anonymous
Not applicable

Thanks, just saw your reply, as I submitted the sol to my problem.

 

I've implemented yours it and it works, so no need for error handling.

 

Dim ApApprentice As New ApprenticeServerComponent

Dim filToProcess As Scripting.File

 

If ApApprentice.FileManager.IsInventorDWG(filToProcess.Path) Then

...

0 Likes