Use com.nomagic.magicdraw.fileattachments.FileAttachmentsHelper to create, remove or save attached files to disk. 

 You can find the code examples in

  • <installation_directory>\openapi\examples\fileattachments