Category: AutoCAD

  • Updated AutoCAD Plant 3D SDK Documentation Available

    A new version of the Plant SDK documentation that covers the 2017 through 2022 releases of AutoCAD Plant 3D is available for download in the AutoCAD P&ID and Plant 3D Developer Center: https://www.autodesk.com/developer-network/platform-technologies/autocad-p-id-and-plant-3d A link to download the latest documentation package can be found under both the Learning and Tools sections.

  • AutoCAD .NET API: IExtensionApplication.Terminate () Not Called

    Issue I am creating and running an add-in application with the AutoCAD .NET API, but after applying the AutoCAD 2020.1 Update, IExtensionApplication.Terminate() is no longer called.  The same is true for AutoCAD 2020.1.2 Update and AutoCAD 2021 including all updates. Was there a specification change? Solution The new feature add-in Save to Autodesk Web and…

  • Connecting CAO with Database

    NOTE – This workflow describes how to connect to CAO with MS Access database (*.mdb/*.accdb)From AutoCAD 2020, we have retired 32-bit AutoCAD, to connect to MS Access database from 64 Bit AutoCAD, you need install 64-bit MS Access DB Engine.  (thanks for pointing out -Norman Yuan) About version of Microsoft Office and its bitness  Please…

  • Property Definition Formula to Get Attributes

    Some properties return array of IDispatch which cannot be used in vbscript of formula definition, for instance the attributes returned by BlockReference are of VarType 8201 which is indicates an array of IDispatch pointers. Using ConvertToVariantArray can convert it to array of variant so that the elements can be reached in vbscript, just like the…

  • DWFXOUT: A Scriptable Command to Convert AutoCAD 3D Model to DWFX

      There is an internal discussion that came up about scripting 3DDWF, the current command 3DDWF invokes a dialog to save the filename of the export model. The dialogs interrupt automation flow, to bypass and enable automation fluidity, here is the simple scriptable command. The code employees function pointer (getSymbolAddress ) technique allows retrieving the…

  • Plant3d: Important Changes in Python

    This post is an attempt to reach to the developers who have not yet participated in AutoCAD Plant3d Customer Council. As you might know, there was a Plant 3D Next Release Beta went live last month and one important change in the Beta is that Python scripts are in Python 3.7 instead of Python 2.7…

  • Is it possible to emulate command LIVESECTION with AutoCAD .NET AP

    <?xml encoding=”UTF-8″>By Madhukar Moogala This question is coming from one of our beloved Forum contributor and Mentor Alexander Rivilis I am working with code which change color of Intersection Fill of Live Section. But although the color is changed, but this is not visible on the screen until I turn off and turn LIVESECTION: I…

  • How to Implement Dynamic UCS for Custom Solids

    <?xml encoding=”UTF-8″>By Madhukar Moogala You need to derive  from this class(AcDbDynamicUCSPE) in order to enable Dynamic UCS switching for your custom objects or for other core objects. By default, the core DUCS code will call this protocol extension on objects under the cursor during the initial point acquisition in DUCS-enabled command. Derived classes must override…

  • Set "Display printable area" via API

    <?xml encoding=”UTF-8″>By Madhukar Moogala When you make a new Layout a new Page Setup called Layout1 You see the printable area in Layout. This is a dashed rectangle. In order to remove that rectangles you set the option via UI:Go to TOOLS > OPTIONS > DISPLAY > LAYOUT  ELEMENTS > Uncheck “Display printable area” or…

  • Opensource Announcement for AutoCAD AutoLISP Extension

    By Madhukar Moogala Dear Developers, Thank you for being part of the Autodesk AutoCAD developer ecosystem. As part of Autodesk Opensource Initiative, we are glad to announce a new member to the family, the “VSCode extension for AutoLISP” which is now Opensource in Github. This extension adds support for AutoCAD AutoLISP source (LSP) files to…