Hi,
the builder object is returned from mdlRefFile_beginAttachment.
I have created a small code example to demonstrate use of the functions mdlRefFile_beginAttachment. and mdlRefFile_completeAttachment:
DgnAttachmentBuilder builder; WCharCP fileName = L"D:/DGN/ref.dgn"; WCharCP modelName = L"Default"; WCharCP logical = L"Logical name"; WCharCP description = L"Description"; DgnModelRefP modelToAttachTo = ACTIVEMODEL; StatusInt stat = mdlRefFile_beginAttachmentToModel(builder, fileName, modelName, logical, description, modelToAttachTo); if (SUCCESS == stat) { builder->SetAttachDescription(L"New decsription"); DgnAttachmentP attachment = 0; stat = mdlRefFile_completeAttachment(attachment, builder, RefAttachNestMode::None, 10, true); }
I hope this helps?
Best regards,
Artur