Hi,
as I wrote in another post, you really should participate in some MicroStation training to understand how references work before you will continue with your code (or to pay for some consultancy or co-development). References are one of the core MicroStation features and perfect understanding is required both for efficient use and application development. And because your development relates to DGN - DWG conversions, you should also know differences between MicroStation references and AutoCAD XRefs.
[quote user="dgn2dwg"]...to detect all these different Attachment types?[/quote]
They are not attachment types, it's what "object" is attached. The attachment itself is always the same.
[quote user="dgn2dwg"]Before I go to some nasty code[/quote]
If a nasty code will be created, it will be because you will do it such way, but the topic itself is not complicated (if you know references):
- External Attachment: A model from another file (of any format) is attached.
- Self attachment: The same model is attached to oneself.
- Non-Default Models Attachment: It's quite self-explanatory, the attached model is not default one.
BTW Did you try to read what MicroStation help tells about these settings? The description in the documentation is short but in my opinion provide enough information how to work with the described situation in a code.
Regards,
Jan