在Windows应用中添加eDrawings2018 Viewer时找不到COM组件求助
Hey there, let's tackle this eDrawings 2018 Viewer component issue head-on. I’ve dealt with similar COM component visibility problems before, so here are actionable steps to get that control showing up:
Register the DLL manually
Copying the DLL alone doesn’t register it in the Windows registry, which is required for COM components to appear in Visual Studio. Do this:- Right-click Command Prompt and select Run as administrator
- Execute this command:
regsvr32 "C:\Program Files\Common Files\eDrawings2018\EModelView.dll" - You’ll get a pop-up confirming successful registration—restart Visual Studio afterward and check the COM components list again.
Repair or re-install eDrawings with API components
It’s possible your initial eDrawings install skipped the necessary COM/API components. Re-run the eDrawings 2018 installer:- Choose the Repair option, or go into Custom Installation
- Make sure you check boxes for "eDrawings API" or "COM Components" (labeling might vary slightly)
- Complete the repair/re-install, then restart Visual Studio.
Match platform architecture
COM components are sensitive to 32/64-bit mismatches:- If you installed 64-bit eDrawings, set your Visual Studio project’s target platform to
x64(Project Properties → Build → Platform target) - For 32-bit eDrawings, use
x86instead
Also ensure you’re running the correct version of Visual Studio (32/64-bit) that matches your eDrawings install.
- If you installed 64-bit eDrawings, set your Visual Studio project’s target platform to
Manually browse for the DLL
If the component still doesn’t show up in the COM list, force-add it:- Go to Toolbox → Right-click → Choose Items → COM Components tab
- Click the Browse button
- Navigate to
C:\Program Files\Common Files\eDrawings2018\and selectEModelView.dll - The eDrawings control should now appear in the list—check it to add it to your toolbox.
Run Visual Studio as Administrator
Sometimes VS lacks the permissions to read registry entries for COM components. Close VS, right-click its shortcut, select Run as administrator, then try accessing the COM components list again.
内容的提问来源于stack exchange,提问作者Rahul Sutar

