API Documentation > CorelDRAW > 2025-v26 > Layer > IVGLayer
Layer.ImportEx method
Imports a supported non-native file format onto a layer and returns an ImportFilter object
Syntax:
Function ImportEx(ByVal FileName As String, Optional ByVal Filter As cdrFilter = cdrAutoSense, Optional ByVal Options As StructImportOptions = Nothing) As ImportFilter
Parameters:
Name Type Description
FileName
String
Filter
Specifies the import filter, and returns cdrFilter.
Options
Specifies additional parameters for the import.
Remarks:
The ImportEx method imports a file and returns an ImportFilter object.
Examples:
The following VBA example imports the specified Corel Presentation Exchange (CMX) file to the active layer.
Sub Test()
Dim im As ImportFilter
Set im = ActiveLayer.ImportEx(SetupPath & "Draw\CustomMediaStrokes\Arrow.cmx")
im.Finish 
End Sub