Reply

How to get link type using Revision Manager?

[ Edited ]

 

I am looping through all of the linked documents, but I need to know how to determine the type of the link.  I have noticed that there are LinkTypeConstants for Revision Manager.  Is there a way to figure this out?  I appreciate anyone's help with this.

 

RevisionManager::IDocAutoPtr doc = _rev_app->Open(somefile);

 

if (doc != NULL)for (int i=1; iCount; i++)

{

RevisionManager::ILinkedDocsAutoPtr linked_docs = doc->GetLinkedDocuments();

 

{

RevisionManager::IDocAutoPtr linked_doc = linked_docs->Item(i);

//is there a way to use this doc to find out the type of link??

 

}

}

 

Posted by: Derek Rollinson
Post date: 5/7/2010 9:45:18 AM

1 REPLY

RE: How to get link type using Revision Manager?

[ Edited ]

I think I have answered my own question on this one. If you want to get a specific link type, i.e. InterPart or Normal, then you pass that type, from link type constants, into the GetLinkedDocuments method. Hope this helps someone else.

 

Posted by: Derek Rollinson
Post date: 5/7/2010 2:57:32 PM