<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CAD & WebGL Engineering]]></title><description><![CDATA[CAD & WebGL Engineering]]></description><link>https://zly258.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 00:41:52 GMT</lastBuildDate><atom:link href="https://zly258.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[SteelStructureSuite: Parametric Steel Modeling & Shop Drawing Automation for AutoCAD]]></title><description><![CDATA[Traditional steel structure drafting in AutoCAD relies heavily on static lines or 3D solids—once exploded or modified, changing a span, height, or steel…]]></description><link>https://zly258.hashnode.dev/steelstructuresuite-parametric-steel-modeling-shop-drawing-automation-for-autocad</link><guid isPermaLink="true">https://zly258.hashnode.dev/steelstructuresuite-parametric-steel-modeling-shop-drawing-automation-for-autocad</guid><category><![CDATA[dotnet]]></category><category><![CDATA[C#]]></category><category><![CDATA[Open Source]]></category><category><![CDATA[cad]]></category><dc:creator><![CDATA[zhangly1403]]></dc:creator><pubDate>Fri, 27 Nov 2026 06:23:50 GMT</pubDate><content:encoded><![CDATA[<p>Traditional steel structure drafting in AutoCAD relies heavily on static lines or 3D solids—once exploded or modified, changing a span, height, or steel section often requires manual trimming and redrawing, followed by days of shop drawing layout and manual BOM counting.</p>
<p>I built and open-sourced <strong>SteelStructureSuite</strong> (GPL-3.0) to bring parametric modeling, interactive Jig previews, BOM export, and automated shop drawing generation to 64-bit AutoCAD (2020–2026).</p>
<ul>
<li><strong>GitHub</strong>: <a href="https://github.com/zly258/SteelStructureSuite">https://github.com/zly258/SteelStructureSuite</a></li>
<li><strong>Tech Stack</strong>: AutoCAD .NET API (<code>.NET 4.8</code> &amp; <code>.NET 8.0</code>), C#, WPF Ribbon UI, Autodesk Bundle</li>
</ul>
<h2>Key Capabilities</h2>
<ol>
<li><strong>26 Parametric Structure Types &amp; 176 Section Presets</strong>: Covers portal frames, multi-story equipment frames, walkways/platforms, industrial ladders, trusses, and pipe-rack supports with a built-in catalog of 176 standard steel sections.</li>
<li><strong>Interactive 60 FPS Jig Preview</strong>: Uses AutoCAD <code>EntityJig</code> / <code>DrawJig</code> to render live geometry previews as you move the cursor, reducing drafting errors.</li>
<li><strong>Automated A1–A4 Shop Drawings</strong>: Generates orthographic plan/elevation projections, viewport layouts, standard A1–A4 title blocks, dimensions, and part-number leaders in PaperSpace.</li>
<li><strong>BOM &amp; Engineering Quantities</strong>: Extracts member lengths, weights, and surface areas directly from parametric entities into native AutoCAD tables and Excel sheets.</li>
<li><strong>Cross-Version Autoloader Bundle</strong>: Packaged as an Autodesk <code>.bundle</code> supporting both <code>.NET Framework 4.8</code> (AutoCAD 2020–2024) and <code>.NET 8.0</code> (AutoCAD 2025–2026) without manual <code>NETLOAD</code>.</li>
</ol>
<h2>Current Limitations</h2>
<ul>
<li>Targets 64-bit Windows <strong>AutoCAD</strong> (2020–2026); it is a native desktop CAD plugin, not a standalone web viewer.</li>
<li>Licensed under <strong>GPL-3.0</strong>.</li>
</ul>
<p>If you are developing AutoCAD .NET / WPF plugins or automating structural shop drawings, feel free to explore the source code on GitHub!</p>
]]></content:encoded></item><item><title><![CDATA[P3dPyPad: F5 Hot-Reload Python Workbench & WASM 3D Studio for AutoCAD Plant 3D]]></title><description><![CDATA[Developing parametric Python components for AutoCAD Plant 3D has a major productivity bottleneck: because of Python module caching inside the AutoCAD…]]></description><link>https://zly258.hashnode.dev/p3dpypad-f5-hot-reload-python-workbench-wasm-3d-studio-for-autocad-plant-3d</link><guid isPermaLink="true">https://zly258.hashnode.dev/p3dpypad-f5-hot-reload-python-workbench-wasm-3d-studio-for-autocad-plant-3d</guid><category><![CDATA[cad]]></category><category><![CDATA[Open Source]]></category><category><![CDATA[Python]]></category><category><![CDATA[WebAssembly]]></category><dc:creator><![CDATA[zhangly1403]]></dc:creator><pubDate>Fri, 27 Nov 2026 06:19:29 GMT</pubDate><content:encoded><![CDATA[<p>Developing parametric Python components for <strong>AutoCAD Plant 3D</strong> has a major productivity bottleneck: because of Python module caching inside the AutoCAD process, modifying a script normally forces you to restart AutoCAD (often 30–60 seconds per iteration).</p>
<p>I built and open-sourced <strong>P3dPyPad</strong> (GPL-3.0) to fix this workflow and add offline simulation + batch testing.</p>
<ul>
<li><strong>Live WASM 3D Demo</strong>: <a href="https://zly258.github.io/P3dPyPad/">https://zly258.github.io/P3dPyPad/</a></li>
<li><strong>GitHub</strong>: <a href="https://github.com/zly258/P3dPyPad">https://github.com/zly258/P3dPyPad</a></li>
</ul>
<h2>What's Included</h2>
<ol>
<li><strong>Zero-Restart F5 Hot Reload (<code>PYPAD</code>)</strong>: Uses an in-memory proxy (<code>DEV_PROXY.py</code>) and <code>PnP3dACPAdapter.arx</code> so pressing <code>F5</code> regenerates and replaces 3D solids directly in the active Plant 3D viewport without restarting AutoCAD.</li>
<li><strong>Automated Batch Testing (<code>PYBATCH</code> / <code>PYBATCH_RUN</code>)</strong>: Recursively validates directories of <code>.py</code> scripts, captures isometric previews, and surfaces Python stack traces for CI/regression checks.</li>
<li><strong>Standalone PyOCC Offline Workbench (<code>plant3d_occ/</code>)</strong>: Aligns Plant 3D geometric primitives on <strong>Python 3 + OpenCASCADE (<code>pythonocc-core 7.7+</code>)</strong> and <strong>PySide6</strong>, supporting offline modeling, 45-degree architectural-tick dimensioning, and <code>.acat</code>/<code>.pcat</code>/<code>.peqx</code>/SQLite publishing without launching AutoCAD.</li>
<li><strong>Zero-Dependency WebAssembly 3D Studio (<code>web/</code>)</strong>: Runs OpenCASCADE WASM (<code>occt.js</code>) and Three.js in the browser with orthographic CAD controls and isometric PNG export.</li>
<li><strong>494 Parametric Component Scripts (<code>pyscripts/</code>)</strong>: Covers fittings, flanges, valves, instruments, equipment, and pipe supports (CD/ZD 2010 and HG/T 21629) with co-located <code>.csv</code> spec tables.</li>
<li><strong>Dual-Target .NET Plugin</strong>: Multi-targets <code>net472</code> (AutoCAD Plant 3D 2019–2024) and <code>net8.0-windows</code> (2025–2026) in a single <code>P3dPyPad.bundle</code> package.</li>
</ol>
<h2>Current Limitations</h2>
<ul>
<li>The in-process CAD plugin targets Windows AutoCAD Plant 3D, though the PyOCC workbench and browser WASM studio run standalone.</li>
<li>Licensed under <strong>GPL-3.0</strong>.</li>
</ul>
<p>Try out the browser WASM studio or check out the component scripts on GitHub!</p>
]]></content:encoded></item><item><title><![CDATA[OcctCSharpBridge 3.0: Bridging Open CASCADE 7.9.0 to .NET 8/9/10 for CAD & BIM Apps]]></title><description><![CDATA[Integrating Open CASCADE Technology (OCCT)—the industry-standard open-source C++ B-Rep geometry kernel—into modern .NET (C#) desktop applications usually…]]></description><link>https://zly258.hashnode.dev/occtcsharpbridge-3-0-bridging-open-cascade-7-9-0-to-net-8-9-10-for-cad-bim-apps</link><guid isPermaLink="true">https://zly258.hashnode.dev/occtcsharpbridge-3-0-bridging-open-cascade-7-9-0-to-net-8-9-10-for-cad-bim-apps</guid><category><![CDATA[dotnet]]></category><category><![CDATA[C#]]></category><category><![CDATA[cad]]></category><category><![CDATA[Open Source]]></category><dc:creator><![CDATA[zhangly1403]]></dc:creator><pubDate>Fri, 27 Nov 2026 06:18:52 GMT</pubDate><content:encoded><![CDATA[<p>Integrating <strong>Open CASCADE Technology (OCCT)</strong>—the industry-standard open-source C++ B-Rep geometry kernel—into modern <strong>.NET (C#)</strong> desktop applications usually requires writing fragile, boilerplate-heavy C++/CLI glue code and manually managing OCCT's <code>Handle(Standard_Transient)</code> reference counting against the .NET GC.</p>
<p>I open-sourced <strong>OcctCSharpBridge</strong> to provide a reusable <strong>OCCT 7.9.0 → .NET</strong> bridge for CAD, BIM, and engineering applications.</p>
<ul>
<li><strong>GitHub</strong>: <a href="https://github.com/zly258/OcctCSharpBridge">https://github.com/zly258/OcctCSharpBridge</a></li>
<li><strong>Unified Demo Branch</strong>: <a href="https://github.com/zly258/OcctCSharpBridge/tree/demo">https://github.com/zly258/OcctCSharpBridge/tree/demo</a></li>
</ul>
<h2>Baseline &amp; Architecture</h2>
<ul>
<li><strong>OCCT Version</strong>: 7.9.0</li>
<li><strong>Native ABI</strong>: ABI 5</li>
<li><strong>Managed Targets</strong>: <code>.NET 8 / 9 / 10</code> (built with .NET 10 SDK)</li>
<li><strong>UI Frameworks</strong>: WinForms, WPF, and Avalonia on Windows (<code>win-x64</code>); Avalonia source build on Linux</li>
<li><strong>SDK Distribution</strong>: Installs as a shared Windows x64 SDK (<code>C:\Program Files\OcctCSharpBridge\SDK\3.0\win-x64</code> or via <code>OCCTCSHARPBRIDGE_SDK</code>) so consumer apps reference the system SDK directly without duplicating copies across repos.</li>
</ul>
<h2>What It Solves</h2>
<ul>
<li>Exposes OCCT B-Rep modeling, boolean operations, STEP/IGES/BREP import &amp; export, and 3D visualization to managed C# code.</li>
<li>Eliminates the need for every .NET CAD/BIM team to maintain custom C++/CLI wrappers from scratch.</li>
</ul>
<h2>Current Limitations</h2>
<ul>
<li>Official prebuilt binaries target <strong>Windows x64</strong> (Linux Avalonia requires building from source).</li>
<li>Requires matching the OCCT 7.9.0 runtime.</li>
</ul>
<p>If you are building CAD/BIM tools in C# / .NET / Avalonia and using Open CASCADE under the hood, feedback and contributions are welcome!</p>
]]></content:encoded></item><item><title><![CDATA[3dbrowser: Streaming a 2.9GB / 186M-Triangle BIM Model in Three.js Under ~3GB JS Heap]]></title><description><![CDATA[Standard web glTF/OBJ viewers usually run out of memory or stall for minutes when given multi-gigabyte industrial or BIM assemblies. I built and…]]></description><link>https://zly258.hashnode.dev/3dbrowser-streaming-a-2-9gb-186m-triangle-bim-model-in-three-js-under-3gb-js-heap</link><guid isPermaLink="true">https://zly258.hashnode.dev/3dbrowser-streaming-a-2-9gb-186m-triangle-bim-model-in-three-js-under-3gb-js-heap</guid><category><![CDATA[WebGL]]></category><category><![CDATA[TypeScript]]></category><category><![CDATA[Open Source]]></category><category><![CDATA[ThreeJS]]></category><dc:creator><![CDATA[zhangly1403]]></dc:creator><pubDate>Fri, 27 Nov 2026 06:16:50 GMT</pubDate><content:encoded><![CDATA[<p>Standard web glTF/OBJ viewers usually run out of memory or stall for minutes when given multi-gigabyte industrial or BIM assemblies. I built and open-sourced <strong>3dbrowser</strong> (GPL-3.0) to keep browser memory bounded and render the first frame quickly.</p>
<ul>
<li><strong>GitHub</strong>: <a href="https://github.com/zly258/3dbrowser">https://github.com/zly258/3dbrowser</a></li>
<li><strong>Tech Stack</strong>: React 19, Three.js, TypeScript, WebAssembly (<code>web-ifc</code>, <code>occt-import-js</code>)</li>
</ul>
<h2>Why a Custom Streaming Format?</h2>
<p>When a 2+ GB BIM or plant assembly is exported to plain glTF/JSON, parsing and expanding it in the browser easily multiplies memory usage several times over, crashing the tab. Even if it fits in memory, hundreds of thousands of separate meshes produce too many WebGL draw calls.</p>
<p><code>3dbrowser</code> is designed around six-figure component counts from the ground up:</p>
<ol>
<li><strong>NBIM v11 Single-File Container</strong>: Packs geometry, properties, and the structure tree into one binary container (with fixed-point coordinate quantization and columnar blocks).</li>
<li><strong>Octree Chunk Streaming</strong>: Instead of waiting for the entire file to download before rendering, chunks stream in by spatial octree so the first frame appears in ~3–4.5s.</li>
<li><strong>Three.js <code>BatchedMesh</code></strong>: Merges heterogeneous components sharing materials into far fewer draw calls to maintain smooth frame rates.</li>
<li><strong>On-Demand Property Resolution</strong>: Component metadata is resolved when selected rather than kept resident in memory alongside geometry.</li>
</ol>
<h2>Benchmark &amp; Capabilities</h2>
<ul>
<li>Tested on a <strong>2.9 GB</strong> NBIM file (<strong>231,353 components</strong>, <strong>186 million rendered triangles</strong>) in a single browser tab while keeping JS heap under <strong>~3 GB</strong>.</li>
<li>Supports <strong>IFC</strong> (<code>web-ifc</code>), <strong>STEP/STP &amp; IGES/IGS</strong> (<code>occt-import-js</code>), <strong>GLB/GLTF, FBX, OBJ, STL, PLY, 3DS, DAE</strong>, and <strong>NBIM v11</strong> (<code>.nbim</code>).</li>
<li>Includes distance/angle/point measurement, real-time sectioning planes, hierarchical scene tree search, and marquee box selection.</li>
</ul>
<h2>Current Limitations</h2>
<ul>
<li>Multi-GB models need to be converted to the NBIM v11 format first; loading raw multi-GB IFC or STEP files directly in-browser is still bound by client-side WASM memory.</li>
<li>Licensed under <strong>GPL-3.0</strong>.</li>
</ul>
<p>If you are working on WebGL CAD/BIM viewers or Three.js <code>BatchedMesh</code> pipelines, I'd love your feedback on the repo!</p>
]]></content:encoded></item></channel></rss>