AutoCAD
-
I received this interesting question through by email over the weekend: "How can I ask AutoCAD to let the user to draw a Polyline (just like the user pushed Polyline button) and then just after finishing drawing get the ObjectID of that entity? Is it possible?" This is a fun one, as there are a […]
-
A discussion in the comments on this previous entry seemed worthy of turning into a post. The problem appears to be that when you load a partial CUI file into AutoCAD, by default the various resources (pull-down menus, toolbars) are not displayed. This snippet of code shows you how to both load a CUI file […]
-
Thanks to Viru Aithal from the DevTech team in India team for this idea (he reminded me of this technique in a recent ADN support request he handled). A quick disclaimer: the technique shown in this entry could really confuse your users, if implemented with inadequate care. Please use it for good, not evil. I […]
-
Thanks to Fernando Malard for suggesting part of this topic in response to an issue he submitted through ADN support. Windows applications that make use of the .NET Framework can be configured via a ".config" XML file found in their executable's main directory (for more specifics, please see this MSDN article). In AutoCAD's case, this […]
-
A colleague of mine in one of our Engineering teams just shared this tip that I'm in turn sharing with you... I was implementing an override of the abstract class Autodesk.AutoCAD.DatabaseServices.DwgFiler, which has about 40 abstract functions that have to be overridden. Since there are no header files in C#, I couldn't just cut and […]
-
This entry completes the series of posts about per-document data. Here are the previous entries: Some background to AutoCAD's MDI implementation and per-document dataPer-document data in ObjectARXPer-document data in AutoCAD .NET applications - Part 1 Document.UserData Now let's take a look at a second technique in .NET for storing transient (non-persisted) data with an AutoCAD […]
-
The last few posts have focused on the history of MDI in AutoCAD and how to store per-document data in ObjectARX applications. Now let's take a look at what can be done for AutoCAD .NET applications... There are two main approaches for storing per-document data in managed applications loaded into AutoCAD โ I'll take a […]
-
As discussed in the previous post, AutoCAD is now largely an MDI application, and this can have an impact on the design of applications. Let's talk about the theoretical issue with migrating applications into a multiple-document environment. We used to highlight this nicely, back when we first started talking about MDI in AutoCAD 2000. We […]
-
Thanks once again to all of you who posted your congratulations on Zephyr's birth. I'm now getting back into the swing of things after my paternity leave, and I hope this is me restarting regular posts to this blog. I'm actually feeling quite energized (although it's probably nervous energy from sleep-deprivation ๐ and have a […]
-
Most of the functions to access objects in the AutoCAD drawing return generic objects/entities. The base type for objects stored in the AutoCAD database is "DBObject" โ which can be used to access common persistence information such as the handle, etc. โ but there is no such thing as a pure DBObject: all DBObjects actually […]