Category: AutoCAD
-
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…
-
Bridging the .NET Core and AutoCAD 2025: Exposing and Using COM Server Components with GetInterfaceObject
<?xml encoding=”UTF-8″>By Madhukar Moogala In this blog post, we will explore how to expose COM server components in .NET Core and utilize them in AutoCAD using GetInterfaceObject. Why Use COM in .NET Core? COM (Component Object Model) provides a standardized way for software components to communicate, making it a popular tool for extending AutoCAD. For…
-
Updating Associative Planar Surfaces Using AutoCAD’s .NET API
<?xml encoding=”UTF-8″>By Madhukar Moogala Associative surfaces in AutoCAD offer robust capabilities for maintaining dynamic links between geometric objects. Updating these surfaces programmatically requires careful handling of associated entities and profile curves. In this blog, we’ll explore how to automate the process of updating an associative planar surface with a new profile curve using AutoCAD .NET…
-
Creating a Sample AutoCAD Plugin with .NET 8.0 and C++/CLI for AutoCAD 2025
By Madhukar Moogala In this article, will walk through the development of a simple AutoCAD plugin using C++/CLI. The plugin will add a feature to draw circles dynamically, where users can specify the radius and the plugin will generate a random color for each circle. We will break the plugin down into three major parts:…
-
Safeguarding Database Pointers with AcDbDatabase’s New Runtime ID API
<?xml encoding=”UTF-8″>By Madhukar Moogala In Autodesk software, developers sometimes face an issue where a memory address, specifically an AcDbDatabase pointer, may get reused. If a database (DB) is deleted and a new one is created at the same memory location, how can we distinguish between the two instances? This question led us to introduce a…
-
Working with UCS and Ordinate Dimensions in AutoCAD using .NET API
<?xml encoding=”UTF-8″>By Madhukar Moogala In the world of CAD (Computer-Aided Design), precision is key. AutoCAD provides developers with powerful tools to manipulate objects and dimensions programmatically. One of the most critical concepts in AutoCAD development is the use of coordinate systems. This blog post will guide you through the process of working with the User…
-
AutoCAD 2025 : Marshal.GetActiveObject .NET Core
<?xml encoding=”UTF-8″>By Madhukar Moogala The GetActiveObject method is deprecated in .NET 8, specifically starting from .NET Core 3.0. The Marshal.GetActiveObject() API is a simple wrapper over the Running Object Table (ROT) and relies on folllwing Win32 APIs that can easily be called via P/Invoke. CLSIDFromProgIDEx GetActiveObject An example of how to manually communicate with the…
-
Multi-targeting AutoCAD .NET Plugin for .NET 4.8 and .NET 8.0
<?xml encoding=”UTF-8″>By Madhukar Moogala Recently, we received a query from an ADN partner on how to organize code to target multiple frameworks, such as .NET 4.x and .NET 8.0. Let’s take an ARX SDK sample project, EllipseJig. EllipseJig is a simple .NET project that demonstrates the use of Jig APIs to create ellipses. The project…
-
AutoCAD 2025: Update Your PackageContents.xml with RuntimeRequirements
<?xml encoding=”UTF-8″>By Madhukar Moogala If you are using PlugIn-Autoloader mechanism to install custom applications, this important update is for you With the release of AutoCAD 2025, Autoloader engine checks for RuntimeRequirements for applications. In other words, you need to specify the series bounds for your application if the ComponentEntry AppType is .NET to load in…
-
Upgrading C++/CLI Wrappers for Custom Entities to .NET 8.0
<?xml encoding=”UTF-8″>By Madhukar Moogala AutoCAD 2025 started supporting .NET 8.0 platform, if you have managed wrapper or interop API for custom entities, you need to upgrade them from NET 4.x to NET 8.0 Upgrading managed wrappers is three fold process First, you need to upgrade arx or dbx project (*.vcxproj) to target new SDK version…

You must be logged in to post a comment.