Geometry
-
I owe Chris Kratz a huge thanks for inspiring me to do more with LINQ. This post uses LINQ to provide more elegant solutions to a couple of problems described in previous posts. The code in today's post is probably my second brief foray into the world of LINQ. The comments Chris posted on the […]
-
Thanks to Virupaksha Aithal, from DevTech India, for providing the technical response to an ADN member than inspired this post. When working with the Point2d and Point3d objects from AutoCAD's .NET API it's common to use the in-built collection types, Point2dCollection and Point3dCollection. Neither of these objects provides the capability to sort their contents (and, […]
-
As promised, today's post delivers a simple application that provides a user-interface for the command implemented in this previous post. I chose to implement the UI as a WPF user control which is then hosted by a standard AutoCAD palette. Aside from its core function – to allow composition of transformation matrices to be applied […]
-
As promised in the last post and based on the overwhelming feedback in the one before that, today we're starting a series on how to transform AutoCAD geometry. Before developing a fancy modeless GUI to make this really easy, we need a base command that can do the hard work. What's needed from our basic […]
-
I've arrived in Munich for our German DevDay + DevLab. There's lots of snow, but luckily I didn't get delayed: I was a touch paranoid after my trip to AU, and then having to fly two legs to get here. Therein lies a story: it's not usually needed to take two planes to get from […]
-
A colleague set me a fun little geometry-related challenge a couple of days ago: to write C# and F# applications to make AutoCAD draw lines between a number of points spaced evenly around the circumference of a circle. Here's the first C# version I wrote, which makes use of a function to collect the various […]
-
Brent Burgess commented on this previous post showing how to extend lines in AutoCAD: Is there a different process for shortening lines, or is it similar syntax? A very valid question… unfortunately the Curve.Extend() method only works with points or parameters that are outside the current definition of the curve, so we need to find […]
-
I finally came up with a succinct title for this post after struggling with "Shading a face of an AutoCAD solid with a transparent hatch pumped through the transient graphics sub-system using .NET". Or words to that effect. 🙂 So yes, this post shows how to create a temporary hatch with transparent shading that then […]
-
In the last post we used an API introduced in AutoCAD 2011 to trace boundaries defined by geometry in a drawing. In this post we're going to use these boundaries to define the limits of solid hatch objects which we will – using another new capability in AutoCAD 2011 - make transparent. Here's the updated […]
-
As alluded to in this previous post, today we're going to see some code that makes use of a very cool new API feature in AutoCAD 2011: the Editor.TraceBoundary() function. This little gem performs something developers have struggled with – and have asked us for – for many years. Previously you had to jump through […]