VS:BuildResourceListN: Difference between revisions
Jump to navigation
Jump to search
(add remark and usage example) |
m (Transfer Orso to _c_) |
||
Line 41: | Line 41: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<remark> | <remark> | ||
[[User: | [[User:CBM-c-|_c_]], (2016.02.29): It supports also posix paths on mac ("/"). It can't be used to retrive the resources in the active document. | ||
Here some usage examples: | Here some usage examples: |
Latest revision as of 06:46, 30 December 2020
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Build a resource list from the specified file.
FUNCTION BuildResourceListN(
type :INTEGER;
fullPath :DYNARRAY[] of CHAR;
VAR numItems :LONGINT) : LONGINT;
def vs.BuildResourceListN(type, fullPath): return (LONGINT, numItems)
Parameters
type INTEGER the type of resource to put in the list fullPath DYNARRAY[] of CHAR The path to the file that provides the resources. numItems LONGINT the number of items in the list built
Remarks
_c_, (2016.02.29): It supports also posix paths on mac ("/"). It can't be used to retrive the resources in the active document.
Here some usage examples:
resID := 127; { wall styles } pathID := 113; { Wall ~ Slabs folder } path := Concat(GetFolderPath(pathID), 'Walls~Slabs Styles Metric.vwx'); { pick a file within the shipped default content } list := BuildResourceListN(resID, path, cnt); { chosen document } list := BuildResourceListN2(resID, GetFPathName, cnt); { WARNING: it always returns zero }
Version
Availability: from Vectorworks 2013
See Also
VS Functions:
VS Functions:
[[VS:BuildResourceList]]