I want to create a Report programmatically. The Report should have a column that displays the DGN file name where an Item is found. In a related question I found how to add a DGN model name to a report...
DgnECHostRelationshipSpecificationList hostList; DgnECHostRelationshipSpecification relSpec( SchemaNameClassNamePair(L"DgnContentRelationshipSchema:ModelItemRelationship"), SchemaNameClassNamePair(L"DgnModelSchema:DesignModel"), ECRelatedInstanceDirection::STRENGTHDIRECTION_Backward); hostList.push_back(relSpec); hostSpec.SetRelationships(hostList);
Presumably I need to set up a relationship specification for a file-item relationship analogous to the ModelItemRelationship. However, I don't see such a value in the DgnContentRelationshipSchema. What should I do?