AutoCAD .NET
-
It's been quite a week... I was attending Autodesk's annual One Team Conference in Las Vegas, and had a number of meetings before, during and afterwards (hence my inability to make any posts whatsoever since Sunday). It was hectic, but a great event - the highlight for me was the keynote address on Wednesday by […]
-
This very good question came in by email from Patrick Nikoletich: I was wondering what the preferred method for overriding the default "Open" common dialog in AutoCAD 2007 would be? I can catch the event but can't send AutoCAD a command to cancel the request so I can launch my Win Form instead. This is […]
-
The bulk of this code was donated by Virupaksha Aithal, a member of our DevTech team in India. It's fairly common for developers to want to check for user input from time to time during long operations, especially to see whether the user wants to cancel the current activity. In VB you'd use DoEvents() to […]
-
This question came in a couple of weeks ago from csharpbird, and I promised myself to turn it into a post: The Hatch class of the current AutoCAD version does not provide the OriginPoint property.How to get/set the OriginPoint of the Hatch object using P/Invoke? The reason I wanted to delay making an official post […]
-
This comment came in overnight from Brian: I was hoping to work out how to get the Entity from the handle and then erase it, from your posts, I've learned a lot but not found the answer to this one yet, I still have a mountain to climb. (I'm using VB.NET, I've done it in […]
-
In the previous two posts we looked at the new ObjectARX samples and the new .NET samples available for AutoCAD 2008. AutoCAD 2008 also exposes a number of new APIs (and enhancements to old ones) for which we don't have new SDK samples. Take a look of the 'Migration Guide for Applications' for a comprehensive […]
-
In the last post we looked at the new ObjectARX samples for AutoCAD 2008, while today we're looking at the .NET samples. In the next post we'll look at the other new APIs available with AutoCAD 2008. With the exception of custom objects, .NET now includes essentially all the functionality available in ObjectARX. While the […]
-
In the last post we looked at some code that combined user-input from the AutoCAD command-line with .NET reflection to determine an object type, a property belonging to that type, and the value to which we want to change that property on instances of that type (phew!). Here's where we look at hooking that up […]
-
I ended up having a fun weekend, in spite of the circumstances. My wife and eldest son were both sick with a cold (which, inevitably enough, I now feel I'm coming down with myself), so we mostly stayed around at home. So I got to spend a little time working on an idea that came […]
-
Someone asked me earlier today how to iteratively change the color of entities inside blocks. The following code uses a recursive helper function to iterate down through the contents of a block, changing the various entities (other than block references, for which we simply recurse) to a specified colour. Here's the C# code: using Autodesk.AutoCAD.ApplicationServices; […]