@Ari204406 Within TS3's program files, look for DXSETUP.exe. I'm not sure what kind of install you have, but it should be in there somewhere. For example, on my Steam install, the path is:
Program Files (x86)\Steam\steamapps\common\The Sims 3\install\Directx
For an Origin install, it will look something like this:
Program Files (x86)\Origin Games\TS3\_Installer\directx
Run the .exe as an admin, then restart your computer.
If that doesn't help, you can install the file directly from Microsoft:
https://www.microsoft.com/en-US/download/details.aspx?id=35
If that doesn't work either, are you running SweetFX, by any chance? It uses altered dx files, so that could be interfering with TS3.
By the way, you can only start a new discussion on the official Sims forums if you're a full member, which means having 15 posts and 25 points. Otherwise, you'd need to post in an existing thread, like the one for new members. But posting here is also fine.
https://forums.thesims.com/en_US/discussion/893122/thread-for-new-members-to-post-their-sims-3-game-issues/p93
(Thanks to @holger1405 for the consult.)