Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
Using Inventor Professional 2023 Build 271...
I am trying to create an add-in that copies assemblies and and some of the components (.ipt) within the copied assembly. Some of the components have a derived parameter table that is linked to another component that is being copied within the assembly (I will refer to the component that others link to as "KEY" ). The derived parameter tables have parameters that are used as expressions in the model parameters.
The problem is I cannot seem to change the link to the original derived parameter table to the newly copied "KEY".
I can create a new derived parameter table that is linked to "KEY" but it renames the parameters so they no longer drive the model parameters.
When I delete the old table it just creates a new user parameter to keep the drive to the model parameter and the derived parameter still has the new name and is still useless.
I have tried deleting the old table before creating the new table with the same result.
I suppose I could try to iterate through all parameters and change any expression with the old name to the new name but seems like there should be an easier way and wanted to ask the forum before going down that path.
Does anybody have a simple way to go about replacing the derived parameter table or relink the new table to the parameters that are already in use?
Solved! Go to Solution.
Solved by WCrihfield. Go to Solution.
Hi @CAD_CAM_MAN. I have not tried this lately, but have you tried using the following:
DerivedParameterTable.ReferencedDocumentDescriptor.ReferencedFileDescriptor.ReplaceReference(sOtherFullFileName)
Wesley Crihfield
(Not an Autodesk Employee)
Can't find what you're looking for? Ask the community or share your knowledge.