Get Document Subtype (FrameGenerator, ContentCenter, Substitute, ...)

Get Document Subtype (FrameGenerator, ContentCenter, Substitute, ...)

Anonymous
Not applicable
1,276 Views
4 Replies
Message 1 of 5

Get Document Subtype (FrameGenerator, ContentCenter, Substitute, ...)

Anonymous
Not applicable
Hello

is it possible to get the documenttype of the following ipt-model files
(equal to the sheetmetal part, ...If DocumentObject.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}")

- ContentCenter Part
- Tube and Pipe Part
- Cable and harness part
- Frame Generator part
- Substitute part

we need it to fill in diffrent userproperties from/to our ERP system.

Thanks for any tips

Bruno
0 Likes
1,277 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
As of Inventor 2008, tube/pipe, cable/harness & Frame Generator stamp their
documents with "document interests", indicating that they have an "interest"
in a document. I've attached the list of interest names for such documents
as well as some sample code.


Substitute parts - PartDocument.IsSubstitutePart property returns this type.



Content center parts - Use the hidden ContentCenter.ContentCenterControlled
method.



Sanjay-



T&P

"Piping Runs Environment"

"Piping Run Environment"

"Piping Route Environment"

"Piping Hose Environment"



C&H

"HarnessPart"

"HarnessAssembly"

"NailboardDrawing"



Frame Generator

"FrameDoc" (Frame doc)

"SkeletonDoc" (Reference doc)

"FrameMemberDoc" (Frame Member doc)



Sub DocumentType()



Dim oDoc As Document

Set oDoc = ThisApplication.ActiveDocument



Dim bIsRunDocument As Boolean

bIsRunDocument = oDoc.DocumentInterests.HasInterest("Piping Run
Environment")



End Sub
0 Likes
Message 3 of 5

Anonymous
Not applicable
Hi Sanjay, just wondering if there was a set of constants for these defined in the API. Such as a DocumentInterestType?
0 Likes
Message 4 of 5

Anonymous
Not applicable
Hi Josh,

No, there is not. Just the set of hard-coded strings.

Sanjay-
0 Likes
Message 5 of 5

bradeneuropeArthur
Mentor
Mentor

Hi,

 

I have used the additional propertysets for the filter!

For example the Content Center Files have 2 additional propertySets:

  • Content Library Component Properties
  • ContentCenter

The same for the other parts..

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes