Is there a way to remove a file reference using API

I know the EPDM API includes a way to add file references to a file (IEdmAddCustomRefs ) but is there an interface to remove the references?

SolidworksApi macros
Answers 4
MD
MD 2016-08-04 Best Answer

IEdmEnumeratorCustomReference5.RemoveReference(fileId, folderId)

SF
SF 2016-08-04

I assume that you set that equal to the file in questions enumerator variable.....i.e

Dim ReferenceRemover As IEdmEnumeratorCustomReference6 = enumvar

ReferenceRemover.RemoveReference(referenceFile.ID, referenceFold.ID)

MD
MD 2016-08-04

ReferenceRemover = vault.GetObject(EdmObjectType.EdmObject_File, parentfileId)

SF
SF 2016-08-04

Awesome thanks mike!