assetsSortSize function
Syntax
string   assetsSortSize(filePathList, axisSize, maxScaleError)
string[] assetsSortSize(filePaths, axisSize, maxScaleError)
Parameters
- filePathList (string)
String list with geometry files, seperated with ";" (also after the last entry). - filePaths (string[])
String array with geometry files. - axisSize (selector)
x, y, z, xy, xz, yz, xyz Defines which scope axis size is used as a reference. - maxScaleError (float)
Float value to control file selection. If it is 0 all files are returned, sorted depending on their size. If the value is > 0, only a subset of the input files is returned: 0.1 means that maximum +-10% scaling is allowed.
Returns
A string list or a string array with all or a subset of the files in the input filePathList / filePaths, sorted in order how good they match the reference size (first is best, last is worst). The maxScaleError parameter can be used to only take the geometry assets matching a certain size range.
Description
Looks at all geometry files in the input filePathList / filePaths and sorts them depending on their size relative to the size of the scope axes defined by maxScaleError.
Related
- assetsSortRatio function
- imageInfo function
- imagesSortRatio function
Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.