![]() |
![]() |
Layer.Import
Sub Import(FileName As String, [Filter As cdrFilter = cdrAutoSense], [Options As StructImportOptions])
Member of Layer
The Import method imports shapes from a disk file and places them on the specified layer.
The imported shapes are selected after the method is executed. You can use the Document.Selection function to access those shapes.
Parameters
|
Description
|
FileName
|
Identifies the full path name of the disk file that contains the shapes that are imported. For example, a CorelDRAW document named Importing.cdr, stored on the root of the C drive, has a FileName value of C:\Importing.cdr.
|
Filter
|
Specifies the filter that is used when importing objects. This value returns cdrFilter.
This parameter is optional, and its default value is cdrAutoSense (0).
|
Options
|
Specifies additional parameters for the import
This parameter is optional, and its default value is Nothing.
|
The following code example imports the file mygraphic.cmx (stored on the root of C) to the active layer:
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.