/****************************************************************************** Copyright (c) 1999 Unigraphics Solutions, Inc. Unpublished - All Rights Reserved *******************************************************************************/ /* The example shown below covers a wide range of the UG/Manager UG/Open APIs. Its purpose is to find out the contents of all your folders, starting at your Home folder. All your folders, parts, part revisions, master part files, non-master part files, and dependent files are printed. The information is printed in an indented form, so that you can see at a glance the contents of a particular folder. For example: Folder: Home Part: engine Rev: A - Type: master Folder: screws Part: flat_head Rev: A - Type: master Rev: A - Type: specification, Name: dwg001 Rev: A - Type: manifestation, Name: NCtool001 Part: cross_head Rev: B - Type: master */ #include #include #include #include #define CHECK( func_ ) \ ifail = (func_); \ if ( ifail != 0 ) {\ printf("ERROR: %s returned %d", # func_, ifail ); \ return ifail; } #define PRINT( content_ ) \ { int ii; \ for (ii=0; ii