2014-11-17 11:51 AM
2014-11-17 04:06 PM
2014-11-19 01:20 PM
2014-11-19 08:39 PM
2014-11-21 09:37 AM
2015-01-21 01:57 PM
2015-01-21 10:06 PM
DGSketcher wrote:Hi.
Thanks for the pointers lazlo but page 368 isn't very helpful if you aren't familiar with the syntax or data structure.
DGSketcher wrote:Challenge accepted!!!
Anyone able to shed any more light on this with a simple worked example of grabbing a single predetermined IFC parameter's value for use in a label?
HOTSPOT2 0,0 CIRCLE2 0,0,0.10 idstring=1 shortName=2 longName=3 !===FOLDER NAMES===== DIM folderNamesArray[] !<-- array will hold 3 entries per folder: idstring, shortName, longName !-- main folder only has idstring, short and long name are empty n = APPLICATION_QUERY ("OwnCustomParameters", "GetParameterFolderNames()", folderNamesArray) !<-- n = quantity of folders * 3 (includes main/root folder) DIM folderShortName[] FOR i=1 TO VARDIM1(folderNamesArray)/3 folderShortName=folderNamesArray[3 * (i-1) + idString] NEXT i VALUES "folders" folderShortName !OR folderNamesArray !<-- which displays all values of array in parameter "folders" foldersInTagsAndCats = n/3 !--or VARDIM1(folderNamesArray)/3 !!!PRINT folderNamesArray !!!PRINT foldersInTagsAndCats FOR i=1 TO n TEXT2 0,0, folderNamesArray ADD2 0,-0.75 NEXT i DEL n !===PARAMETER NAMES===== DIM parNamesArray[] !<-- array will hold 3 entries per parameter name: idstring, shortName, longName n = APPLICATION_QUERY ("OwnCustomParameters", "GetParameterNames(" + folders + ")", parNamesArray) !<-- middle part "GetParameterNames...+...+..." between commas should work out as a whole string DIM paramNames[] FOR i=1 TO VARDIM1(parNamesArray)/3 paramNames=parNamesArray[3 * (i-1) + idString] NEXT i VALUES "params" paramNames !OR parNamesArray !<-- which displays all values of array in parameter "params" !===PARAMETER VALUE===== parValue="" n = APPLICATION_QUERY ("OwnCustomParameters", "GetParameter(" + params + ")", parValue) !<-- middle part "GetParameter...+...+.." between commas should work out as a whole string VALUES "value" parValueFloor plan will show all folders from the objects Tags and Categories tab.
2015-01-21 11:45 PM
2015-01-22 01:22 PM
2015-01-22 04:16 PM
ADD2 0.50,0 TEXT2 0,0,value DEL 1to show the selected value.