API Documentation > CorelDRAW > 2025-v26 > Layer > IVGLayer
Layer.Import method
Imports a supported non-native file from disk onto a layer
Syntax:
Sub Import(ByVal FileName As String, Optional ByVal Filter As cdrFilter = cdrAutoSense, Optional ByVal Options As StructImportOptions = Nothing)
Parameters:
Name Type Description
FileName
String
Filter
Specifies the import filter, and returns cdrFilter.
Options
Specifies additional parameters for the import.
Remarks:
The Import method imports shapes from a disk file and places them on a specified layer. The imported shapes are selected after the method is executed. You can use the Document.Selection function to access those shapes.
Examples:
The following VBA example imports the file mygraphic.cmx (stored at the root of C) to the active layer.
Sub Test()
ActiveLayer.Import "C:\MyGraphic.cmx" 
End Sub