It's a been a really long time since I read "Foucault's Pendulum" and having never read "The Da Vinci Code" the similarities may have been projected onto them by me at the time.
I probably wasn't as open minded back then either. Well, at least I hope I'm more open minded know.