LINQ
-
After seeing a basic approach to sort arrays of ObjectIds using LINQ โ and then refactoring that to be a shared extension method to be used on arrays of ObjectIds โ today we're going to see that code refactored, once again, to work with types of data other than strings (up until now we could […]
-
In the last post we took a look at one technique to sort a list of ObjectIds by the associated objects' layer and type. In this post we're going to refactor the commonality to have a single extension method that allows us to sort a list of ObjectIds based on any string property. Here's the […]
-
I received this interesting question by email from Henrik Ericson, last week. Is it possible to sort the selected objects (only 3dFaces in my case) in a SelectionSet by their layers? I want to process all the objects, one layer at a time. In other words, first all objects on layer A, and then all […]
-
After seeing how we can use Cylon.js to control Sphero's Ollie and BB-8 robots from a browser, and then using the same mechanism from inside a custom AutoCAD command, today we're going to drive these cute little bots based on AutoCAD geometry. The idea is that we'll decompose regular curves โ whether lines, arcs, polylines […]
-
It seems like I've been living in JavaScript land (and no, I deliberately didn't say "hell" โ it's actually been fun ๐ for the last few weeks, between one thing or another. But I think I've finally put the finishing touches on the last of the JavaScript API samples I've prepared for AU 2014. This […]
-
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 […]
-
Late last week I received an interesting email from Bruno Saboia, who's been experiencing some performance issues with code he'd written to return all the objects of a particular type โ in his case, Lines โ from the model-space of the active drawing. We exchanged a few emails on the topic, and Bruno kindly allowed […]
-
A comment on the last post made me think it's probably worth diving into LINQ a bit further, as there's clearly interest out there. Now I don't actually use LINQ very much but whenever I do I tell myself I ought to use it more โ it's really very useful. A lot of LINQ is […]
-
I looked back and couldn't find a post covering this particular topic and so decided to put something together. It may well have been covered elsewhere (I admit to not having looked) but I felt like throwing some code together, either way. ๐ To perform a Boolean operation between Solid3d objects inside AutoCAD, you can […]
-
Another really interesting, developer-oriented feature in AutoCAD 2013 is something we've been calling "Dynamic .NET". I don't know whether that's official branding, or not โ I suspect not โ but it's the moniker we've been using to describe this capability internally and to ADN members. The capability is based on an addition to .NET in […]