Runtime
-
In yesterday's post, we looked at a mechanism that has been introduced in AutoCAD 2015 to simplify associating custom data with a Document. In today's post we're going to swap out the custom manager class to make use of the standard UserData mechanism, showing how the PerDocumentClass attribute and the UserData property are actually highly […]
-
I almost named this post to make it clear it's about a new API capability in AutoCAD 2015, but then I wouldn't have had the slightly perverse satisfaction of resurrecting a series of posts after 7.5 years. Here are the first parts in this series, in case you've forgotten them (and you'd be forgiven for […]
-
I had an email from Martin Duke about this old post a couple of weeks ago. I started to update the original post but then realised that a) I couldn't easily go that far back using Windows Live Writer and the built-in Typepad editor often messes up code in old posts when I edit them […]
-
photo credit: Marcin Wichary via photopin cc As mentioned in the last post, fibers are now inactive in AutoCAD 2015 (the code paths are still there, largely for testing purposes, but should not need to be enabled for typical usage of the product). Fibers were a technology that Microsoft introduced way back when to help […]
-
I've just arrived home from a 10-day trip to the Bay Area. It was a really interesting visit – as usual – but I'm happy to be home (even if I'm writing this at 3am, once again fighting jetlag). The news has started to come out about AutoCAD 2015 – much of it fed by […]
-
To follow on from yesterday's post, today we're going to look at a reliable way to determine the language of the AutoCAD product hosting your .NET module. Thanks to Troy Louden for sharing this technique. Here's the C# code implementing it: using System.Globalization; using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.Runtime; namespace LanguageInfo { public class Commands […]
-
I'm starting to get ready for a trip to the US: I'm heading out on Monday and will be home on Thursday of the following week. While I expect I'll have time to write a few posts during the trip – thank you, jetlag! – I'm going to write a couple of very simple ones […]
-
I'm still on pseudo-vacation. We really had a great week in the snow: sun during the day (everyday!) with the odd bit of fresh snow overnight on a couple of occasions. It's snowing again now, but unfortunately this time it's set to snow all the way through to the end of the day tomorrow, so […]
-
I'm still mainly on holiday this week, so this is a really silly post that I don't realistically expect to be of use to anyone. But then you never know. 🙂 A colleague in Product Support asked me for a quick way to cause AutoCAD to crash, the other day. I didn't ask too much […]
-
Another interesting question came in by email, this week. Fredrik Skeppstedt, a long-time user of the TXTEXP Express Tool, wanted to perform a similar operation using C#: to explode text objects – as TXTEXP does – but then be able to manipulate the resulting geometry from .NET. TXTEXP is an interesting command: in order to […]