Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

inventor and AutoCAD dwg file difference

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Namoi1
595 Views, 4 Replies

inventor and AutoCAD dwg file difference

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

using IV2015
C-H
4 REPLIES 4
Message 2 of 5
Namoi1
in reply to: Namoi1

any ideas?
using IV2015
C-H
Message 3 of 5
santoshr0114
in reply to: Namoi1

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

Regards
Santosh
Message 4 of 5
Namoi1
in reply to: Namoi1

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

using IV2015
C-H
Message 5 of 5
Namoi1
in reply to: santoshr0114

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

...

using IV2015
C-H

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums