Hey Guys, need a little guidance with this one. I have a door with 3 of the same handle. I have a program in which the user selects 1 of the handles to turn it into a keyed handle. Now, this all works but the problem is that all of the 3 regular handle instances will be replaced with the keyed handle. Is there a way to prevent this?
Dim oOccHandle As ComponentOccurrence = oINV.CommandManager.Pick(SelectionFilterEnum.kAssemblyOccurrenceFilter, "Select a door handle to replace.")
oOccHandle.ReferencedDocumentDescriptor.ReferencedFileDescriptor.ReplaceReference(PathToKeyedHandleModel)
Solved! Go to Solution.
Solved by andrewwhiteinc. Go to Solution.
bah, i should really do more homework before posting a rookie question
For the reference of anyone else, I just needed to do oOccHandle.Replace(pathToNewModel, False)