Check if part is a native Autodesk Inventor document (iam, ipt or idw.dwg)

Check if part is a native Autodesk Inventor document (iam, ipt or idw.dwg)

isocam
Collaborator Collaborator
698 Views
5 Replies
Message 1 of 6

Check if part is a native Autodesk Inventor document (iam, ipt or idw.dwg)

isocam
Collaborator
Collaborator

Can anybody help?

 

If I open, using Autodesk Inventor, a SolidWorks/SolidEdge/Catia etc document (assembly, part or drawing), is it possible using an Inventor VBA macro, to check if the opened part is not a native Autodesk Inventor document?

 

Many thanks in advance!!!

 

Darren

0 Likes
699 Views
5 Replies
Replies (5)
Message 2 of 6

k14348
Advocate
Advocate

Hi,

     you may check file name extension to find this.

 

 

-Karth

0 Likes
Message 3 of 6

isocam
Collaborator
Collaborator

Karth,

 

If you import a SolidWorks document into Inventor the filename extension sldpt, for example, gets automatically converted to the Inventor file name extension ipt, so using the filename extension you mentioned will not work.

 

Kind Regards

 

Darren

0 Likes
Message 4 of 6

tobias.orlow
Alumni
Alumni

Hi @isocam ,

 

Please check the following blog post related to Imported Components:

https://adndevblog.typepad.com/manufacturing/2015/10/get-fullfilename-of-original-anycad-component.h...

 

Let me know if that helps or if you need further help.

 

Many thanks,

Tobias

Tobias Orlow
Designated Support Specialist
Customer Success Organization
Linkedin: www.linkedin.com/in/tobiasorlow/
Message 5 of 6

k14348
Advocate
Advocate

Hi,

    In that case, For opened doc u go to workspace path then check the folder file extension using api.

Hope by this way u may able to get solution.

 

-Karth

0 Likes
Message 6 of 6

JelteDeJong
Mentor
Mentor

I dont have a (SolidWorks/SolidEdge/Catia) file to test with but when i import a step file there is usaly a converion log thing in the model browser. you could check with code if its there.

If you can share a none confidential SolidWorks/SolidEdge/Catia file. Maybe then i can help you a bit more.

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes