Message 1 of 5

Not applicable
11-17-2017
09:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
trying to check whether a part is a sheet metal part in an inventor addin using this if statement
msbox(oDoc.SubType)
If oDoc.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then
msgbox("Sheet metal part")
End If
I'm 100% certain oDoc is a sheet metal document, I've even tested the exact same code in VBA and I can see the SubType as sheet metal GUID to confirm this.
However, in my addin, the first message box in returns this string:
{41769AA9-4296-5CD8-C0D5-68AF8E5E79E2}
and if i try a different sheet metal part I will get another totally random number
HELP !!!
Solved! Go to Solution.