Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[CONNECT C++] Add DGN File Name to Report

$
0
0

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?


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>