The project P1 contains both classes’ hierarchies: the one with Header Fields, and the one with Table Fields. By default, it always applies extraction through the first hierarchy but, if required, can also launch the second level processing through a script like the one below.
Example: Extraction retaining
Private Sub Document_PostExtract(pWorkdoc As SCBCdrPROJLib.SCBCdrWorkdoc) On Error GoTo ERROR_HANDLER Project.AllClasses.ItemByName("Table Fields").Extract pWorkdoc ERROR_HANDLER: Project.LogScriptMessageEx CDRTypeError, CDRSeveritySystemMonitoring, "Second level extraction has failed." End Sub