AutoCAD
-
This is an interesting little problem that came in from Japan last week. Basically the issue is understanding how to call the DIMARC command programmatically from LISP using (command). The DIMARC command was introduced in AutoCAD 2006 to dimension the length of arcs or polyline arc segments. What's interesting about this problem is that it […]
-
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 […]
-
Someone asked by email how to get the block import code first shown last week and further discussed in yesterday's post working with AutoCAD 2006. I've been using AutoCAD 2007 for this, but to get it working there are only a few changes to be made. Firstly you'll need to make sure you have the […]
-
I didn't spend as much time as would have liked talking about the code in the previous topic (it was getting late on Friday night when I posted it). Here is a breakdown of the important function calls. The first major thing we do in the code is to declare and instantiate a new Database […]
-
We're going to use a "side database" - a drawing that is loaded in memory, but not into the AutoCAD editor - to import the blocks from another drawing into the one active in the editor. Here's some C# code. The inline comments describe what is being done along the way. Incidentally, the code could […]
-
Since Visual LISP was introduced, developers have taken advantage of its ability to call COM Automation interfaces (whether AutoCAD's or other applications'). The addition of this functionality to the LISP platform created many new development possibilities - previously you were able to call through to ObjectARX applications defining LISP functions, but enabling Automation access from […]
-
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 […]
-
This recent entry on Jimmy Bergmark's JTB World Blog brought to my attention the fact that ObjectDCL is about to become an Open Source project. Chad Wanless, the father of ObjectDCL, was a very active ADN member for many years, but - according to this post on the ObjectARX discussion group - is now unable […]