AutoCAD .NET
-
I'm working on an internal project that seems to be worth sharing externally. I'm looking at the potential for run-time modification (thinking mainly about translation) of tooltips displayed by AutoCAD. The first step towards realising this is clearly to determine when tooltips are going to be displayed and to establish the content of these tooltips. Here's some C# code that does this (written with Visual Studio 2010, so users of prior versions may need to swap out my lambda function for a delegate or even a full event-handler function). You'll also need to include AdWindows.dll in addition to the typical…
-
Today's post contains some fun code contributed by Stephen Preston which re-creates the Minesweeper video game inside AutoCAD. Stephen tells me it needs a bit of polishing, but the game is certainly playable. I've reformatted some of Stephen's code to fit this blog. The implementation comprises two main files, which you can name as you wish. I've used the VS 2010 convention for line-breaks (which means you don't need an underscore). If you're using older versions of Visual Sudio or Visual Basic Express you may need to concatenate lines or insert underscores at the end of them. Here's the main…
-
I've been planning to look at it for ages – and have certainly mentioned it before – but other things have kept on cropping up. Well last Thursday, on my train trip back from Wallisellen (the home of Microsoft Switzerland), I finally managed to take the plunge and start working with the Async CTP for Visual Studio 2010. I'd been in Wallisellen to attend an MSDN TechTalk presentation by Stephen Toub, Principal Architect on Microsoft's Parallel Computing Platform team. I've followed Stephen via his blog – and the Parallel Programming with .NET blog – for a long time, and thought…
-
Another Friday, another installment of Wayne Brill's AutoCAD .NET training DevTV series (to complement those sessions from previous weeks). Today's session is focused user-interface elements such as the .NET attributes for exposing commands and optimizing loading, adding your own tab to the options dialog and implementing drag & drop. This series of DevTV sessions is a companion for the new AutoCAD .NET training material available from the AutoCAD .NET Developer Center. Enjoy! 🙂
-
Another Friday, another installment of Wayne Brill's AutoCAD .NET training DevTV series (to complement those from previous weeks). Today's session is focused on the ever-important feature when implementing user-input in your custom commands: Jigs. This series of DevTV sessions is a companion for the new AutoCAD .NET training material available from the AutoCAD .NET Developer Center. Enjoy! 🙂
-
Another Friday, another installment of Wayne Brill's AutoCAD .NET training DevTV series (to complement those from previous weeks). Today's session is focused on the very useful InputPoint Monitor capability. This series of DevTV sessions is a companion for the new AutoCAD .NET training material available from the AutoCAD .NET Developer Center. Enjoy! 🙂
-
This post was queued up for Friday, but a technical issue (i.e. probably user error) prevented it from going out. So here we are on Sunday, instead, for another installment of Wayne Brill's AutoCAD .NET training DevTV series (to complement those from previous weeks). Today's session is focused on working with dictionaries and other types of container, as well as using runtime type identification and casting. This series of DevTV sessions is a companion for the new AutoCAD .NET training material available from the AutoCAD .NET Developer Center. Enjoy! 🙂
-
After focusing on a manual process for sweeping a solid inside AutoCAD in this previous post, it seemed to make sense to attempt to automate more of that process. In the code in this post, we take a standard circular profile – of a user-specified radius – and sweep it along the path defined by the user's hand movements. Back in the original Kinect integration example we created a 3D polyline path linking every position of the user's hand detected by Kinect. This makes a very jittery path for our purposes, so we're going to define a spline along fit…
-
Another Friday, another installment of Wayne Brill's AutoCAD .NET training DevTV series (to complement those from previous weeks). Today's session is focused on responding to database events and creating a palette-based user interface. This series of DevTV sessions is a companion for the new AutoCAD .NET training material available from the AutoCAD .NET Developer Center. Enjoy! 🙂
-
Another Friday, another installment of Wayne Brill's AutoCAD .NET training DevTV series (to complement those from previous weeks). Today's session is focused on the fundamentals of AutoCAD's drawing database. This series of DevTV sessions is a companion for the new AutoCAD .NET training material available from the AutoCAD .NET Developer Center. Enjoy! 🙂