Plugin of the Month

  • Life seems to have shifted quite radically this week, as the summer here in Switzerland starts drawing to a close. A Sunday morning storm reset the temperature to something more autumnal (although these are looking to climb again gradually - we're not completely done with warm days here, thankfully) and all of my three children started their respective schools again on Monday. The two youngest are once again in the same institution - they're in the first and last years of our local "lycée" (the Denis-de-Rougement in Neuchâtel), which is the three years of post-mandatory schooling that often precedes going…

  • Back when we were first creating the Exchange Store, I went through the process of preparing several of our Plugins of the Month for posting to Autodesk Exchange. After a break of several months, I've now gone back and readied September's plugin (TransTips, now on Autodesk Labs) for posting, also. It seemed to make sense to spend a couple of posts documenting the process I followed – which should complement the DevTV sessions already posted on the Autodesk Exchange Apps Developer Center: Autodesk Exchange Apps User Experience Autoloader Format Explained Creating a Partial CUI This initial post focuses on preparing…

  • Regular readers of this blog may have followed the development of this plugin, but I've written this post is to announce its availability more officially (in addition to Scott's post from last week). TransTips uses the Bing Translator web service to translate tooltips into one of 36 languages on-the-fly, as they are displayed by AutoCAD, Inventor, Revit, 3ds Max and the products based upon them. The 36 languages are those currently supported by the Bing Translator service: Arabic, Bulgarian, Catalan, Chinese, Czech, Danish, Dutch, Estonian, Finnish, French, German, Greek, Haitian Creole, Hebrew, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Latvian, Lithuanian, Norwegian,…

  • Actually, I wish that were true. I'm planning on taking some time off in October, but that seems a long way off, at this stage. What I've actually been doing is working with some REST-based APIs: firstly, I've been finishing up work on September's Plugin of the Month, TransTips for AutoCAD, Revit, Inventor, & 3ds Max (to be posted on Autodesk Labs in the next few days). TransTips makes use of the REST API for Bing Translator, to automatically translate tooltips in various products. Secondly, perhaps more excitingly, I've been coding against a possible future web service API for Project Photofly.…

  • And yes, I do mean that literally. 🙂 Since starting this blog, 5 years ago – and even more in the last 2 years, since starting to develop and edit our Plugins of the Month for Autodesk Labs – I've been checking every line of code I've written to make sure it doesn't exceed 70 characters in length (the magic number for fitting my blog's width). It's become close to automatic – in the sense I rarely write lines that exceed this length and therefore need adjusting – but the process I use is still quite manual: I check the…

  • Today is a holiday, here in Switzerland, and I suffered a PC failure late last week, so I'm writing this without access to my usual system resources (AutoCAD 2012 and Visual Studio 2010, for instance). Despite these minor complications, I did want to let you know about this very important announcement. The introduction of the companion apps via the Autodesk Exchange Apps tab inside AutoCAD 2012 - a mechanism introducing AutoCAD's extensive customer base to the value of applications from AutoCAD developers - could well turn out to be a watershed moment in the history of AutoCAD, comparable to the…

  • Now it's time to shed some light on the reason for the code in the last post. I wrote it to help address a question that came in from Elson Brown via our Plugin of the Month feedback alias: I have a request for an app that will draw the smallest circle around a polyline object. Pick the polyline and the app draws the smallest possible circle around the shape. It turns out this is a well-known problem (and thanks to Stephen Preston for pointing me in this direction), commonly known as the minimal enclosing circle or smallest circle problem.…

  • Another month, another plugin. 🙂 As announced over on Scott's blog a few days ago, the latest Plugin of the Month is now live. It's based on the code in this previous post, the only change being how the average point gets returned to AutoCAD's command-line: we now send it as a string that gets interpreted as a LISP point, rather than straight, comma-delimited decimals, because a) it reduces my concerns about working on different locales and b) AutoCAD deals with the points in this format much more nicely if the command is called non-transparently. Thanks to those who made…

  • It's time to wrap up the series on batch-reporting Registered Application IDs. For reference, here's how we got to where we are today: Implement a command to collect RegAppId information for the active document Extend this command to work on a drawing not loaded in the editor Save our RegAppId information to some persistent location (XML) Transform the resulting XML file to HTML using XSLT Create a modified version of ScriptPro 2.0 (one of our Plugins of the Month) to call our command without opening the drawing The broader point of today's post – other than simply to deliver on…

  • Many of you will be aware of what has been referred to as the "RegAppId virus": drawings that have been unfortunately polluted with excessive Registered Application IDs – which are used by applications to attach XData to entities – have these RegAppIds brought into a main drawing when Xrefed, duplicating and duplicating IDs that were often redundant in the first place. In fact – back in the day – I remember a very popular 3rd party application (which has long since been fixed and shall remain nameless) that erroneously used to create hundreds (if not thousands) of these IDs in…