Home › Forums › Problems and solutions in GDL › Informations from the environment › APPLICATION_QUERY slows down moveable hotspots
Tagged: Library_Master, Master
- This topic has 5 replies, 2 voices, and was last updated 4 years, 6 months ago by Péter Baksa.
-
AuthorPosts
-
-
April 1, 2020 at 13:41 #18671Joachim SühloParticipant
I have 2 APPLICATION_QUERYs in Master Script for user image files.
In 2D I have moveable hotspots which are extremly slow.
I wondered what the reason was and found out that it where those APPLICATION_QUERYs.
If I comment them out, hotspots move very fast.
If I write “IF GLOB_FEEDBACK_MODE = 0” before the queries,
the hotspots are moving a bit faster, but not as fast as normal.
Is there any way to get the normal speed and keeping the queries in the script?GDL Object Developer
b-prisma
MAC OSx 10.14 -
April 1, 2020 at 17:55 #18672Péter BaksaKeymaster
Hm, what are you doing with the result? If it is stored as an array in a parameter, you might still use it GLOB_FEEDBACK_MODE.
What ArchiCADLibrary does is it calls the request in ARCHICAD_Library_Master (in subtype “Library Master”), which is only run when the library is loaded. The results are set with VALUES to a parameter. All libparts that have the same parameter get their values from the Library Master.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SE -
April 1, 2020 at 21:35 #18673Joachim SühloParticipant
The script part I use is:
! ———————————————————————- !
! ————— C u s t o m p i c t u r e f i l e r e q u e s t
! ———————————————————————- !IF GLOB_FEEDBACK_MODE = 0 THEN
dim stCustomPicFiles[]
bCustomPicFileExist = APPLICATION_QUERY (“LIBRARY_MANAGER”, “USER_IMAGE_FILES”, stCustomPicFiles)p_num = VARDIM1(stCustomPicFiles)
DIM stCustomPicFiles_with_prefix[]
si = 1
int_num_prefix = STRLEN(str_prefix)IF (str_prefix # ” ” AND str_prefix # “”) THEN
FOR i = 1 TO p_num
IF STRSUB(stCustomPicFiles[i], 1, int_num_prefix) = str_prefix THEN
stCustomPicFiles_with_prefix[si] = stCustomPicFiles[i]
si = si + 1
ENDIF
NEXT i
ELSE
stCustomPicFiles_with_prefix = stCustomPicFiles
ENDIFp_num = VARDIM1(stCustomPicFiles_with_prefix)
ENDIF
GDL Object Developer
b-prisma
MAC OSx 10.14 -
April 2, 2020 at 08:08 #18683Péter BaksaKeymaster
Are you changing any parameter based on stCustomPicFiles_with_prefix? Is it used as VALUES?
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SE -
April 2, 2020 at 09:45 #18684Joachim SühloParticipant
Yes:
IF p_num > 0 THEN VALUES “str_bildwahl” stCustomPicFiles_with_prefixGDL Object Developer
b-prisma
MAC OSx 10.14 -
April 14, 2020 at 19:38 #18688Péter BaksaKeymaster
I am not sure, maybe it is related to the VALUES command, but that is just a wild guess.
Maybe you could try CUSTOM_POPUP_INFIELD in the UI script, then VALUES is not needed, and the UI script surely isn’t run in feedback mode.Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SE
-
-
AuthorPosts
- The forum ‘Informations from the environment’ is closed to new topics and replies.