O'Reilly logo

Instant Autodesk AutoCAD 2014 Customization with .NET by Tom Nelson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with blocks and attributes (Must know)

Blocks are collections of AutoCAD entities, which can be moved, erased, copied, scaled, or mirrored with a single cursor pick. Blocks are well-suited to represent standard parts such as fasteners, fixtures, gears, and motors. We can attach attributes (data) to blocks, which represent properties that our custom program can read and respond to. This project demonstrates block insertion, reading and writing attribute values, and setting block reference properties.

Getting ready

The code project is intended to be used with a test drawing, Ch4Drawing.dwg. The test drawing contains a block definition Test Block, which contains three attributes: Name (the block name), Color (a color/layer name), and Chapter ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required