(VBA) DerivedParameterTable LinkedParameters Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
There is a API bug in inventor. I can not get e value for ReferencedEntity of the linked parameter.
If for example i will link parameters of an ipt file and then I want to check value of the ReferencedEntity of an any of the parameters then I'm getting an error. I have checked this on the last 3 versions of Inventor (2021, 2022, 2023). It's just not working.
Just to test it it's eanough to link an ipt file an try:
Dim oPartDoc As partDocument
Set oPartDoc = ThisApplication.ActiveDocument
Dim oParam As DerivedParameter
Set oParam = oPartDoc.ComponentDefinition.Parameters.DerivedParameterTables.Item(1).LinkedParameters.Item(1)
Debug.Print oParam.Name
Debug.Print oParam.ReferencedEntity.Name
Is it any way to find referced parameter name since they are renamed if same name of the parameters exists allready? Like for exampe d0 is reneamed to d0_1 butif this name allready exist then it's renamed to d0_1_2.

