MicrostationDGN.Application.DefaultModelReference.Attachments.add(...)

what parameters should be passed?
for example?

Parents Reply
  • If I understand your question correctly, you have attached a reference and want to merge its contents with the active model.

    Here's some pseudo-code …

    1. Iterate the reference Attachments collection
    2. Identify the Attachment of interest
    3. Scan the Attachment to obtain an ElementEnumeratorof its contents
      1. For each Element in the ElementEnumerator, copy it to the ActiveModelReference
      2. Use the ModelReference.CopyElement method.  You will need a CopyContext object

    See
    VBA Help
    VBA help for details of each of the above.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Children