Author: Madhukar Moogala

  • Adding Metadata to DWF Sheets with AcDMMReactor in AutoCAD

    By Madhukar Moogala When publishing to DWF or DWFx in AutoCAD, embedding metadata into sheets and entities can provide powerful downstream benefits, whether for facility management, digital twins, or simply making the file more intelligent. The AcDMMReactor API gives you fine-grained control over this. [Keywords]= AcDMMEPlotPropertyVec,AcDMMEPlotProperty,AcDMMSheetReactorInfo,AcDMMEPlotProperties,AcGlobAddDMMReactor  What Is AcDMMReactor? AcDMMReactor is part of the Autodesk…

  • Unit Testing AutoCAD with NUnit + AcCoreConsole

    By Madhukar Moogala Why Unit Test AutoCAD Code? If you’re developing on the AutoCAD .NET API (AcDb managed layer)—handling things like blocks, entities, transactions, dynamic properties, or geometry—you probably want: Inspires confidence that your logic works across DWG files Repeatable tests that run in isolation Fast feedback without relying on GUI interaction That’s exactly what…

  • Retrieving Iso Arrow Symbols and Pipe Port Connections

    <?xml encoding=”UTF-8″>By Madhukar Moogala We recently received a question from a customer asking how to programmatically access an ISO Arrow entity and its direction within AutoCAD Plant 3D. Since detailed documentation on this specific task can be hard to find, I decided to share the code I developed to achieve this. The C# snippet below…

  • How to Get Viewport Bounds in AutoCAD Model Space

    <?xml encoding=”UTF-8″>By Madhukar Moogala When working with viewports in AutoCAD, particularly when translating between paper space and model space, it is often necessary to determine the viewport boundaries within the model space. This blog post will guide you through obtaining viewport extents and transforming them appropriately. Understanding the Viewport Transformation AutoCAD viewports in paper space…

  • AutoCAD & Civil 3D Add-in Development with .NET Core Templates

    <?xml encoding=”UTF-8″>By Madhukar Moogala Developing AutoCAD and Civil 3D add-ins requires setting up boilerplate code, managing dependencies, and ensuring compatibility with the latest .NET versions. To simplify this process, we created a .NET Core-based project template that allows developers to quickly scaffold AutoCAD and Civil 3D add-ins using a single CLI instruction. How to Use…

  • Integrating WebView2 with AutoCAD: A Rich UI for Data Visualization

    <?xml encoding=”UTF-8″>By Madhukar Moogala AutoCAD’s native UI is powerful, but sometimes we need modern, interactive, and web-based interfaces to enhance productivity. This sample demonstrates how to integrate WebView2 inside AutoCAD using .NET, enabling developers to display rich HTML dashboards and visualize data extracted from AutoCAD drawings.   Data Extraction Overview The extracted data is linked…

  • How To Get Dynamic Block from Anonymous Block

    <?xml encoding=”UTF-8″>By Madhukar Moogala A common request from developers is how to retrieve the original Dynamic Block reference from a given anonymous block. This is useful when working with AutoCAD&rsquo;s Dynamic Blocks, as modifying or identifying the source Dynamic Block definition can be critical in automation and customization workflows. AutoCAD stores a reference to the…

  • Automating PLANTPROJECTCOLLABORATION: Seamless Plant Project Sharing to ACC

    AutoCAD Plant 3D provides a command to share a plant project to the ACC cloud: PLANTPROJECTCOLLABORATION. For more details, refer to To Share a Plant Project to the Cloud. However, this command poses a challenge for automation, as it requires user interaction. To overcome this limitation, we can use the Plant 3D API to automate…

  • How to Retrieve OPM Properties of an AutoCAD Entity in .NET

    <?xml encoding=”UTF-8″>By Madhukar Moogala This is a common request from our developers: how to retrieve the properties of an AutoCAD entity that are displayed in the OPM (Object Property Manager), also known as the Property Palette. Generally, properties can be retrieved using the get/set methods of a specific entity. However, not all properties are exposed…

  • What is ‘<<’ in AutoCAD Angle Inputs? A Forgotten Tip from the Past

    <?xml encoding=”UTF-8″>By Madhukar Moogala We have received a query from an A D N partner about usage of << in acedCommand acedCommand (RTSTR, ACRX_T (“_.UCS”), RTSTR, ACRX_T (“_Z”), RTSTR, ACRX_T (“<<90d”), 0); This post attempts to explain this mysterious quirk from the past! The double left angle brackets denote clockwise or counterclockwise rotation when you…