Changing All Block Definitions (AutoCAD .net API)

(Unfortunately it's not a block table record dictionary definition - but it kind of is :))

(Unfortunately it’s not a block table record dictionary definition – but it kind of is :))

Some how or other all the block definitions associated with a drawing were not defined on layer zero – this is less than ideal. I guess it goes right up there with another instance I heard about: (i) about drawing everything in paper space, or layer zero, for example.

Accordingly, it feel to me to change all the block definitions. I could foresee that there might be some other requirement associated with changing all the block definitions, so I thought it apposite right now to employ the strategy pattern to solve the problem.

Here is the code in its entirety. I like using LINQ, it’s concise and efficient, so I beg the patience of those whose views differ:


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *