Notification / Events
-
This was a fun question that came in from James Meading. I genuinely didn't think I'd manage to look into it before the break, but it tweaked my interest during my trip back from the UK: I thought this might be a topic you would be interested in. I do not use ctrl-v for pasting […]
-
A developer had an interesting requirement that I thought I'd spend some time looking at: to animate transient graphics inside AutoCAD according to data they've pulled in from an external simulation system. It's clear that AutoCAD is really not an animation platform – we have other products that are better suited to working in this […]
-
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 […]
-
Thanks, once again, to Scott McFarlane for working his magic and finding a simple way to make an approach work that I'd convinced myself wasn't workable. (He took the implementation in my last post and adjusted it to work via a non-static event – something I had tried to do myself, but had somehow failed… […]
-
In the last post, we saw some code that provided a relatively crude mechanism for finding out when a particular custom palette set gets closed by the user. In this post, we encapsulate this technique in a new class – which I've called PaletteSet2, for the want of a better name – that can be […]
-
As a follow-on from the last post, today we're going to see how to actually stop the erase operation from happening for a certain type of object (in this case we're going to focus on Lines). Thanks for Stephen Preston for showing us the way in his comment on that post: inspired by his suggestion […]
-
I started looking into the ObjectOverrule class, this week, to see if I could use it to prevent erasure of certain objects. My thinking was that overruling Erase() would allow me to control whether an object was erased or not, simply by my decision whether or not to super-message to the base implementation. That doesn't […]
-
This very interesting feature came to my attention via an internal discussion. Thanks, once again, to George Varghese for providing the base sample used for this post. At various times inside AutoCAD – such as when a block is selected, for instance – a specific ribbon tab is displayed "contextually". As an example, when you […]
-
In the last post, we saw a great little sample for adding a textbox to AutoCAD's ribbon which notifies your application of the "commands" entered into it (however you choose to interpret them in your code). In this post, we'll take that further and have that textbox expand vertically as text gets entered, wrapping the […]