Drawing structure
-
Earlier in this series, we implemented a jig to rotate, size and place text more easily in an AutoCAD drawing, which we then extended to allow adjustment of font-level properties. In this post, we're going to add some additional functionality to allow the text to be justified differently around the cursor location. It has to […]
-
In the last post, we saw a simple jig implementation to position, size and rotate standard AutoCAD text. In this post, we're extending that implementation to handle font properties such as bold and italic text. At first blush, this sounds pretty straightforward – how hard can it be, right? The complexity gets introduced when we […]
-
In the last few posts on this topic, we saw some examples of getting information from and controlling AutoCAD via its Bindable Object Layer. In this post, we're going to look at a way to find out when changes are made to AutoCAD's layer table: when layers are added, changed or removed. There are certainly […]
-
After looking at how the Bindable Object Layer (BOL) in AutoCAD might be used to get information about the current drawing, in today's post we're going to see how it can also be used to manipulate that data (in a fairly limited, albeit useful, way). But first, let's talk a bit about the origins of […]
-
Some time ago, I posted code that used the Autodesk.AutoCAD.Windows.Data namespace to list the hatch patterns in the current drawing. Fenton Webb posted a follow-up on the AutoCAD DevBlog that took this further, extracting additional data from AutoCAD and using it to populate an Excel spreadsheet. Within that post, Fenton showed the technique required to […]
-
This post was inspired by an email I saw from Philippe Leefsma, from DevTech EMEA, which made use of the Autodesk.AutoCAD.Windows.Data namespace – something I didn't even know existed. The specific example Philippe showed was how to access the list of hatch patterns available in the current drawing without iterating through the relevant dictionary in […]
-
A quick one to end the week, as I really need to start packing for AU. 🙂 Thanks to Augusto Gonçalves, from DevTech Americas, for pointing out this DevNote on the ADN site in a recent email to an ADN member. The below code shows the steps to set the current visual style to "realistic" […]
-
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 […]
-
Time to go back to basics. I realised recently – on receiving this comment – that I hadn't specifically covered the nature of Entity.Explode() in a post (even if it's been used in a few of them, over the years). Entity.Explode() is one of those tricky methods: it's actually a faux-ami with the AutoCAD command […]
-
It's time to wrap up the series on batch-reporting Registered Application IDs. For reference, here's how we got to where we are today: Implement a command to collect RegAppId information for the active document Extend this command to work on a drawing not loaded in the editor Save our RegAppId information to some persistent location […]