Faster way to populate ISet and/or change IRelationship.GetObjectsRelatedToObjectSet

Idea created by lsderoc on Apr 27, 2016
    New
    Score30
    • lsderoc
    • Hornbydd
    • rchasan
    When you try to use the function IRelationship.GetObjectsRelatedToObjectSet, you need to pass it an ISet as the input parameter. If the only data you have to work with is an ICursor or an ISelectionSet, you need to loop through all the records to transfer them into an ISet. This is painful and slow.
    The IRelationship.GetObjectsRelatedToObjectSet should be able to use a ISelectionSet or and ICursor directly instead of populating an ISet or the other solution would be to set the ISet from an ISelectionSet or ICursor, then pass it to IRelationship.GetObjectsRelatedToObjectSet. 
    There should be a better transfer method between ISelectionSet/ICursor and ISet.

    Thanks,