List of Part SubType and View Type Numbers

List of Part SubType and View Type Numbers

cadman777
Advisor Advisor
1,066 Views
5 Replies
Message 1 of 6

List of Part SubType and View Type Numbers

cadman777
Advisor
Advisor

Would someone please tell me where to find a list of all Numbers for the Part SubTypes and View Types?

I'm referring to that long number enclosed in braces that identifies the type of thing you're accessing in your macro.

Thanx ...

... Chris
Win 7 Pro 64 bit + IV 2010 Suite
ASUS X79 Deluxe
Intel i7 3820 4.4 O/C
64 Gig ADATA RAM
Nvidia Quadro M5000 8 Gig
3d Connexion Space Navigator
0 Likes
1,067 Views
5 Replies
Replies (5)
Message 2 of 6

clutsa
Collaborator
Collaborator

Are you talking about something that looks like "{E60F81E1-49B3-11D0-93C3-7E0706000000}" and is listed under SubType? I don't know that there is a list of those. I am under the impression that SubType is a hexadecimal hash that is used more like an ID for use in the background of Inventor (I've been wrong many times before so don't quote me on that) What are you trying to accomplish with it?

There is ObjectTypeEnum that may work for what you need. Something like

If Not doc.PrintManager.Type = 50351616 Then 'if not a .idw throw message
        MsgBox ("This macro will only print .idw files." & vbCr & "Please manually select your print settings.")
        End
    End If

or for an example of something more human friendly to read

If Not doc.PrintManager.Type = ObjectTypeEnum.kDrawingPrintManagerObject Then 'if not a .idw throw message
        MsgBox ("This macro will only print .idw files." & vbCr & "Please manually select your print settings.")
        End
    End If
If I've helped you, please help me by supporting this idea.
Mass Override for Each Model State

Custom Glyph Icon for iMates

0 Likes
Message 3 of 6

JamieVJohnson2
Collaborator
Collaborator

GUID based - document/class sub types can be found in windows classes section of the windows registry.  File class ids are used by the Running Object Table, and many other coding avenues to know what file type is being used.  If you are diving into this level of coding for a necessary purpose, you either (1) are going deeper than needed to accomplish a task that can be done more simply, or (2) coding in at a level that is considered beyond the scope of the Inventor SDK (such as my earlier attempt to capture all the running instances of Inventor via open documents using said codes in a lookup on the ROT, a task I haven't taken the time to complete).

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
0 Likes
Message 4 of 6

cadman777
Advisor
Advisor

Clusta

I though that was the case!

I found it as a short list at the end of someone's code a few hours ago.

 

Jamie,

I though that was the case!

It seemed way to complicated and 'deep' for this sort of thing.

 

Thanx for the info guys.

Guess I'll try Clusta's idea.

 

Cheers...

... Chris
Win 7 Pro 64 bit + IV 2010 Suite
ASUS X79 Deluxe
Intel i7 3820 4.4 O/C
64 Gig ADATA RAM
Nvidia Quadro M5000 8 Gig
3d Connexion Space Navigator
0 Likes
Message 5 of 6

WCrihfield
Mentor
Mentor

As for the DocumentSubType list:

The actual document for this is installed when you install Inventor's DeveloperTools.msi.  Then go into that folder:

DeveloperTools\Include\DocCSLIDs.h

which is a C Header Source File, that can be opened with Visual Studio or Visual Studio Code.

I also recenetly published a helper post to my Contributions, just for this issue. The link is below.

Document.SubType List (Common Name = Inventors Readable Name = CLSID 

 

I hope this helps.
If this solves your problem, or answers your questions, please click 'Accept As Solution".
Or, if this helps you reach your goal, please click 'LIKES" 👍.

 

Also, if you're interested, here are a few of the 'Ideas' I'd like to get implemented.
If you agree with any of them, please vote for them.

  • Add more capabilities to the 'Customize' dialog box (exe. Add Tab & Add Panel) Click Here
  • MessageBox, InputBox, and InputListBox Size & Format Options Click Here
  • Constrain & Dimension Images In Assembly Sketches & Drawing Sketches (TitleBlocks & SketchedSymbols) Click Here
  • Save Section View Status In DesignViewRepresentation (So It Can Be Used In The Drawing) Click Here
  • Add SolidBodies Folder In iLogic Rule Editor Model Tab Click Here
  • Convert All Views To Raster Before Autosave Stores To 'OldVersions' Folder Click Here
  • SetDesignViewRepresentation - Fix limitations for DrawingView of a Part Click Here
  • Create DocumentSubTypeEnum Click Here

Inventor 2020 Help | Inventor Forum | Inventor Customization Forum | Inventor Ideas Forum

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 6 of 6

WCrihfield
Mentor
Mentor

Also, here is a link to where you can find the number equivalents to the DrawingViewTypeEnums.

DrawingViewTypeEnum Enumerator

And, here is a link to where the regular ViewTypeEnum list, with both numbers & names, is documented.

ViewTypeEnum Enumerator 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes