What is a layout control?

You might not know this but I have a part time job, at the golf shop. One of my duties involves: stacking the shelves full of products.

Read More

.NET API vs COM Interop API (AutoCAD Programming)

There seems to be a lot of confusion with folks about the difference between using the AutoCAD .net API vs the COM Interop API. They both hope to do the same things, but via different ways. Given a choice, I’d always recommend using the .net API because it is much more powerful. Or if you are familiar with C++ then go for ObjectARX API which gives you immense power. You may think that using .net API obviates the need to manage resources - but you’d be wrong: the .net API is simply a wrapper to the underlying unmanaged types. You have to explicitly use transactions or you have to otherwise explicitly dispose of objects after you’ve finished using them. Nevertheless, the .net API is still very good to use in certain instances.

Read More

Transformed BlockReferences (AutoCAD .net API)

So you’ve inserted a block reference into the model space. Very good. And you’ve decided to rotate it and move it around. Again: very good. Now you wish to programmatically place more block references, similarly rotated, but perhaps spaced some distance apart. How are you going to do this.

Read More