Type a compound name or SMILES to render 2D chemical structures, molecular weights, LogP/TPSA, and 3D complexity metrics across Excel rows. Double-click any cell or picture to sketch in 2D with embedded EPAM Ketcher, or rotate 3D proteins with Mol* β free, open-source, and local-first (no admin rights required).
- π°π· νκ΅μ΄ 곡μ κ°μ΄λ λ° λΉ λ₯Έ μμ
- πΊπΈ English Documentation & Quickstart
- π π₯ Download Self-Contained Excel Playbook (.xlsx) β 10-tab interactive workbook with live formulas, physicochemical & 3D complexity KPIs, SMARTS dictionary, stoichiometry & hit-to-lead workflows, KET reactions,
.FLOAT, and all 49 functions. - π π₯ Download Self-Contained Word Playbook (.docx) β 6-page hands-on manuscript with double-click-editable structures, journal SAR table, KET synthesis schemes, Mol* 3D
1CRNfigure, and ACS B&W exercise. - π¨ π₯ Download Self-Contained PowerPoint Playbook (.pptx) β 8-slide dark-mode interactive deck with TextBox conversion lab, 4-card screening grid, KET mechanism slide, Mol* 3D target, Q&A
Molecule Info, and speaker notes.
Open PowerShell and run this single command to automatically install, configure security, and register the add-in across Microsoft Office (Excel, Word, PowerPoint):
# Latest stable release (v1.9.1)
irm https://raw.githubusercontent.com/naramdash/func_SMILES2IMG/main/install.ps1 | iexWhat the installer automates:
- Detects your Office bitness (32-bit vs. 64-bit) and installed Office applications (Excel, Word, PowerPoint)
- Downloads and places
func_SMILES2IMG(Excel XLL, Word COM DLL, PowerPoint COM DLL) in%APPDATA%\Microsoft\AddIns\Smiles2Img- Unblocks files (
Unblock-File) to remove Windows security flags automatically- Registers Excel, Word, and PowerPoint add-ins in HKCU registry (no admin rights required, loads automatically on start)
π‘ Future Updates: Running this exact command again in the future automatically upgrades to the latest release!
ποΈ Uninstallation: Runirm https://raw.githubusercontent.com/naramdash/func_SMILES2IMG/main/uninstall.ps1 | iexanytime to cleanly remove all files and registry entries.
- β‘ Real-Time In-Cell Chemical Rendering:
=SMILES2IMG(A2),=KET2IMG(A2),=INCHI2IMG(A2), and=NAME2IMG(A2)render native cell pictures in Microsoft Excel that scale with row/column sizing and recalculate dynamically, with substructure highlighting ("hl:c1ccccc1"). - π¬ Comprehensive Offline Cheminformatics (SMILES Β· InChI Β· KET Parity): Direct cell formulas
=SMILES2NAME,=NAME2SMILES,=KET2SMILES,*2MW,*2EXACTMASS,*2FORMULA,*2INCHI,*2INCHIKEY,*2LOGP,*2TPSA,*2HEAVY,*2RINGS,*2AROMATIC,*2FSP3,=SMILES.MATCH,=INCHI.MATCH, and=KET.MATCH. - π Molecule Info, Vector SVG Copy & Lossless Batch Style: Right-click context submenu and Ribbon tools across Excel, Word, and PowerPoint to copy Substance Name, Formula, MW, SMILES, InChI, InChIKey, or Vector SVG (
Copy SVG), normalize structure styles losslessly while keeping highlights and rotations (Batch Style), and import 11-column.sdfchemical database tables in Excel (Import SDF). - βοΈ Embedded Ketcher 2D Visual Sketcher: Offline molecular editor with warm WebView2 instance reuse supporting atoms, bonds, rings, charges, and multi-step reaction schemes.
- 𧬠Embedded Mol* 3D Macromolecular Viewer: Visualize proteins, nucleic acids, and complexes directly across Excel, PowerPoint, and Word. Download PDB structures by ID, insert rotatable 3D GLB models or 2D publication images, and re-edit anytime with double-click.
- π Lossless Document Persistence: KET coordinates, chemical annotations, and Mol* 3D session recipes (
.molj) are stored losslessly inside document XML metadata (CustomXMLParts), allowing seamless re-editing when sharing files with collaborators. - π‘οΈ Local-First & Privacy-Preserving: Core 2D rendering (EPAM Indigo), 2D sketching (EPAM Ketcher), and all physicochemical/SAR calculations run locally on your PC. Internet access is only used optionally for uncached PubChem name/CAS lookups, RCSB PDB ID fetches in Mol*, and manual update checks.
sequenceDiagram
autonumber
actor User as Excel User
participant F as Functions.cs
participant C as CellImages.cs
participant Cache as Hidden Cache Sheet (__SMILES2IMG)
participant R as MoleculeRenderer (Indigo C++)
participant U as CellImageUpdates.cs (Async Macro)
User->>F: Enter formula =SMILES2IMG(A2, ...)
F->>F: Parse arguments (Background, Color, Transform)
F->>C: Query cell image reference
C->>Cache: Lookup hash key via Excel MATCH
alt Cache Hit
Cache-->>F: Return existing cell ExcelReference (cached)
F-->>User: Display cached image
else Cache Miss
C->>R: In-memory high-res PNG render
R-->>C: Generated PNG byte stream
C->>U: Enqueue async update & return temporary #N/A
U->>Cache: Insert native in-cell picture into hidden sheet
U->>F: Trigger worksheet recalculation
F-->>User: Rendered molecule displayed in cell
end
- Local In-Memory Rendering: Core structure rendering and property calculations execute locally in-process without external rendering servers or Node.js runtimes.
- Cache Persistence & Workbook Portability: Images are cached in an internal hidden sheet (
__SMILES2IMG), allowing direct restoration when workbooks are saved and reopened. - Aspect-Ratio Preserving Shape Updates: Word and PowerPoint add-ins replace structure images in-place without altering coordinates, table cell widths, or margins.
func_SMILES2IMG/
βββ Smiles2Img.sln # Visual Studio / .NET unified solution file
βββ Directory.Build.props # Shared version, TFM (net48), and compiler configuration
βββ package.json # VitePress documentation dependencies and scripts
βββ .editorconfig & .vscode/ # Enforces UTF-8 (no BOM) & CRLF across editors
βββ .github/workflows/ # GitHub Actions workflows
β βββ ci.yml # Release build + 24 Unit/WebView2 E2E test suites
β βββ release.yml # Release packaging, installer encoding check & GitHub Release
β βββ deploy-docs.yml # Docs link & live-media audits + GitHub Pages deployment
βββ docs/ # VitePress documentation source
β βββ .vitepress/ # VitePress config, i18n routing & minimal Vue components (FeatureMedia, FormulaTable, QuickInstallBox, PlaybookPreview, ImageLightbox, SidebarToggle)
β βββ public/ # Live Office media (/media/<id>/* PNG/WebM/MP4/VTT), showcase XLSX & sample SDF
β βββ guide/ # English Guide (/guide/, /guide/faq)
β βββ excel/ # English Excel (/excel/, structures, properties, sar, formulas)
β βββ word/ & powerpoint/ & editor/ # English Word, PowerPoint, and shared Editor (Ketcher, Mol*, publishing)
β βββ ko/ # Korean mirror (ko/guide, ko/excel, ko/word, ko/powerpoint, ko/editor)
βββ src/
β βββ Smiles2Img.Core/ # Shared rendering, Ketcher 2D, Mol* 3D, UI & COM core (net48)
β β βββ Rendering/ # EPAM Indigo 1.49.0 wrapper (MoleculeRenderer, MoleculeInfo, SdfManager, PubChemResolver)
β β βββ Editor/ # Ketcher v3.18.0 & Mol* v5.13.1 (WebView2 1.0.4314.35), RibbonXmlBuilder, WebView2HostHelper, MoleculeActionHelper
β β βββ Notifications/ # Non-intrusive floating badges and notification service
β β βββ COM/ # Shared Office COM interfaces (IDTExtensibility2, IRibbonExtensibility)
β βββ Smiles2Img.Excel/ # Excel-DNA standalone XLL add-in (net48)
β β βββ Functions.cs # 48 in-cell UDFs (=SMILES2IMG, =INCHI2*, =KET2*, =SMILES.MATCH, etc.)
β β βββ FloatFunctions.cs # 4 floating shape UDFs (.FLOAT for Excel 2016-2021)
β β βββ CellImages.cs # In-cell image cache manager
β β βββ FloatingPictures.cs # Cell-anchored floating shape manager
β β βββ SmilesRibbon.cs # [SMILES] ribbon tab & right-click context menu callbacks
β β βββ KetcherEditor.cs # Ketcher commands, quick paste, SDF import, molecule info & double-click hooks
β β βββ KetcherEditor.ShapesAndCells.cs # KET canvas shape & formula cell extraction/insertion helpers
β β βββ ExcelMolstarManager.cs # Mol* 3D viewer integration, floating GLB/PNG insertion & session re-editing
β βββ Smiles2Img.Word/ # Word COM add-in DLL (net48)
β β βββ WordAddIn.cs # IDTExtensibility2 + IRibbonExtensibility + context menu callbacks
β β βββ WordStructureManager.cs # 2D inline/floating structure images, Batch Style, quick paste & double-click
β β βββ WordStructureManager.Molstar.cs # Partial class handling Word Mol* 3D models & CustomXMLParts persistence
β βββ Smiles2Img.PowerPoint/ # PowerPoint COM add-in DLL (net48)
β βββ PowerPointAddIn.cs # IDTExtensibility2 + IRibbonExtensibility + context menu + double-click hook
β βββ PowerPointStructureManager.cs # 2D slide structure shape insertion, Batch Style, quick paste & metadata
β βββ PowerPointStructureManager.Molstar.cs # Partial class handling slide Mol* 3D models & persistence
βββ dist/ # Distribution output directory (generated by Release build / packaging)
β βββ x64/ # 64-bit standalone XLL, Word/PowerPoint DLLs & func_SMILES2IMG-x64.zip
β βββ x86/ # 32-bit standalone XLL, Word/PowerPoint DLLs & func_SMILES2IMG-x86.zip
βββ examples/ # Self-contained interactive Playbooks (Excel .xlsx, Word .docx, PowerPoint .pptx) & sample SDF
βββ assets/ # Visual showcase assets & documentation screenshots
βββ tests/ # Categorized Unit & E2E test suites
β βββ Unit/ # RenderingUnitTests, CheminformaticsUnitTests, UiAndRibbonUnitTests
β βββ E2E/ # WebView2EditorE2ETests (Ketcher/Mol*/Dialogs) & OfficeLiveE2ERunner
β βββ TestAssert.cs # Shared test assertions & suite logging
β βββ Program.cs # Test runner CLI entry point (supports --full)
β βββ Excel-Smoke.ps1 # Standalone Excel COM automation smoke tests
β βββ Excel-365-FeatureTests.ps1 # Live Excel 365 feature & full-option tests
β βββ Excel-DeepStressTests.ps1 # Bulk rendering & edge-case stress test
β βββ packages.lock.json # Reproducible NuGet restore lock file
β βββ Smiles2Img.Tests.csproj
βββ scripts/
β βββ Test-OfficeE2E.ps1 # Unified Live Word, PowerPoint, and Excel COM/XLL + UI E2E suite
β βββ Package-Release.ps1 # Builds Release, strips UTF-8 BOM from installers & creates ZIP archives
β βββ Generate-All-Playbooks.ps1 # Regenerates & verifies Excel, Word & PowerPoint Playbooks and syncs docs/public/examples/
β βββ Generate-Excel-Playbook.ps1 # 10-tab self-contained Excel Playbook generator + formula error audit
β βββ Generate-Word-Playbook.ps1 # 6-page live Word COM Playbook generator with embedded SMILES/KET/Mol* metadata
β βββ Generate-PowerPoint-Playbook.ps1 # 8-slide live PowerPoint COM Playbook generator with Shape.Tags & speaker notes
β βββ Capture-LiveDocsMedia.ps1 # Records live Office screenshots (.png), videos (.webm/.mp4), and captions (.vtt)
β βββ Capture-InteractiveMenus.ps1 # Captures 3-level native Office right-click context menus via UIA + PrintWindow
β βββ Install-OfficeEnglishPack.ps1 # Configures Office UI to en-US (HKCU + optional admin ODT en-US pack installer)
β βββ LiveCaptureEngine.cs # Per-Monitor DPI-aware multi-HWND compositor & UIA helper for live captures
β βββ audit-docs-links.js # Audits internal Markdown/HTML links & base paths across docs/
β βββ audit-docs-media.js # Verifies live PNG/WebM/MP4/VTT coverage & AGENTS.md naming compliance
βββ install.ps1 # Unified Office add-in installer (clean-install/upgrade summary)
βββ uninstall.ps1 # Unified Office add-in uninstaller (removal summary report)
βββ THIRD_PARTY_NOTICES.md # Open-source license acknowledgments
βββ README.md # Main developer documentation (this file)
- Windows 10 / 11
- .NET SDK 8.0 or newer (targeting .NET Framework 4.8)
- Node.js 18+ & npm (for building the VitePress documentation)
Run from the repository root:
# Restore dependencies & build entire solution (packs Excel XLL and compiles Word/PowerPoint add-ins)
dotnet build Smiles2Img.sln -c Release
# Generate release ZIP archives
powershell -ExecutionPolicy Bypass -File scripts\Package-Release.ps1The resulting packed XLLs in dist/x64/ and dist/x86/ contain all dependencies (ExcelDna, IntelliSense, Indigo C++ runtimes) within a single self-extracting archive.
To develop or build the VitePress documentation locally:
# Start local development server with hot reload
npm run docs:dev
# Build static documentation for production
npm run docs:build
# Preview production build locally
npm run docs:previewRuns 31 test suites (no Microsoft Office installation required): verifies 2D PNG/SVG rendering, stereochemical rendering, transforms, molecule properties and complexity descriptors (Formula, MW, Exact Mass, LogP, TPSA, Heavy Atoms, Rings, Aromatic Rings, Fsp3), a 57-compound real-substance benchmark & SMILESβInChIβKET parity matrix (RealSubstanceEdgeCaseTests), Excel/Word/PowerPoint Ribbon & ContextMenu XML (ValidateRibbonXml + VerifiedValidOfficeImageMsos), ExcelFormulaRewriter, ThreadMouseDoubleClickHook filtering, WinForms dialogs (MoleculeInfoDialog, AboutDialog, CopiedToast), and live WebView2 Ketcher v3.18.0 + Mol* v5.13.1 round-trip UI capture:
dotnet run --project tests -c ReleaseExecutes all 31 Unit & WebView2 UI suites plus live Microsoft Word (COM), PowerPoint (COM), and Excel (Live .xll UDFs, SDF Import, Batch Style & Modal UI popups) automation:
dotnet run --project tests -c Release -- --full
# Or run the live Office suite script directly after building:
powershell -NoProfile -STA -ExecutionPolicy Bypass -File scripts/Test-OfficeE2E.ps1# Standalone Excel lifecycle & cache restoration smoke tests
powershell -NoProfile -STA -ExecutionPolicy Bypass -File tests/Excel-Smoke.ps1
# Live Excel 365 feature & full-option suite
powershell -NoProfile -STA -ExecutionPolicy Bypass -File tests/Excel-365-FeatureTests.ps1
# 20-molecule bulk rendering & stress suite
powershell -NoProfile -STA -ExecutionPolicy Bypass -File tests/Excel-DeepStressTests.ps1node scripts/audit-docs-links.js
node scripts/audit-docs-media.js
npm run docs:build- Licensed under the MIT License.
- See THIRD_PARTY_NOTICES.md for licenses and copyright notices of embedded third-party components (EPAM Indigo
1.49.0, EPAM Ketcherv3.18.0, Mol*v5.13.1, IUPAC InChI Toolkit1.07.1, Excel-DNA1.9.0, Microsoft Edge WebView21.0.4314.35).
