Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Re-referencing assembly parameter models

NachitoMax
Advisor

Re-referencing assembly parameter models

NachitoMax
Advisor
Advisor

Hi there!

 

I am copying an assembly from a template location to a job location. All of the files are copying over and changing reference just fine except any base model used as a parameter model. The sub assemblies are copying over and the new base model is included but when i check the parameter linked files, they are still referencing the original template base models. 

 

Im looping through All of the leaf references but these are not being included.. Is there something i need to be doing in order to include these? The base models are part files with parameters and are all copying over to the new folder, its the re-linking that seems to be an issue...

 

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
Reply
143 Views
2 Replies
Replies (2)

WCrihfield
Mentor
Mentor

Hi @NachitoMax.  Maybe you need to also loop each DerivedParameterTable In ComponentDefinition.Parameters.DerivedParameterTables, and work with the DerivedParameterTable.ReferencedDocumentDescriptor, then onto its ReferencedFileDescriptor, and use its FileDescriptor.ReplaceReference method.  Just a thought.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes

NachitoMax
Advisor
Advisor

Thanks for replying. Its not my assembly and ive been delving a little further. Some of this i feel can be resolved by correctly structuring the assemblies and referencing the files properly. I'll report back on the outcome :slightly_smiling_face:

 

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