<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Han on Medium]]></title>
        <description><![CDATA[Stories by Han on Medium]]></description>
        <link>https://medium.com/@han-aectech?source=rss-7f2dbc61be19------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vo6PBCpQTVdlR77BWlaSig.png</url>
            <title>Stories by Han on Medium</title>
            <link>https://medium.com/@han-aectech?source=rss-7f2dbc61be19------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 04:48:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@han-aectech/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Global variables in n8n loop]]></title>
            <link>https://han-aectech.medium.com/global-variables-on-n8n-bb56b5902170?source=rss-7f2dbc61be19------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb56b5902170</guid>
            <category><![CDATA[n8n]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Han]]></dc:creator>
            <pubDate>Thu, 27 Nov 2025 06:23:11 GMT</pubDate>
            <atom:updated>2025-11-27T14:40:48.654Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LtK8ELkUCe5ucWpysn3cPQ.png" /></figure><p>My way of creating global variables on n8n, simple, readable, and re-usable.</p><p><a href="https://docs.n8n.io/code/cookbook/builtin/get-workflow-static-data/"><strong>N8n docs</strong></a></p><p>Only Code node is used here, I’m using Javascript but there&#39;s an equivalent in Python as well!</p><h3>1. Init</h3><p>Initiate global variable counter, you can use other variable names as you like.</p><pre>const workflowStaticData = $getWorkflowStaticData(&quot;global&quot;); <br>//init variable Update or set global variable.<br>workflowStaticData.counter = 0; </pre><h3>2. Update</h3><p>Update or set global variable.</p><pre>const workflowStaticData = $getWorkflowStaticData(&#39;global&#39;); <br>//update variable<br>workflowStaticData.counter += changedRows.length</pre><h3>3. Get</h3><p>Access global variable anywhere in your workflow !</p><pre>const workflowStaticData = $getWorkflowStaticData(&#39;global&#39;); <br>//get variable<br>const count = workflowStaticData.counter; </pre><p>End</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb56b5902170" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handling duplicated data in Python pandas dataframes — duplicate() and drop_duplicates() methods]]></title>
            <link>https://han-aectech.medium.com/handling-duplicated-data-in-python-pandas-dataframes-duplicate-and-drop-duplicates-methods-aaef7ef5e6b0?source=rss-7f2dbc61be19------2</link>
            <guid isPermaLink="false">https://medium.com/p/aaef7ef5e6b0</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Han]]></dc:creator>
            <pubDate>Fri, 26 Sep 2025 06:10:57 GMT</pubDate>
            <atom:updated>2025-09-26T06:10:57.242Z</atom:updated>
            <content:encoded><![CDATA[<h3>Handling duplicated data in Python pandas dataframes — duplicate() and drop_duplicates() methods</h3><p>When working with datasets, identifying duplicate records is crucial for data quality. Assume this dataset throughout this post.</p><pre>import pandas as pd <br># Sample data with duplicates<br>data = {<br>  &#39;name&#39;: [&#39;Alice&#39;, &#39;Bob&#39;, &#39;Alice&#39;, &#39;Charlie&#39;, &#39;Bob&#39;, &#39;Alice&#39;], <br>  &#39;age&#39;: [25, 30, 25, 35, 0, 25]<br>}<br>df = pd.DataFrame(data)</pre><h3>Finding Duplicated Rows</h3><p>Use duplicated() to <strong>drop first duplicate</strong> and show <strong>other</strong> occurrence.</p><pre># Find all duplicate rows <br>duplicates = df[ df.duplicated() ]<br><br>print(duplicates) <br>**Output** <br>```<br>  name age <br>2 Alice 25 <br>5 Alice 25 <br>```</pre><h4>`keep` Parameter</h4><p>Use duplicated() with keep=False to show <strong>all</strong> duplicate occurrences.</p><pre># Find all duplicate rows <br>duplicates = df[df.duplicated(keep=False)] <br><br>print(duplicates) <br>**Output** <br>```<br>  name age<br>0 Alice 25 <br>2 Alice 25 <br>5 Alice 25<br>```</pre><p>The method’s keep option includes False, &#39;first&#39;, &#39;last&#39;,defaulted to first .Since duplicate() generates a boolean mask, its more intuitive to think of keep as drop instead, since it &#39;drops&#39; first row instead of &#39;keeping&#39; it.</p><h4>`subset` Parameter</h4><p>Use duplicated() with subset=[&#39;x_column&#39;] to show occurrences with same values in the &#39; x_column &#39;.</p><pre># Find all duplicate rows in &#39;age&#39; column <br>duplicates = df[ df.duplicated(keep=False, subset=[&#39;age&#39;]) ] <br><br>print(duplicates) <br>**Output** <br>```<br>  name age <br>0 Alice 25 <br>2 Alice 25 <br>5 Alice 25 <br>```</pre><h3>Removing Duplicates</h3><p>To remove, drop_duplicates() removes all duplicate rows, i.e. <strong>same values along all columns</strong>, by default.</p><pre># Remove duplicates <br>df_clean = df.drop_duplicates() <br><br>print(df_clean) <br>**Output** <br>```<br>  name age<br>0 Alice 25 <br>1 Bob 30 <br>3 Charlie 35 <br>4 Bob 0<br>```</pre><p>Use subset to remove duplicates based on <strong>specific columns</strong> while keeping the first occurrence.</p><pre># Remove duplicates based on &#39;name&#39; column <br>df_clean = df.drop_duplicates(subset=[&#39;name&#39;]) <br><br>print(df_clean) <br>**Output** <br>``` <br>  name age <br>0 Alice 25 <br>1 Bob 30 <br>3 Charlie 35 <br>```</pre><p>The keep parameter applies as well. Use keep=False if you wish to remove all duplicates from your dataframe.</p><pre># Remove duplicates based on &#39;name&#39; column <br>df_clean = df.drop_duplicates(subset=[&#39;name&#39;], keep=False) <br><br>print(df_clean) <br>**Output** <br>```<br>  name age <br>3 Charlie 35 <br>```</pre><p>End</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aaef7ef5e6b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I start every Python project]]></title>
            <link>https://han-aectech.medium.com/how-i-start-every-python-project-805e989caee5?source=rss-7f2dbc61be19------2</link>
            <guid isPermaLink="false">https://medium.com/p/805e989caee5</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[venv]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Han]]></dc:creator>
            <pubDate>Mon, 15 Sep 2025 06:17:07 GMT</pubDate>
            <atom:updated>2025-09-15T06:18:21.316Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Just a template for myself to Ctrl + C , Ctrl + V</blockquote><p>Create and activate <strong>local</strong> environment.</p><pre># Create environment <br>python -m venv myenv  </pre><pre># Activate environment, you should see (myenv) on your terminal line .\myenv\Scripts\activate</pre><p>Install your packages</p><pre># Install packages you need <br>pip install json requests</pre><p>OR if you’re using an existing repository with requirements.txt .</p><pre># pip freeze &gt; requirements.txt<br>pip install -r requirements.txt</pre><p>Create a skeleton README.md file.</p><pre># Project Title</pre><pre>A brief description of what this project does and who it&#39;s for.</pre><pre>## Installation</pre><pre>Install the project and its dependencies using pip:</pre><pre>```bash<br>pip install -r requirements.txt<br>```</pre><pre>## Usage</pre><pre>Provide instructions and examples for use.</pre><pre>```python<br># Code example<br>```</pre><pre>## Contributing</pre><pre>Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.</pre><pre>Please make sure to update tests as appropriate.</pre><pre>## License</pre><pre>[MIT](https://choosealicense.com/licenses/mit/)</pre><p>Create a standard .gitignore file.</p><pre># Environments<br>myenv/<br>.env<br>.venv<br>env/<br>venv/<br>ENV/<br>env.bak/<br>venv.bak/<br># Byte-compiled / optimized / DLL files<br>__pycache__/<br>*.py[cod]<br>*$py.class<br># C extensions<br>*.so<br># Distribution / packaging<br>.Python<br>build/<br>develop-eggs/<br>dist/<br>downloads/<br>eggs/<br>.eggs/<br>lib/<br>lib64/<br>parts/<br>sdist/<br>var/<br>wheels/<br>share/python-wheels/<br>*.egg-info/<br>.installed.cfg<br>*.egg<br>MANIFEST<br># PyInstaller<br># Usually these files are written by a python script from a template<br># before PyInstaller builds the exe, so as to inject date/other infos into it.<br>*.manifest<br>*.spec<br># Installer logs<br>pip-log.txt<br>pip-delete-this-directory.txt<br># Unit test / coverage reports<br>htmlcov/<br>.tox/<br>.coverage<br>.coverage.*<br>.cache<br>.pytest_cache/<br>.hypothesis/<br># MyPy<br>.mypy_cache/<br>.dmypy.json<br>dmypy.json<br># Jupyter Notebook<br>.ipynb_checkpoints<br>.jupyter/<br>*.ipynb<br># Editors<br>.vscode/<br>.idea/<br>*.sublime-project<br>*.sublime-workspace<br>.DS_Store<br>Thumbs.db<br># Misc<br>*.bak<br>*.swp<br>*~<br>.python-version</pre><p>End</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=805e989caee5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MUST-HAVE Debugging tools for Revit Plugin Developers ⌨️]]></title>
            <link>https://han-aectech.medium.com/must-have-debugging-tools-for-revit-plugin-developers-%EF%B8%8F-82537c512c74?source=rss-7f2dbc61be19------2</link>
            <guid isPermaLink="false">https://medium.com/p/82537c512c74</guid>
            <category><![CDATA[computational-design]]></category>
            <category><![CDATA[revit]]></category>
            <category><![CDATA[dynamo]]></category>
            <category><![CDATA[autodesk]]></category>
            <category><![CDATA[revitapi]]></category>
            <dc:creator><![CDATA[Han]]></dc:creator>
            <pubDate>Tue, 22 Jul 2025 13:10:13 GMT</pubDate>
            <atom:updated>2025-08-07T13:42:15.025Z</atom:updated>
            <content:encoded><![CDATA[<p>Personally, these are <strong>2</strong> <strong>NON-NEGOTIABLES</strong> before I start working on a Revit Plugin! These <strong>FREE </strong>tools have improved my productivity by (<strong>minimally</strong>) a 100%. Do yourself a favour, use them !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vb33Xiq9SSiIzxZHUFA9EQ.png" /></figure><h3>1. Revit Look-up</h3><p>The Revit Look-up tool will help you inspect your model data to the finest detail, which is extremely helpful when handling <strong>parameters..</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N3xY9u2d5K_B_Fo-2CpbOA.png" /></figure><p>…and <strong>geometry</strong> (literally impossible without Revit Lookup).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RimErmpi2n4lHKiMPcTg2A.png" /></figure><p><strong>Github link:</strong> <a href="https://github.com/lookup-foundation/RevitLookup">https://github.com/lookup-foundation/RevitLookup</a></p><h3>2. Revit Add-in Manager</h3><p>If you’re not using the Revit Add-in Manager, you’re probably re-opening Revit <strong>everytime you have a code change</strong>. Well…stop doing that. Please.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAPaFuboekjw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAPaFuboekjw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FAPaFuboekjw%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c983c9c33254389fe1a5fe1e6a20368/href">https://medium.com/media/5c983c9c33254389fe1a5fe1e6a20368/href</a></iframe><p>With the Revit Add-in Manager, this shall be your new workflow.</p><ol><li>Write Code</li><li>Build .dll file</li><li>Load .dll file using Revit Add-in Manager (Once off unless you have new commands)</li><li>Run command using Revit Add-in Manager — Debug</li><li>Amend code</li><li>Re-build</li></ol><p>An additional benefit, you do not even need to create a User Interface (UI) to start running your code, i.e. buttons in IExternalApplication .</p><p>All you need is write a command, i.e. IExternalCommand, and you’re off !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vXPuxIGpGttiWdsXGFXidQ.png" /></figure><p>Simply a huge game-changer to my Revit plugin development experience.</p><p><strong>Github link: </strong><a href="https://github.com/chuongmep/RevitAddInManager">https://github.com/chuongmep/RevitAddInManager</a></p><h4>Pro-tip : Assign Shortcuts</h4><p>You’ll never realise how much time you’ve wasted clicking around until you try using shortcuts! <strong>*Trust me, you’ll never look back!*</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1f0GC1qEMRBP0w4K9HyMLw.png" /></figure><p>I hope this guide has been helpful. Happy coding !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82537c512c74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Place Revit Rooms and Spaces with “Visual Center” method]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://han-aectech.medium.com/place-revit-rooms-and-spaces-with-visual-center-method-6e09f557211e?source=rss-7f2dbc61be19------2"><img src="https://cdn-images-1.medium.com/max/1406/1*UpRmTcza3cf7Z8-A2W2wYg.png" width="1406"></a></p><p class="medium-feed-snippet">When working with geometry in Revit, there are scenarios where you might need to find the center of a polygon. Unlike the centroid, which&#x2026;</p><p class="medium-feed-link"><a href="https://han-aectech.medium.com/place-revit-rooms-and-spaces-with-visual-center-method-6e09f557211e?source=rss-7f2dbc61be19------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://han-aectech.medium.com/place-revit-rooms-and-spaces-with-visual-center-method-6e09f557211e?source=rss-7f2dbc61be19------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e09f557211e</guid>
            <category><![CDATA[revit]]></category>
            <category><![CDATA[dynamo]]></category>
            <category><![CDATA[geometry]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[computational]]></category>
            <dc:creator><![CDATA[Han]]></dc:creator>
            <pubDate>Tue, 15 Jul 2025 05:44:28 GMT</pubDate>
            <atom:updated>2025-07-23T06:29:12.582Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Revit 2025+ Plugin setup update guide]]></title>
            <link>https://han-aectech.medium.com/revit-2025-plugin-setup-update-guide-91e8d8983481?source=rss-7f2dbc61be19------2</link>
            <guid isPermaLink="false">https://medium.com/p/91e8d8983481</guid>
            <category><![CDATA[revitapi]]></category>
            <category><![CDATA[revit]]></category>
            <category><![CDATA[autodesk]]></category>
            <category><![CDATA[bim]]></category>
            <category><![CDATA[dynamo]]></category>
            <dc:creator><![CDATA[Han]]></dc:creator>
            <pubDate>Thu, 19 Jun 2025 13:51:42 GMT</pubDate>
            <atom:updated>2025-06-20T03:41:30.802Z</atom:updated>
            <content:encoded><![CDATA[<h3>Revit 2025+ Plugin Setup Update Guide</h3><p>From Revit 2025 onwards, Revit API has migrated from .NET Framework to .NET 8.0 Core. Here’s my current setup !</p><p>Full guide here : <a href="https://medium.com/@han-aectech/step-by-step-guide-to-developing-your-first-revit-plugin-525f978b0583"><strong>Step-by-Step Guide to Developing your First Revit Plugin</strong></a></p><h4>1. Install .NET 8.0 Core</h4><p>I already have Visual Studio installed, simply</p><ol><li>Run Visual Studio Installer</li><li>Click Modify</li><li>Click Individual Components</li><li>Check .NET 8.0 Runtime (Long Term Support)</li></ol><p>If you do not have Visual Studio installed, refer to my previous article <a href="https://medium.com/@han-aectech/step-by-step-guide-to-developing-your-first-revit-plugin-525f978b0583"><strong>Step-by-Step Guide to Developing your First Revit Plugin</strong></a> !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xksXpaanSEkN5XUmjDPgRQ.png" /></figure><h4>2. Create a new project</h4><p>Create and configure your new project.</p><ol><li>Run Visual Studio</li><li>Click File</li><li>Click New</li><li>Click Project</li><li>Select Class Library</li><li>Select .NET 8.0 (Long Term Support)</li><li>Click Create</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OtefoIY0ghtayl5yikbA1Q.png" /></figure><h3>Miscellaneous information</h3><p>These are the main differences in setup for Revit 2025 onwards. The following are more information that might be applicable too</p><h4><strong>i. Using WPF</strong></h4><p>With the target version changed to .NET 8.0 Core , you might notice that WPF files ( UserControl.xaml, Window.xaml, etc) are <strong>missing </strong>when you try to add them.</p><ol><li>Double click on your Project file, i.e. MyFirstRevitPlugin.csproj</li></ol><p>You should see an XML file like this.</p><pre>&lt;Project Sdk=&quot;Microsoft.NET.Sdk&quot;&gt;<br>  &lt;PropertyGroup&gt;<br>    &lt;TargetFramework&gt;net8.0&lt;/TargetFramework&gt;<br>    &lt;ImplicitUsings&gt;enable&lt;/ImplicitUsings&gt;<br>    &lt;Nullable&gt;enable&lt;/Nullable&gt;<br>  &lt;/PropertyGroup&gt;<br>  &lt;ItemGroup&gt;<br>    &lt;Reference Include=&quot;RevitAPI&quot;&gt;<br>      &lt;HintPath&gt;..\..\..\..\..\..\Program Files\Autodesk\Revit 2025\RevitAPI.dll&lt;/HintPath&gt;<br>      &lt;Private&gt;False&lt;/Private&gt;<br>    &lt;/Reference&gt;<br>    &lt;Reference Include=&quot;RevitAPIUI&quot;&gt;<br>      &lt;HintPath&gt;..\..\..\..\..\..\Program Files\Autodesk\Revit 2025\RevitAPIUI.dll&lt;/HintPath&gt;<br>      &lt;Private&gt;False&lt;/Private&gt;<br>    &lt;/Reference&gt;<br>  &lt;/ItemGroup&gt;<br>&lt;/Project&gt;</pre><p>2. Now edit the TargetFramework and add another line UseWPF , as follo<em>ws.</em></p><pre>...<br>&lt;PropertyGroup&gt;<br>  &lt;TargetFramework&gt;net8.0-windows&lt;/TargetFramework&gt;<br>  &lt;ImplicitUsings&gt;enable&lt;/ImplicitUsings&gt;<br>  &lt;Nullable&gt;enable&lt;/Nullable&gt;<br>  &lt;UseWPF&gt;true&lt;/UseWPF&gt;<br>&lt;/PropertyGroup&gt;<br>...</pre><p>3. Save file &amp; Restart Visual Studio</p><p>You should now see WPF components added.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xgAFcyCQpp6H2Ivw0p9SQQ.png" /></figure><h4>ii. Add Revit API Reference</h4><p>While the original method of referencing .dll files still work, there’s another method that works as well.</p><ol><li>Right click Dependencies</li><li>ClickManage Nuget Packages</li><li>Search for Autodesk.Revit.SDK</li><li>Click Install</li></ol><h4>iii. Other helpful links on Revit 2025 migration</h4><ul><li>The Building Coder blog : <a href="https://thebuildingcoder.typepad.com/blog/2024/04/migrating-from-net-48-to-net-core-8.html"><strong>Migrating from .NET 4.8 to .NET Core 8</strong></a></li><li>Multi-version template : <a href="https://github.com/romangolev/RevitAddinTemplate.Multiversion"><strong>Github repository</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91e8d8983481" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Geometric pattern with the Golden Ratio]]></title>
            <link>https://han-aectech.medium.com/geometric-pattern-with-the-golden-ratio-8938dd5b7892?source=rss-7f2dbc61be19------2</link>
            <guid isPermaLink="false">https://medium.com/p/8938dd5b7892</guid>
            <category><![CDATA[dynamo]]></category>
            <category><![CDATA[bim]]></category>
            <category><![CDATA[revit]]></category>
            <dc:creator><![CDATA[Han]]></dc:creator>
            <pubDate>Thu, 07 Sep 2023 16:00:11 GMT</pubDate>
            <atom:updated>2023-09-07T16:00:11.993Z</atom:updated>
            <content:encoded><![CDATA[<p>I was playing around with geometric patterns and thought of experimenting with the <a href="https://en.wikipedia.org/wiki/Fibonacci_number">Fibonacci sequence</a> or the <a href="https://en.wikipedia.org/wiki/Golden_ratio">Golden Ratio</a> (Something taught in college which I never really understood). Apparently, patterns have been observed in natural phenomenon, such as arrangement of leaves and branching on trees, that takes after the Fibonacci sequence. Pretty cool stuff. Now, lets run through the back-end of creating the pattern illustrated.</p><p>We begin by using the origin point (0, 0, 0) as a reference.</p><p>We can imagine that all points that makes up the pattern are simply translated and rotated from the reference point.</p><p>With this idea in mind, let’s look at the nodes where the magic happens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*74qEcCNR_VrFqpsp.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ziHe8ZaK6ZgwV6WP0Mis2A.png" /></figure><h3>Map color by Distance from Origin</h3><p>We could make the pattern prettier by mapping colors to it, using distance from the origin as an input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qy6B6UzD3n4LGBnG.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/0*b-aE0XNqPO0HUtID.png" /></figure><p>I hope you enjoyed this post as I did playing around with it! To be honest, I really couldn’t think of any pragmatic applications for this idea yet, so let me know if you do!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8938dd5b7892" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Section Views in Revit Dynamo!]]></title>
            <link>https://han-aectech.medium.com/create-section-views-in-revit-dynamo-b07637eea514?source=rss-7f2dbc61be19------2</link>
            <guid isPermaLink="false">https://medium.com/p/b07637eea514</guid>
            <category><![CDATA[revit]]></category>
            <category><![CDATA[revitapi]]></category>
            <category><![CDATA[dynamo]]></category>
            <category><![CDATA[autocad]]></category>
            <category><![CDATA[autodesk]]></category>
            <dc:creator><![CDATA[Han]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 16:31:25 GMT</pubDate>
            <atom:updated>2023-07-12T16:31:25.740Z</atom:updated>
            <content:encoded><![CDATA[<p>Creating sections for documentation is an essential yet painful part of the modelling process, this post will walk you through the steps of creating individual aligned sections for walls in Dynamo.</p><p>When attempting new problems, I find that it is always easier to reverse engineer solutions in Dynamo. Since the end goal is to create sections, let us start by first examining nodes that create Section Views for us, i.e. SectionView.ByBoundingBox and SectionView.ByCoordinateSystemMinPointMaxPoint nodes.</p><h3>SectionView.ByBoundingBox</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/0*pIjsWpIuOED9Pwrf.png" /><figcaption>SectionView.ByBoundingBox node</figcaption></figure><p>It may be tempting to choose the SectionView.ByBoundingBox method due to its simplicity, but unfortunately it didn’t achieve what we wanted due to the lack of control inputs (See below).</p><p>Hence, let’s try examine the SectionView.ByCoordinateSystemMinPointMaxPoint method instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ifqGazFkCyVcXcJ4.png" /><figcaption>SectionView.ByBoundingBox Results</figcaption></figure><h3>SectionView.ByCoordinateSystemMinPointMaxPoint</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/0*uKBgCr64pWalEkhE.png" /><figcaption>SectionView.ByCoordinateSystemMinPointMaxPoint node</figcaption></figure><p>The node takes in three inputs,</p><ol><li>Coordinate system</li><li>Minimum point of Section view</li><li>Maximum point of Section view</li></ol><blockquote>*Note : Inputs 2 &amp; 3 are Point objects that references the new Coordinate system (input 1)</blockquote><p>Let’s walk through each input.</p><h3>Coordinate system input</h3><p>The coordinate system input grants users the ease to define a separate coordinate system for each instance, which would be extremely useful for us to create sections that are individually aligned to each wall. The nodes below creates a new coordinate system on the center of each wall, we can imagine having one coordinate system attached to the center of each wall instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o6rjjYj8OHduTm4d.png" /></figure><p>Two examples have been illustrated on the plan and 3-D views below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AwzUM7TLzqA4m0rE.png" /></figure><h3>Minimum &amp; Maximum Points input</h3><p>With the coordinate system set, getting your minimum and maximum points should be a breeze. Let’s begin by trying to understand what does the minimum and maximum points mean.</p><p>If we select any Section view in Revit, we can see the glowing blue outline of a section view’s extents in both Plan and Section views as illustrated below. On the same image, the Minimum and Maximum points refers to the corners marked on the extents of both Plan and Section views.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_AHYUNOxrWB8VTQc.png" /></figure><p>With that understanding, some simple data manipulation using each wall’s <strong>length L</strong>, and <strong>height H</strong>, will help us get our minimum and maximum points. I have <strong>preset section offsets</strong> to be <strong>500</strong> to ensure the wall’s face show up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*chtm6K3n7ALONNIB.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2dzl0J9q8vLfWbEs.png" /></figure><p>And that’s it! You can automate placement of section views for your own specific application now!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hpcmmW9WzFglqtFK.png" /></figure><h3>MEP opening sample application</h3><p>We could also add upstream rules for creation of section views to make the Dynamo graph more meaningful. A sample application could be creating sections for walls with MEP services, to let structural Engineers inspect penetration sizes. Check out the video for creating sections on walls with Ducts!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FbzaVxGfAjsI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DbzaVxGfAjsI&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/33865049921bf185b25cc6fef3b1c92b/href">https://medium.com/media/33865049921bf185b25cc6fef3b1c92b/href</a></iframe><p>I hope you’ve enjoyed this post and will be of some use to you! Dynamo file can be download <a href="https://drive.google.com/open?id=1als3JAyoXt3bsxaGUTgL7NoiSsd-9lsm">here</a>! Do drop a comment if there’s any queries, I’ll be happy to help!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b07637eea514" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-by-Step Guide to Developing your First Revit Plugin]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://han-aectech.medium.com/step-by-step-guide-to-developing-your-first-revit-plugin-525f978b0583?source=rss-7f2dbc61be19------2"><img src="https://cdn-images-1.medium.com/max/2539/1*kM9R3grhFg5grzr9OMMy1w.png" width="2539"></a></p><p class="medium-feed-snippet">Getting Started</p><p class="medium-feed-link"><a href="https://han-aectech.medium.com/step-by-step-guide-to-developing-your-first-revit-plugin-525f978b0583?source=rss-7f2dbc61be19------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://han-aectech.medium.com/step-by-step-guide-to-developing-your-first-revit-plugin-525f978b0583?source=rss-7f2dbc61be19------2</link>
            <guid isPermaLink="false">https://medium.com/p/525f978b0583</guid>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[plugins]]></category>
            <category><![CDATA[revitapi]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[revit]]></category>
            <dc:creator><![CDATA[Han]]></dc:creator>
            <pubDate>Sun, 09 Jul 2023 09:59:31 GMT</pubDate>
            <atom:updated>2025-06-20T03:40:54.655Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Official release of DocuZone !]]></title>
            <link>https://han-aectech.medium.com/official-release-of-docuzone-400cf1501126?source=rss-7f2dbc61be19------2</link>
            <guid isPermaLink="false">https://medium.com/p/400cf1501126</guid>
            <category><![CDATA[revit]]></category>
            <category><![CDATA[bim]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[autodesk]]></category>
            <dc:creator><![CDATA[Han]]></dc:creator>
            <pubDate>Thu, 10 Jun 2021 08:07:52 GMT</pubDate>
            <atom:updated>2021-06-10T08:07:52.533Z</atom:updated>
            <content:encoded><![CDATA[<h3>Official release of DocuZone !</h3><p>Official release of DocuZone !!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*XQiYXNM4wEepmfJG7AxuaQ.png" /></figure><p>DocuZone detects model elements’ respective locations within Zones (Scope Boxes) and writes them to the respective element’s parameter. Check out how easy it is to use DocuZone!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fsz8CMKZxXSk&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dsz8CMKZxXSk&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2Fsz8CMKZxXSk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d3479b0cc2bb67532b327ee0becae921/href">https://medium.com/media/d3479b0cc2bb67532b327ee0becae921/href</a></iframe><p><strong>Download from Autodesk’s Appstore : <br></strong><a href="https://apps.autodesk.com/RVT/en/Detail/Index?id=6854541013581777656&amp;appLang=en&amp;os=Win64">https://apps.autodesk.com/RVT/en/Detail/Index?id=6854541013581777656&amp;appLang=en&amp;os=Win64</a></p><p>Subscribe for more updates on DocuZone ! We are working hard to introduce new tools for the AEC industry !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=400cf1501126" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>