Below is a list of request functions can provide with the help of the APPLICATION_QUERY command.
These request options are given in the
extension_name and the
parameter_string parameter of the command.
Note, that the query options and return values of an APPLICATION_QUERY may vary according to the execution context.
Compatibility up to ARCHICAD 19: the use of the listed application queries in parameter scripts (or master scripts run as parameter script) could result in unreliable returned values, and causes GDL warnings.
Compatibility starting from ARCHICAD 20: the listed queries cause warnings in parameter scripts, and the return value is either 0 or empty string, according to variable type.
The above restriction applies to:
This command can return features of the active document/view.
Currently there is only one feature it can return – the view direction of the document.
These type of queries are restricted from the parameter script and cause GDL warnings.
domain:MEP classification index (DuctWork – 1, PipeWork – 2) (GDL defines the MEP classifications based on connector class)
3:Duct- and PipeWork
5:DuctWork and Cabling
6:PipeWork and Cabling
7:DuctWork, PipeWork and Cabling
x:X coordinate of the control point
y:Y coordinate of the control point
z:Z coordinate of the control point
"MEPFLEXIBLESEGMENT", "AddDirectionAndWidthVector(i; dx; dy; dz; wx; wy; wz)", r)
i:id of port (1: 0. port, 2: 1. port etc.)
dx:X component of direction vector of the port
dy:Y component of direction vector of the port
dz:Z component of direction vector of the port
wx:X component of side vector of the port
wy:Y component of side vector of the port
wz:Z component of side vector of the port
d:Array of values:
[9*k-8]:X position of k segment
[9*k-7]:Y position of k segment
[9*k-6]:Z position of k segment
[9*k-5]:X component of tangent vector of k segment
[9*k-4]:Y component of tangent vector of k segment
[9*k-3]:Z component of tangent vector of k segment
[9*k-2]:X component of normal vector k segment
[9*k-1]:Y component of normal vector k segment
[9*k]:Z component of normal vector k segment
d:Bend Type Names (examples of INT version)
"45° Throat with 45° Heel"
"45° Throat with 90° Heel"
"45° Throat with Radius Heel"
"Radius Throat with 90° Heel"
"Segmented Standing Seam"
This command returns whether the current run is the first run
or a consequence of a previous execution of the parameter script which changed some parameters.
This command has no additional parameters.
Compatibility: up to ARCHICAD 19 the tabpage was called “Tags and Categories”. It was renamed “Categories and Properties” in ARCHICAD 20 with adding user-defined properties. These queries don’t return user-defined properties.
The order of parameters is the same as on the tabpage.
There are two possible
extension_names in these commands:
- “OwnCustomParameters” returns parameters of the object
- “ParentCustomParameters” returns parameters of the object’s parent
Compatibility: in ARCHICAD 20 the data of the parent element (for labels) has been made available with REQUEST “Properties_Of_Parent” too. These queries return the properties corresponding to “COREPROPERTY” and “IFCPROPERTY” property types.
DIM folderNamesArray ! idString1, shortNameString1, longNameString1, ! ... ! idStringi, shortNameStringi, longNameStringi n = APPLICATION_QUERY (extension_name, "GetParameterFolderNames()", folderNamesArray)
Returns the folder names of built-in properties.
folderNamesArray:String array which contains the foldernames of built-in properties
n / 3:Number of folders
DIM parNamesArray ! idString1, shortNameString1, longNameString1, ! ... ! idStringj, shortNameStringj, longNameStringj n = APPLICATION_QUERY (extension_name, "GetParameterNames(folderID)", parNamesArray)
Returns the names of built-in properties.
folderID:The ID string of the folder returned from “GetParameterFolderNames”.
parNamesArray:String array which contains the names of built-in properties
n / 3:Number of parameters
n = APPLICATION_QUERY (extension_name, "GetParameter(parID)", parValue)
Returns the value of a built-in property.
parID:The ID string of the parameter returned from “GetParameterNames”.
parValue:String which contains the value of built-in property
n:1 if successful, 0 otherwise
DIM folderNamesArray n = APPLICATION_QUERY ("OwnCustomParameters", "GetParameterFolderNames()", folderNamesArray) for i = 1 to vardim1(folderNamesArray) step 3 DIM parNamesArray querystring = "GetParameterNames(" + folderNamesArray[i] + ")" n = APPLICATION_QUERY ("OwnCustomParameters", querystring, parNamesArray) for j = 1 to vardim1(parNamesArray) step 3 parValue = "" querystring = "GetParameter(" + parNamesArray[j] + ")" n = APPLICATION_QUERY ("OwnCustomParameters", querystring, parValue) next j next i
This command returns the list of user-provided image file names loaded with the active libraries (image files which are not in the dedicated folders with
names containing [TImg]*, [BImg]*, [UImg]*, or [HImg]*)