Identifying Base Component

Identifying Base Component

NachoShaw
Advisor Advisor
456 Views
3 Replies
Message 1 of 4

Identifying Base Component

NachoShaw
Advisor
Advisor

Hi

Is there a coded method of identifying a Base Component as in, the original Base Model that a part has been derived from? In the UI, i can:

 

  • Open a part
  • Right click on Derived Part feature in the tree
  • select 'Open Base Component'

Thanks

 

Nacho

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


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.


0 Likes
Accepted solutions (1)
457 Views
3 Replies
Replies (3)
Message 2 of 4

bradeneuropeArthur
Mentor
Mentor
Accepted solution

with this you can:

 

Public Sub SuppressLinkderivedpart()
Dim oInvApp As Inventor.Application
Set oInvApp = ThisApplication
        ' Set a reference to the Active document as a Part
        Dim oInvPartDocument As PartDocument
        Set oInvPartDocument = oInvApp.ActiveDocument

        ' Set a reference to the part component definition
        Dim oInvPartCompDef As PartComponentDefinition
        Set oInvPartCompDef = oInvPartDocument.ComponentDefinition

        ' Set a reference to the derived part component
        Dim oDerivedPart As DerivedPartComponent
        Set oDerivedPart = oInvPartCompDef.ReferenceComponents.DerivedPartComponents.Item(1)
MsgBox oDerivedPart.ReferencedDocumentDescriptor.FullDocumentName


    End Sub

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
Message 3 of 4

NachoShaw
Advisor
Advisor

appreciate it

 

thanks

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


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.


0 Likes
Message 4 of 4

bradeneuropeArthur
Mentor
Mentor
I also appreciate to help on the forum.

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