Author: Viru

  • Introduction to Fusion 360 API

    By Virupaksha Aithal Here is the recording of the “Introduction to Fusion 360 API” presented on 11th of October 2016 Fusion 360 resources: Learn about the Fusion 360 API here Talk to fellow Fusion API enthusiasts on the Fusion 360 API forum Check out the additional learning resources on Github See Fusion 360 Fundamentals for…

  • AutoCAD 2017 Service Pack 1 and Autoloader mechanism

    By Virupaksha Aithal AutoCAD 2017 Service Pack 1 introduced an issue that caused AutoCAD apps to not load automatically, We have addressed this issue in the Hotfix for AutoCAD 2017 Service Pack 1. Please download the Hotfix here.

  • Table Rows and Cell Styles

    <?xml encoding=”UTF-8″>By Virupaksha Aithal Each row or cell in a table can have a specific style attached to it. You can get/set this style using “CellRange.Style” property. Refer below code [CommandMethod(“GetRowType”)] public void GetRowType() { Document doc = Application.DocumentManager.MdiActiveDocument; Database db = doc.Database; Editor ed = doc.Editor; PromptEntityOptions peo = new PromptEntityOptions(“nSelect Table: “); peo.SetRejectMessage(“nInvalid…

  • AecModeler and AutoCAD 2017 Service Pack 1

    By Virupaksha Aithal There was an issue with hideDisplay API of Body class in AecModeler in AutoCAD 2017. below is the updated module. AecModeler for AutoCAD 2017 SP1 To install this update1. Close all software applications.2. Navigate to the folder where your Autodesk product is installed. C:\Program Files\Autodesk\AutoCAD 20173. Right-click AecModeler.dbx and rename it as…

  • AutoCAD 2017 SP1 and .NET debugging

    By Virupaksha Aithal AutoCAD 2017 SP1 is released now (For SP1 click here). One of the important issues addressed in AutoCAD 2017 SP1 is debugging the .NET in using Visual studio 2015. Till now, developers were asked to use workaround as explained in blog http://adndevblog.typepad.com/autocad/2016/05/debugging-autocad-2017-using-visual-studio-2015.html . But with AutoCAD 2017 SP1, there is no need…

  • Load and run VBA macro through .NET command

    <?xml encoding=”UTF-8″>By Virupaksha Aithal Below code shows the procedure to load and run a VBA macro through .NET command. Here AutoCAD ActiveX API LoadDVB & RunMacro is used. As the code uses dynamic keyword, to use this code no need to refer the AutoCAD ActiveX (interop) references. [CommandMethod(“LoadRunVBAcOMMAND”)] public static void LoadDVBFile() { dynamic acadApplication…

  • Unload all the PDF underlay

    <?xml encoding=”UTF-8″>By Virupaksha Aithal Below code shows the procedure to unload all the PDF underlays. It is required to update the corresponding PDF underlay references , so that AutoCAD can update the model space graphics. For this, the “PdfDefinition.GetPersistentReactorIds” API is used to get all the references of the PDF underlay definition. [CommandMethod(“PdfUnload”)] static public void…

  • Identify the language name using ObjectARX

    <?xml encoding=”UTF-8″>By Virupaksha Aithal ObjectARX 2017 SDK exposes class “AcLocale” using which language information of the AutoCAD can be retrieved. This “AcLocale” is new class in 2017. #include “rxregsvc.h” void getLocal() { AcLocale locale = acrxProductLocale(); acutPrintf(locale.iso2LangName()); acutPrintf(locale.iso2CountryName()); }

  • AcadAppInfo::writeToRegistry changed in AutoCAD 2017

    By Virupaksha Aithal In AcadAppInfo::writeToRegistry, the Boolean parameters are removed in AutoCAD 2017. This is because AutoCAD is not guaranteed to run with elevated permissions always and hence writing to current machine is always problematic through API. Now writeToRegistry works like writeToRegistry(false, true) of AutoCAD 2016. (Write to current user only and in AutoCAD section).

  • Identify plotting during draw overrule

    <?xml encoding=”UTF-8″>By Virupaksha Aithal Recently, I received questions from couple of developers on identifying the plotting state during overrule. Though the context of questions were different (like one developer wanted to avoid doing draw overrule during plot and other wanted kind of applying plot stamp) I felt I need to make the solution as blog. To…