File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -44,18 +44,13 @@ int main( int argc, char * argv[] ) {
4444 }
4545 cout << " instance #" << instance->StepFileId () << endl;
4646
47- /* The inverse could be set with
48- * const Inverse_attribute * ia =...;
49- * const EntityDescriptor * inv_ed = reg.FindEntity( ia->inverted_entity_id_() );
50- * instance->isdefinedby_(inv_ed);
51- */
5247 EntityAggregate * aggr = instance->isdefinedby_ (); // should be filled in when the file is loaded? not sure how to do it using STEPfile...
53- if ( aggr ) {
54- cout << aggr->EntryCount () << endl;
48+ if ( aggr && aggr->EntryCount () ) {
49+ cout << " Found " << aggr->EntryCount () << " inverse references." << endl;
50+ exit ( EXIT_SUCCESS );
5551 } else {
5652 cout << " inverse attr is not defined" << endl;
5753 exit ( EXIT_FAILURE );
5854 }
59- exit ( EXIT_SUCCESS );
6055}
6156
You can’t perform that action at this time.
0 commit comments