Quintiq file version 2.0 #parent: #root Method FlatMDSs (ComponentMDSInstanceBase mds) as structured[ComponentMDSInstance] id:Method_AppLibSOPImportExport_FlatMDSs { #keys: '[127066.0.1587346946]' Body: [* target := construct( structured[ComponentMDSInstance] ); if ( mds.istype( ComponentMDSInstance ) ) { target.Add( mds.astype( ComponentMDSInstance ) ); } else { folder := mds.astype( ComponentMDSFolderInstance ); traverse( folder, Children, c ) { toadd := AppLibSOPImportExport.FlatMDSs( c ); traverse( toadd, Elements, e ) { target.Add( e ); } } } return ⌖ *] ReturnsOwning: true }