Type of linkedDocument in RevisionManager

Valued Contributor
Valued Contributor

Hi

 

I use API of RevisionManager for repaire the broken link of assembly, but in the property "LinkedDocuments" there is also links use in variable (formula)

Is there a property to know it ?

 

thanhs

 

Posted by: BONNAUDET eric
Post date: 10/25/2010 9:36:39 PM

2 REPLIES

RE: Type of linkedDocument in RevisionManager

Valued Contributor
Valued Contributor

Hi

 

the LinkedDocuments property takes a parameter of the enum type LinkTypeOptions (if you're using C# the generated interop will probably have a get_LinkedDocuments method instead of a property).

The enum looks like this:

 

public enum LinkTypeConstants{    seLinkTypeAll = 0,     seLinkTypeNormal = 1,    seLinkTypeInterpart = 2 }

 

Use 'Normal' and you should only get the direct links back.

 

Cheers

Calum

 

Posted by: Calum McLellan
Post date: 10/26/2010 11:52:07 AM

RE: Type of linkedDocument in RevisionManager

Valued Contributor
Valued Contributor

Very big thanks Calum

 

My program is in vb.net and i use it like that for filter the linked file in asm

 

Dim objdoc As RevisionManager.Document

Dim objLinkedDocuments As RevisionManager.LinkedDocuments

 

objdoc = objApplication.Open(File_name, , False)

objLinkedDocuments = objdoc.LinkedDocuments(RevisionManager.LinkTypeConstants.seLinkTypeNormal)

 

Posted by: BONNAUDET eric
Post date: 12/16/2010 12:24:26 AM