ObjectARX
-
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 […]
-
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 entry was contributed by Adam Nagy, a member of DevTech EMEA based in Prague. The question is really a combination of two problems: Selecting a subentity Selecting a nested entity Selecting a subentity First we should clarify what a subentity is: A subentity is a pseudo entity which is a logical part of a […]
-
I had a nice surprise this weekend. Jorge Lopez, an old friend and colleague, had been reading this blog entry and decided to create a Visual Studio AddIn that allows you to see resbufs content expanding automatically while debugging. Jorge and I go back a long way - he used to work in DevTech (before […]
-
Thanks to Alexander Rivilis for this topic (he submitted a comment to my previous post that got me thinking about this addendum). When you're asking AutoCAD to execute commands by submitting them to its command-line, it helps to make sure no command is currently active. The accepted approach is to send two escape characters to […]
-
It's quite common to want to call commands from one or other of AutoCAD's programming environments. While it's cleanest (from a purist's perspective) to use an API to perform the task you want, the quickest way - and the one which will appeal to the pragmatists (and the lazy) among us is often to call […]
-
While debugging it's sometimes very frustrating to find yourself repeatedly stepping into an irrelevant function. For instance, complex statements pretty commonly include object constructors etc. that you know function perfectly well, but the debugger routinely takes you into them. The Visual Studio IDE has an undocumented (and unsupported) mechanism to help with this. During the […]
-
I've been using Visual C++ (and afterwards Visual Studio) since it was 16-bit, back in version 1.52. OK, maybe that's not so long ago, relatively (11 short years), but the point is that in spite of having followed the Visual Studio technology over this period, I've so far been completely unaware of the autoexp.dat file. […]
-
The work we did to migrate AutoCAD 2007 to use Unicode (rather than MBCS), has impacted many developers around the world. For those that are yet to go through the pain themselves, I thought I'd talk about the resources that are available to ObjectARX developers needing to port their applications to Unicode. Firstly, you should […]
-
One of the really compelling features of .NET is its ability to call "legacy" unmanaged C++ APIs. I say "legacy", but we use this facility regularly to call APIs that are far from being considered defunct (the C++ version of ObjectARX is alive and kicking, believe me! :-). Autodesk understands that our development partners have […]