Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.22 KB

File metadata and controls

50 lines (40 loc) · 1.22 KB

ImportImageFileN

Description

Import the specified image file as an Image object in Vectorworks. This function allows controlling the options when importing the image.

FUNCTION ImportImageFileN(
				filePath : DYNARRAY[] of CHAR;
				importPt : REAL;
				mode     : INTEGER): HANDLE;
def vs.ImportImageFileN(filePath, importPt, mode):
    return HANDLE

Parameters

Name Type Description
filePath DYNARRAY[] of CHAR Import file path.
importPt REAL The import location.
mode INTEGER Import mode: 0 - import using import option dialog; 1 - import using the last options. If the call was never made with option dialog, then the first time it will show the options dialog.

Examples

resultH := ImportImageFileN(filePath, 1.0, 1);
import vs

# Import the specified image file as an Image object in Vectorworks.
filePath = 'C:/Temp'
importPt = 1.0
mode = 0

objHandle = vs.ImportImageFileN(filePath, importPt, mode)
if objHandle is not None:
    vs.Message('Created object handle: ' + str(objHandle))

See Also

VS Functions: ImportImageFile

Version

Availability: from Vectorworks 2015

Category