AutoCAD .NET
-
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 […]
-
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 […]
-
This post takes the sample code shown in the last entry, converts it to VB.NET and adds in some code to access specific entity properties rather than simply calling list(). I won't step through the code this time, but here's the section of code that gets and dumps out the various entity properties: Dim ent […]
-
Many AutoCAD commands that work on sets of entities support two styles of working: verb-noun or noun-verb. This basically means that if the user has pre-selected a set of entities (the "noun") and then launch the command (the "verb") then the command will not need to request the user select them. This is enabled using […]
-
It's been a hectic week, between one thing and another, and I don't expect it to get better anytime soon: apart from anything else, my wife is due to give birth any day to our second child. We're both excited - and admittedly a little anxious - about it, and our 2 year-old seems to […]