kaefer,
Thanks for the comments, I'm pleased someone is playing with these.
As I stated at the outset these samples are not complete and have subtle issues. The idea was to start with basic concepts and build up from there.
I had expected a few more comments.
1. FindFile throws Autodesk.AutoCAD.Runtime.Exception: eFilerError if the block isn't found. May be intentional.
Yes it does. And yes, it was ignored intentionally ... untill 'someone' discovered the exception.
The idea was to see the error and find a resolution.
2. Multiline attributes do not get transformed
Yes.
And Dynamic blocks need addressing explicitly.
And Mirrors,
And Attribute modification to pre-inserted blocks.
And a few other things
3. < .. > optional parameters. < .. > Alas, to do this in C# seems to require 4.0.
Yes, optional parameters are version and language specific. Most people trying these in c# will not be using .NET 4.0.
I didn't want to branch into language distinctions with this series.
Other areas of unauthorized tampering with your collective wisdom include dumping the map/hashtable, replaced by a read-only dictionary internally, and provision of a sequence of annotation scales and of an owner BTR Id as additional parameters
Doing this requres a structural change to the samples.
I had intended providing a Dictionary sample using the current structure.
My thought was to also use the HashTable and/or Dictionary for extracting attributes.
Thanks again kaefer.
Regards,
Kerry