Share

ReferencedOLEFileDescriptors.Add Method

Parent Object: ReferencedOLEFileDescriptors

Description

Method that creates a new ReferencedOLEFileDescriptor by linking/embedding a file. The newly created ReferencedOLEFileDescriptor is returned.

Remarks

This method will fail if the specified file does not exist. It will also fail if the reference will result in a cyclical dependency. For example, if Drawing1.idw references Part1.ipt, and then within Part1 you attempt to create a reference back to Drawing1.

Syntax

ReferencedOLEFileDescriptors.Add( FullFileName As String, [Type] As OLEDocumentTypeEnum ) As ReferencedOLEFileDescriptor

Parameters

Name Type Description
FullFileName String Input String value that specifies the full filename of the file.
Type OLEDocumentTypeEnum Constant indicating the OLE document type.



This is an optional argument whose default value is 3331.

Version

Introduced in version 9

Was this information helpful?