Subtype Sheet Metal file changed in Inventor 2014

Subtype Sheet Metal file changed in Inventor 2014

w.pepping
Advocate Advocate
1,322 Views
3 Replies
Message 1 of 4

Subtype Sheet Metal file changed in Inventor 2014

w.pepping
Advocate
Advocate

Since I create sheet metal files in Inventor 2014, the subtype of this parts is not always the same. Migrated files from an earlier version have the right ID.

So my add-in to detect sheet metal parts fails.

I use the code: 

 

If IV.ActiveEditDocument.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then

 

What can it be?

Get control of your sheet metal files.
Download the app from matprop.com
0 Likes
Accepted solutions (2)
1,323 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Accepted solution

Try this code.

 

If IV.ActiveEditDocument.DocumentSubType.DocumentSubTypeID= "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then

 

0 Likes
Message 3 of 4

ekinsb
Alumni
Alumni
Accepted solution

The workaround suggested in the last past is a good one and should work.  This problem was discovered a few months ago and one of the developers spent quite a while investigating it without being able to determine the actual cause.  At this point we believe there may be a problem with the underlying Microsoft code that's used when the program runs.  I believe it's also only a problem if your program is referencing the Inventor 2013 interop.  However, we would expect it to work in that case too.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 4 of 4

rjay75
Collaborator
Collaborator
I have also seen this behavior in parts created in Inventor 2013 and 2011 as well. It seemed to be random with the parts showing this behavior. Using the alternate syntax to get the subtype id does correct the issue.

I've seen this issue in all the post IV 2013 APIs.
0 Likes