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| 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. |
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))VS Functions: ImportImageFile
Availability: from Vectorworks 2015