Geometry
-
I wasn't planning on writing another part in this series, just yet, but then I got a little carried away with some refactoring work and decided it deserved a post of its own. I wasn't fully happy with the code in the last post. The DecomposeCurve() function simply did too much: it opened a curve, […]
-
Some of you may remember this series of posts from the beginning of the year (I also mentioned it in the last post). It showed how you might use AutoCAD and .NET (in this case via F#) to animate the Star Wars opening crawl for the first 6 movies. Back then I said I'd update […]
-
In the last post we saw how we could integrate an HTML and JavaScript palette hosting Cytoscape.js into AutoCAD to map progress made in a text adventure. In today's post we take the additional step of converting the graph data into AutoCAD geometry. To be clear, there's a bit more to this post than having […]
-
I mostly despise jetlag but once in a while manage to harness it for something positive. I remember some great trips to Asia, waking up at strange times to experience the dawn, walking the streets and seeing everyday life starting up around me. These days I typically find jetlag to be a bit of a […]
-
This is a problem that developers have been struggling with for some time, and it came up again at the recent Cloud Accelerator: how to control the display of AutoCAD geometry at a per-viewport level, perhaps to implement your own "isolate in a viewport" command. It's certainly possible to control layer visibility at the viewport […]
-
A question came in by email, yesterday, and despite having a few mini-projects in progress that were spawned during last week's event in Prague, I couldn't resist putting some code together to address it. The developer wanted to purge zero-length geometry: the simplest way to solve the problem is to run "_-PURGE _Z" at the […]
-
This question came in via a comment, last week: Is it possible to get the point of intersection between a spline/3dpolyline and a plane surface? It turned out to be quite an interesting problem to solve. I started with brute force methods for the various curve types… For Polylines I checked linear segments against the […]
-
This is a follow-up to the post where we modified the size of selected text in a drawing, to make it fit its container. I received this comment last week: instead of selecting the nested entities one by one, is it possible to make a "selectall" selection ? It turns out that the question was […]
-
We started this series by looking at how to get the centroid of a region, and then how to create text that fits an arbitrary space. In this post we're going to wrap up by looking at the original question of how to resize block attributes to fit their container. The core algorithm is actually […]
-
As mentioned in this recent post, I've been working on my AutoCAD I/O-driven web-site on and off for the last few weeks. Lately I've had to think beyond certain assumptions I'd made about its architecture, and I thought it worth sharing those thoughts here. The intention of the site is that you upload an image […]